# Block execution of PHP/PHP variants inside the uploads folder
<FilesMatch "\.(php|php3|php4|php5|php7|php8|phtml|pl|py|cgi|sh|asp|aspx)$">
    Require all denied
</FilesMatch>

# Disable any PHP engine that honors htaccess
<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>

# Prevent directory listing
Options -Indexes