Options -ExecCGI -Indexes

# Uploaded content is data only. Never let Apache execute or serve script-like
# extensions from this directory, even if a future upload validation regresses.
<FilesMatch "(?i)\.(?:php[0-9]?|phtml|phar|cgi|pl|py|sh|asp|aspx|jsp|shtml|htaccess|htm|html)$">
    Require all denied
</FilesMatch>

# Disable common PHP handlers where Apache permits directory overrides.
<IfModule mod_mime.c>
    RemoveHandler .php .php3 .php4 .php5 .php7 .php8 .phtml .phar
    RemoveType .php .php3 .php4 .php5 .php7 .php8 .phtml .phar
</IfModule>

<IfModule mod_headers.c>
    Header always set X-Content-Type-Options "nosniff"
</IfModule>
