# =====================================
# PROTECT ADMIN ASSETS DIRECTORY
# =====================================

# Disable directory listing
Options -Indexes

# Disable CGI execution
Options -ExecCGI

# Block PHP and other server-side scripts
<FilesMatch "\.(?i:php[0-9]*|phtml|phar|cgi|pl|py|sh|asp|aspx|jsp)$">
    Require all denied
</FilesMatch>

# Block access to hidden files
<FilesMatch "^\.">
    Require all denied
</FilesMatch>
