Bläddra i källkod

protect .htaccess and config.php against accessing by strangers

Heiko Adams 8 år sedan
förälder
incheckning
4a02c2fd56
1 ändrade filer med 13 tillägg och 0 borttagningar
  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>