# Apache directives to disable directory listing and protect sensitive files
<IfModule mod_autoindex.c>
    Options -Indexes
</IfModule>

<FilesMatch "\.(log|sql|tar|gz|zip|bak|swp|tmp|md|lock|json|xml|yaml|yml|dist|sample)$">
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order allow,deny
        Deny from all
    </IfModule>
</FilesMatch>
