Options -Indexes
php_flag engine off

<FilesMatch "\.(jpg|jpeg|png|webp)$">
    <IfModule mod_authz_core.c>
        Require all granted
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order allow,deny
        Allow from all
    </IfModule>
</FilesMatch>

<FilesMatch "\.(php|phtml|phar|html|htm|js|css|svg|xml|json|sql|db|sqlite|ini|env|log|bak|zip|rar|7z|exe|sh)$">
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order allow,deny
        Deny from all
    </IfModule>
</FilesMatch>
