aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2010-04-08 10:08:18 +0200
committerNils Adermann <naderman@naderman.de>2010-05-03 19:30:52 +0200
commitcdd9ecdd68c8b0240a121a9bc07fd366a99bd1b3 (patch)
treeef24e43c32bb4a16fdbff5e9ecb363ef3ff59f2c
parent43774ef423d205250181c7413585ecd4d9ad6388 (diff)
downloadforums-cdd9ecdd68c8b0240a121a9bc07fd366a99bd1b3.tar
forums-cdd9ecdd68c8b0240a121a9bc07fd366a99bd1b3.tar.gz
forums-cdd9ecdd68c8b0240a121a9bc07fd366a99bd1b3.tar.bz2
forums-cdd9ecdd68c8b0240a121a9bc07fd366a99bd1b3.tar.xz
forums-cdd9ecdd68c8b0240a121a9bc07fd366a99bd1b3.zip
[ticket/9520] Add some default web.config files for IIS.
These deny access to the various directories written to by phpBB. PHPBB3-9520
-rw-r--r--phpBB/cache/web.config13
-rw-r--r--phpBB/files/web.config13
-rw-r--r--phpBB/images/avatars/upload/web.config13
-rw-r--r--phpBB/store/web.config13
4 files changed, 52 insertions, 0 deletions
diff --git a/phpBB/cache/web.config b/phpBB/cache/web.config
new file mode 100644
index 0000000000..278494bafc
--- /dev/null
+++ b/phpBB/cache/web.config
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration>
+ <system.webServer>
+ <rewrite>
+ <rules>
+ <rule name="phpBB Default Rule" stopProcessing="true">
+ <match url=".*" />
+ <action type="CustomResponse" statusCode="403" statusReason="Forbidden: Access is denied." statusDescription="You do not have permission to view this directory or page." />
+ </rule>
+ </rules>
+ </rewrite>
+ </system.webServer>
+</configuration> \ No newline at end of file
diff --git a/phpBB/files/web.config b/phpBB/files/web.config
new file mode 100644
index 0000000000..278494bafc
--- /dev/null
+++ b/phpBB/files/web.config
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration>
+ <system.webServer>
+ <rewrite>
+ <rules>
+ <rule name="phpBB Default Rule" stopProcessing="true">
+ <match url=".*" />
+ <action type="CustomResponse" statusCode="403" statusReason="Forbidden: Access is denied." statusDescription="You do not have permission to view this directory or page." />
+ </rule>
+ </rules>
+ </rewrite>
+ </system.webServer>
+</configuration> \ No newline at end of file
diff --git a/phpBB/images/avatars/upload/web.config b/phpBB/images/avatars/upload/web.config
new file mode 100644
index 0000000000..278494bafc
--- /dev/null
+++ b/phpBB/images/avatars/upload/web.config
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration>
+ <system.webServer>
+ <rewrite>
+ <rules>
+ <rule name="phpBB Default Rule" stopProcessing="true">
+ <match url=".*" />
+ <action type="CustomResponse" statusCode="403" statusReason="Forbidden: Access is denied." statusDescription="You do not have permission to view this directory or page." />
+ </rule>
+ </rules>
+ </rewrite>
+ </system.webServer>
+</configuration> \ No newline at end of file
diff --git a/phpBB/store/web.config b/phpBB/store/web.config
new file mode 100644
index 0000000000..278494bafc
--- /dev/null
+++ b/phpBB/store/web.config
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration>
+ <system.webServer>
+ <rewrite>
+ <rules>
+ <rule name="phpBB Default Rule" stopProcessing="true">
+ <match url=".*" />
+ <action type="CustomResponse" statusCode="403" statusReason="Forbidden: Access is denied." statusDescription="You do not have permission to view this directory or page." />
+ </rule>
+ </rules>
+ </rewrite>
+ </system.webServer>
+</configuration> \ No newline at end of file