# Prevent direct script execution in uploads directory
<FilesMatch "(?i)\.(php|phtml|php3|php4|php5|php7|phps|cgi|pl|exe|sh|py|jsp|asp|aspx)$">
    Order Deny,Allow
    Deny from all
</FilesMatch>

# Disable PHP engine in this directory if mod_php is used
<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>

Options -ExecCGI -Indexes
