Options -Indexes
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(?:app|sql|storage|vendor)/ - [F,L,NC]
RewriteRule (^|/)\. - [F,L]
</IfModule>
<FilesMatch "(?i)^(?:\.env|composer\.(?:json|lock)|README.*|.*\.(?:sql|log|ini|bak|zip))$">
Require all denied
</FilesMatch>
<IfModule mod_headers.c>
Header always set X-Content-Type-Options "nosniff"
Header always set X-Frame-Options "DENY"
Header always set Referrer-Policy "strict-origin-when-cross-origin"
Header always set Content-Security-Policy "default-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline'; base-uri 'self'; frame-ancestors 'none'; form-action 'self'"
</IfModule>
