Options -Indexes
<FilesMatch "\.(php|phtml|phar|php[0-9]?|cgi|pl|py|sh)$">
    Require all denied
</FilesMatch>
AddType text/plain .php .phtml .phar .php3 .php4 .php5 .php7 .php8
