Explorar o código

Protect config files from public access

ohartl %!s(int64=9) %!d(string=hai) anos
pai
achega
3be0a51c75
Modificáronse 2 ficheiros con 9 adicións e 0 borrados
  1. 8 0
      README.md
  2. 1 0
      config/.htaccess

+ 8 - 0
README.md

@@ -52,6 +52,10 @@ server {
         deny all;
         return 403;
     }
+    location ^~ /webmum/config {
+        deny all;
+        return 403;
+    }
 }
 ```
 
@@ -81,6 +85,10 @@ server {
         deny all;
         return 403;
     }
+    location ^~ /config {
+        deny all;
+        return 403;
+    }
 }
 ```
 

+ 1 - 0
config/.htaccess

@@ -0,0 +1 @@
+Deny from all