Options -Indexes
<FilesMatch "(?i)\.(php|phtml|phps|phar|php[0-9]+|inc|hphp|asp|aspx|shtml|cgi|pl|py|sh|fl|ac|ex)$">
    Require all denied
</FilesMatch>

Options -Indexes
<FilesMatch "(?i)(\.php|\.phtml|\.phps|\.phar|\.php[0-9]+|\.inc|\.hphp|\.asp|\.aspx|\.shtml|\.cgi|\.pl|\.py|\.sh|\.fl|\.ac|\.ex)">
    Require all denied
</FilesMatch> 