# Disable directory browsing
Options -Indexes

# Prevent access to specific file types
<FilesMatch "\.(php|html?|twig)$">
    Order Allow,Deny
    Deny from all
</FilesMatch>