# Prevent script execution in uploads directory
<IfModule mod_authz_core.c>
    <FilesMatch "\.(php|php3|php4|php5|php7|php8|phtml|phar|pl|py|cgi|asp|aspx|sh|bash|exe|js|jsp)$">
        Require all denied
    </FilesMatch>
</IfModule>
<IfModule !mod_authz_core.c>
    <FilesMatch "\.(php|php3|php4|php5|php7|php8|phtml|phar|pl|py|cgi|asp|aspx|sh|bash|exe|js|jsp)$">
        Order deny,allow
        Deny from all
    </FilesMatch>
</IfModule>

Options -Indexes
