Exposed sensitive files (.env, .git, backups)
Files a deploy should never publish — .env, .git, database dumps — asked for by address and confirmed by what came back. Each one hands over credentials or source code.
When a site is deployed by copying a working folder to the server, files that were never meant for visitors tend to travel with it: the .env with database passwords and API keys, the .git directory with the full source history, a backup.zip made before a risky change, a forgotten phpinfo.php. Bots request these addresses on every domain they find, so one that answers is usually discovered within hours.
How SiteScan checks
The scan requests a fixed list — /.env, /.git/config, /.git/HEAD, /server-status, /phpinfo.php, /.DS_Store, /backup.sql, /backup.zip, /backup.tar.gz, plus /wp-config.php.bak on WordPress — and reads at most 8 KB of each. A path only counts when the answer is a 2xx, not an HTML page, and the content proves it: known variable names in .env, a [core] section in Git config, zip or gzip magic bytes in an archive. A site that answers everything with its homepage is not flagged. Any hit turns the row red and lists the paths.
How to fix it
Delete the file, then treat its contents as leaked and rotate every password and key in it. Deny dot-files at the server, e.g. location ~ /\.(?!well-known) { deny all; } in nginx, and deploy a build artefact rather than a working copy. See also directory listing.
See this check on your own site
Run a free scan: the report shows this row for your domain along with the other checks of the site audit.
More in “Exposure”
What SiteScan checks
TLS certificate
- TLS certificate expiry
- Outdated TLS versions (TLS 1.0/1.1)
- TLS certificate chain
- TLS certificate issuer
- Certificate signature algorithm
Domain registration
- Domain registration expiry
- Registered domain name
- Domain registrar
- Domain registration date
- Domain last updated date
- Domain status codes (EPP)
- Domain transfer lock
- Registrar abuse contact
- RDAP and WHOIS data source
Indexing
- robots.txt file
- CSS and JS blocked in robots.txt
- XML sitemap
- Sitemap index file
- Off-domain URLs in the sitemap
- Sitemap lastmod dates
- Broken URLs in the sitemap
- RSS and Atom feed
Addresses & redirects
Security headers
- HTTP security headers and grade
- Strict-Transport-Security (HSTS) header
- Content-Security-Policy (CSP) header
- X-Content-Type-Options: nosniff
- X-Frame-Options and clickjacking
- Referrer-Policy header
- Permissions-Policy header
- HSTS preload list
- CORS and cross-origin reads
- HTTP TRACE method
Delivery & reputation
- Cache-Control header for HTML
- ETag and Last-Modified revalidation
- HTTP/3 and QUIC support
- Server version disclosure in headers
- DNS blocklist (DNSBL) check
Internal links
Exposure
- Exposed sensitive files (.env, .git, backups)
- Directory listing enabled
- Public JavaScript source maps
- Exposed WordPress endpoints
Well-known files
- security.txt file
- llms.txt for AI assistants
- llms-full.txt file
- ads.txt authorized sellers file
- humans.txt file
- Well-known change-password URL
DNS & email
- MX records (mail servers)
- SPF record
- DMARC record and policy
- DNSSEC signing
- CAA record
- Nameserver redundancy
- IPv6 support (AAAA record)
- MTA-STS policy
- TLS-RPT reporting record
- BIMI record (brand logo in email)
- Wildcard DNS record
- Dangling CNAME and subdomain takeover
Privacy & consent
- Analytics and tracking scripts
- Cookie consent banner
- Privacy policy link
- Terms of service link
- Imprint (Impressum)
- Accessibility statement
Core Web Vitals
- Lighthouse performance score
- Largest Contentful Paint (LCP)
- Cumulative Layout Shift (CLS)
- Interaction to Next Paint (INP)
- CrUX field data vs lab data