Some of the most damaging leaks are not sophisticated hacks โ they are files that should never have been web-accessible. A .env file with database passwords and API keys, a .git directory exposing your entire source history, or a backup.zip sitting in the web root.
Why it happens
Deploying with git pull leaves the .git folder in place. Framework .env files get uploaded by accident. Admins create quick backups and forget them. Search engines and automated bots actively crawl for these paths.
How to protect yourself
- Block access to dotfiles and sensitive extensions at the server level (deny
.git,.env,.sql,.bak). - Keep the document root limited to public assets โ deploy code outside it where possible.
- Never store backups inside the web root.
- Scan your own site for these paths before someone else does.
The file exposure check probes for the most commonly leaked paths and flags any that respond.