# Prevent access to .env and other sensitive files
<FilesMatch "^\.">
Order allow,deny
Deny from all
</FilesMatch>
# Block access to composer/lock/config files
<FilesMatch "(composer\.json|composer\.lock|phpinfo\.php|README\.md|LICENSE)$">
Order allow,deny
Deny from all
</FilesMatch>
0 comments:
Post a Comment