From e1f76af0068bd2cf5ce4a4203b7727d5b3111c04 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 11 Apr 2013 22:01:02 +0400 Subject: [PATCH] block listing of several util directories; deny access to config.php --- .gitignore | 1 + .htaccess | 7 +++++++ classes/.htaccess | 2 ++ js/index.html | 0 lib/index.html | 0 locale/.htaccess | 2 ++ plugins/index.html | 0 schema/.htaccess | 2 ++ templates/.htaccess | 2 ++ utils/.htaccess | 2 ++ 10 files changed, 18 insertions(+) create mode 100644 .htaccess create mode 100644 classes/.htaccess create mode 100644 js/index.html create mode 100644 lib/index.html create mode 100644 locale/.htaccess create mode 100644 plugins/index.html create mode 100644 schema/.htaccess create mode 100644 templates/.htaccess create mode 100644 utils/.htaccess diff --git a/.gitignore b/.gitignore index d98c0efc3..b4853806c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/messages.mo *~ *.DS_Store #* diff --git a/.htaccess b/.htaccess new file mode 100644 index 000000000..ed58470d4 --- /dev/null +++ b/.htaccess @@ -0,0 +1,7 @@ +AddType image/svg+xml svg +AddType image/svg+xml svgz + + + Order deny,allow + Deny from all + diff --git a/classes/.htaccess b/classes/.htaccess new file mode 100644 index 000000000..93169e4eb --- /dev/null +++ b/classes/.htaccess @@ -0,0 +1,2 @@ +Order deny,allow +Deny from all diff --git a/js/index.html b/js/index.html new file mode 100644 index 000000000..e69de29bb diff --git a/lib/index.html b/lib/index.html new file mode 100644 index 000000000..e69de29bb diff --git a/locale/.htaccess b/locale/.htaccess new file mode 100644 index 000000000..93169e4eb --- /dev/null +++ b/locale/.htaccess @@ -0,0 +1,2 @@ +Order deny,allow +Deny from all diff --git a/plugins/index.html b/plugins/index.html new file mode 100644 index 000000000..e69de29bb diff --git a/schema/.htaccess b/schema/.htaccess new file mode 100644 index 000000000..93169e4eb --- /dev/null +++ b/schema/.htaccess @@ -0,0 +1,2 @@ +Order deny,allow +Deny from all diff --git a/templates/.htaccess b/templates/.htaccess new file mode 100644 index 000000000..93169e4eb --- /dev/null +++ b/templates/.htaccess @@ -0,0 +1,2 @@ +Order deny,allow +Deny from all diff --git a/utils/.htaccess b/utils/.htaccess new file mode 100644 index 000000000..93169e4eb --- /dev/null +++ b/utils/.htaccess @@ -0,0 +1,2 @@ +Order deny,allow +Deny from all