summaryrefslogtreecommitdiff
path: root/.htaccess
diff options
context:
space:
mode:
authorHeiko Adams <[email protected]>2015-08-12 21:09:35 +0200
committerHeiko Adams <[email protected]>2015-08-12 21:09:35 +0200
commit4a02c2fd56629ac960a9cecbe7c77e1016efb54c (patch)
tree2afa10344a2308bb1abcea78bca1176f3b28d307 /.htaccess
parent45913edda0db376991876ab21eba0091f5de1a6c (diff)
protect .htaccess and config.php against accessing by strangers
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess13
1 files changed, 13 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess
index 22b33f000..bdf8c2015 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,3 +1,16 @@
AddType image/svg+xml svg
AddType image/svg+xml svgz
+# PROTECT all htaccess files
+<Files ~ "^[\._]ht">
+ Order Allow,Deny
+ Deny from all
+ Satisfy All
+</Files>
+
+# PROTECT config.php
+<files config.php>
+ Order Allow,Deny
+ Deny from all
+ Satisfy all
+</files> \ No newline at end of file