From 7c695d8b30801998129b2e1fc2e8430ea9d2e58c Mon Sep 17 00:00:00 2001 From: Craig Russell Date: Tue, 5 Apr 2011 14:53:57 +0100 Subject: [PATCH 1/4] Blocked index browsing --- .htaccess | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.htaccess b/.htaccess index 7798615..491da62 100644 --- a/.htaccess +++ b/.htaccess @@ -4,4 +4,6 @@ RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?_url=$1 [L] - \ No newline at end of file + + +Options -Indexes From d2f27d0a2e701ad036ea2adfc88ecdbf1c737d01 Mon Sep 17 00:00:00 2001 From: Craig Russell Date: Tue, 5 Apr 2011 14:56:53 +0100 Subject: [PATCH 2/4] Removed blank index files --- application/config/index.html | 0 application/controllers/index.html | 0 application/helpers/index.html | 0 application/index.html | 0 application/models/index.html | 0 application/plugins/index.html | 0 system/index.html | 0 7 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 application/config/index.html delete mode 100644 application/controllers/index.html delete mode 100644 application/helpers/index.html delete mode 100644 application/index.html delete mode 100644 application/models/index.html delete mode 100644 application/plugins/index.html delete mode 100644 system/index.html diff --git a/application/config/index.html b/application/config/index.html deleted file mode 100644 index e69de29..0000000 diff --git a/application/controllers/index.html b/application/controllers/index.html deleted file mode 100644 index e69de29..0000000 diff --git a/application/helpers/index.html b/application/helpers/index.html deleted file mode 100644 index e69de29..0000000 diff --git a/application/index.html b/application/index.html deleted file mode 100644 index e69de29..0000000 diff --git a/application/models/index.html b/application/models/index.html deleted file mode 100644 index e69de29..0000000 diff --git a/application/plugins/index.html b/application/plugins/index.html deleted file mode 100644 index e69de29..0000000 diff --git a/system/index.html b/system/index.html deleted file mode 100644 index e69de29..0000000 From 077cd352bc8c5fff1f42e9fe8a1bd9e680ec58d5 Mon Sep 17 00:00:00 2001 From: Craig Russell Date: Tue, 5 Apr 2011 14:57:31 +0100 Subject: [PATCH 3/4] Added .gitignore to preserve folder structure --- application/plugins/.gitignore | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 application/plugins/.gitignore diff --git a/application/plugins/.gitignore b/application/plugins/.gitignore new file mode 100644 index 0000000..e69de29 From e3573129bba238c479b3bbeff901f4161049fbc3 Mon Sep 17 00:00:00 2001 From: Craig Russell Date: Tue, 5 Apr 2011 15:10:25 +0100 Subject: [PATCH 4/4] Added comment --- .htaccess | 1 + 1 file changed, 1 insertion(+) diff --git a/.htaccess b/.htaccess index 491da62..dbf603c 100644 --- a/.htaccess +++ b/.htaccess @@ -6,4 +6,5 @@ RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?_url=$1 [L] +# Prevent file browsing Options -Indexes