Files
2026-01-26 10:37:06 +01:00

13 lines
276 B
ApacheConf

# Deny access to all files except images
<FilesMatch "\.(?!(jpg|jpeg|png|gif|webp)$)[^.]+$">
Deny from all
</FilesMatch>
# Disable directory listing
Options -Indexes
# Disable script execution
<FilesMatch "\.(php|php5|phtml|cgi|pl|py)$">
Deny from all
</FilesMatch>