Options -Indexes

# Uploaded files must never be executed as server-side scripts.
<FilesMatch "\.(php|phtml|php[0-9]?|phar|cgi|pl|py|asp|aspx|jsp|shtml|shtm|fcgi|fpl)$">
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order allow,deny
        Deny from all
    </IfModule>
</FilesMatch>

<IfModule mod_mime.c>
    RemoveHandler .php .phtml .php3 .php4 .php5 .php6 .php7 .php8 .phar .cgi .pl .py .asp .aspx .jsp .shtml .shtm .fcgi .fpl
    RemoveType .php .phtml .php3 .php4 .php5 .php6 .php7 .php8 .phar

    AddType application/zip .zip
    AddType application/x-rar-compressed .rar
    AddType application/java-archive .jar
    AddType text/vnd.sun.j2me.app-descriptor;charset=UTF-8 .jad
    AddType application/vnd.symbian.install .sis .sisx
    AddType application/octet-stream .exe
    AddType audio/amr .amr
    AddType audio/x-wav .wav
    AddType audio/midi .midi .mid
    AddType image/jpeg .jpg .jpeg
    AddType image/gif .gif
    AddType image/png .png
    AddType image/bmp .bmp
    AddType video/mp4 .mp4
    AddType video/3gpp .3gp
</IfModule>
