# Webmail Finder — live server configuration (livewebserver-finder.com)
#
# Upload this file with the site. On Apache it is read as-is; on Nginx the
# equivalent "location" rules are documented in README.txt.

DirectoryIndex index.php

# No directory listings (wrapped, because some hosts disable the directive).
<IfModule mod_autoindex.c>
    Options -Indexes
</IfModule>

# Cached answers, the lookup log, and the resolver/tracker includes are for the
# server only — never fetched over the web.
<FilesMatch "(?i)^(webmail-resolver|webmail-tracker)\.php$">
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order deny,allow
        Deny from all
    </IfModule>
</FilesMatch>

<FilesMatch "(?i)\.(cache|jsonl|log)$">
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order deny,allow
        Deny from all
    </IfModule>
</FilesMatch>

<IfModule mod_headers.c>
    Header set X-Content-Type-Options "nosniff"
    Header set Referrer-Policy "no-referrer"
</IfModule>