# Prevent any script execution in uploads directory
<IfModule mod_php.c>
    php_flag engine off
</IfModule>
<IfModule mod_php7.c>
    php_flag engine off
</IfModule>
<IfModule mod_php8.c>
    php_flag engine off
</IfModule>

# Block execution of all script extensions
<FilesMatch "\.(php|phtml|php3|php4|php5|php7|phps|cgi|pl|exe|asp|aspx|jsp|sh|bat)$">
    Order Deny,Allow
    Deny from all
</FilesMatch>

# Force default static file handler
SetHandler default-handler
Options -ExecCGI -Indexes
