瀏覽代碼

protect .htaccess and config.php against accessing by strangers

Heiko Adams 8 年之前
父節點
當前提交
4a02c2fd56
共有 1 個文件被更改,包括 13 次插入0 次删除
  1. 13 0
      .htaccess

+ 13 - 0
.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>