Options -Indexes -ExecCGI
RemoveHandler .php .phtml .php3 .php4 .php5 .php7 .php8 .phps .pht .phar
RemoveType .php .phtml .php3 .php4 .php5 .php7 .php8 .phps .pht .phar
AddType text/plain .php .phtml .php3 .php4 .php5 .php7 .php8 .phps .pht .phar

<IfModule mod_php.c>
    php_flag engine off
</IfModule>

<FilesMatch "\.(?i:php|phtml|php3|php4|php5|php7|php8|phps|pht|phar|cgi|pl|py|shtml|htaccess)$">
    Require all denied
</FilesMatch>

<FilesMatch "\.(?i:jpe?g|png|webp|gif|svg)$">
    Require all granted
</FilesMatch>
