summaryrefslogtreecommitdiffstats
path: root/.htaccess
diff options
context:
space:
mode:
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess12
1 files changed, 11 insertions, 1 deletions
diff --git a/.htaccess b/.htaccess
index 7ef20d8b6..14325d152 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,6 +1,16 @@
# Don't allow people to retrieve non-cgi executable files or our private data
<FilesMatch (\.pm|\.pl|\.tmpl|localconfig.*)$>
- deny from all
+ <IfModule mod_version.c>
+ <IfVersion <= 2.2>
+ Deny from all
+ </IfVersion>
+ <IfVersion > 2.2>
+ Require all denied
+ </IfVersion>
+ </IfModule>
+ <IfModule !mod_version.c>
+ Deny from all
+ </IfModule>
</FilesMatch>
Options -Indexes