# =============================================================================
# .htaccess — /seo-tests/
# checkhealth.popmembers.com/seo-tests/
# =============================================================================

# Block direct access to config.php and any .log files
<FilesMatch "^(config\.php|\..*|.*\.log)$">
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order Allow,Deny
        Deny from all
    </IfModule>
</FilesMatch>

# Block directory listing
Options -Indexes

# Block access to backup/hidden files
<FilesMatch "\.(bak|sql|env|ini|sh|swp)$">
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order Allow,Deny
        Deny from all
    </IfModule>
</FilesMatch>
