Apache Security Fix
Denies access to all dotfiles on Apache webserver.
This commit is contained in:
@@ -13,3 +13,10 @@
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^ index.php [L]
|
||||
</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