RewriteEngine On

# Block direct file access
<FilesMatch "\.(php|json|env)$">
    Order allow,deny
    Allow from all
</FilesMatch>

# Disable directory listing
Options -Indexes
