Apache Security Fix
Denies access to all dotfiles on Apache webserver.
This commit is contained in:
@@ -13,3 +13,10 @@
|
|||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteRule ^ index.php [L]
|
RewriteRule ^ index.php [L]
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
|
# Restrict access to DotFiles (like .htaccess, .env, .gitignore....)
|
||||||
|
# Do not remove if you are running Apache web server.
|
||||||
|
<FilesMatch "^\.">
|
||||||
|
Order allow,deny
|
||||||
|
Deny from all
|
||||||
|
</FilesMatch>
|
||||||
|
Reference in New Issue
Block a user