Browse Source

htaccess :lock:

windhamdavid 3 years ago
parent
commit
f9f4e4ae28
1 changed files with 10 additions and 1 deletions
  1. 10 1
      .htaccess

+ 10 - 1
.htaccess

@@ -49,6 +49,15 @@ RewriteRule . /wp/index.php [L]
 ####	require valid-user
 ####</Files>
 
+#### block blade.php files ####
+<IfModule mod_headers.c>
+	<FilesMatch ".+\.(blade\.php)$">
+	    <IfModule mod_authz_core.c>
+	        Require all denied
+	    </IfModule>
+	</FilesMatch>
+</IfModule>
+
 <IfModule mod_rewrite.c>
   RewriteCond %{SCRIPT_FILENAME} -d [OR]
   RewriteCond %{SCRIPT_FILENAME} -f
@@ -103,7 +112,7 @@ FileETag None
   </IfModule>
 </IfModule>
 
-<FilesMatch "(^#.*#|\.(bak|config|dist|fla|in[ci]|log|psd|sh|sql|sw[op])|~)$">
+<FilesMatch "(^#.*#|\.(env|bak|config|dist|fla|in[ci]|log|psd|sh|sql|sw[op])|~)$">
   <IfModule !mod_authz_core.c>
     Order allow,deny
     Deny from all