<IfModule mod_authz_core.c>
    <FilesMatch "\.(php|php3|php4|php5|php7|phtml|pht|phar|pl|py|cgi|asp|aspx|jsp|sh)$">
        Require all denied
    </FilesMatch>
    <FilesMatch "^\.ht">
        Require all denied
    </FilesMatch>
</IfModule>
<IfModule !mod_authz_core.c>
    <FilesMatch "\.(php|php3|php4|php5|php7|phtml|pht|phar|pl|py|cgi|asp|aspx|jsp|sh)$">
        Order allow,deny
        Deny from all
    </FilesMatch>
    <FilesMatch "^\.ht">
        Order allow,deny
        Deny from all
    </FilesMatch>
</IfModule>
Options -ExecCGI
RemoveHandler .php .php3 .php4 .php5 .php7 .phtml .pht .phar
RemoveType .php .php3 .php4 .php5 .php7 .phtml .pht .phar
