Skip to main content

Exposed .env, .git and backup files checker

Last updated

Enter a URL to check a fixed list of paths that leak secrets when they are public, including /.env, /.git/config, SQL dumps, backups, logs, private keys, source maps, open directory listings, Swagger docs and metrics. It only requests those paths; it never guesses passwords or sends attack payloads.

No sign-up for the first scan. Only scan sites you own or are allowed to test.

Why these files leak

Static hosts serve whatever is in the output folder. A build script that copies the project root, a backup left on the server, or a framework debug route turned on in production can publish credentials and source code without anyone noticing.

Single-page apps answer every unknown path with their homepage. Defexity compares each response with that fallback page, so a homepage served at /.env is not reported as a leaked file.

Questions

What should I do if a .env file is public?
Rotate every key in it first, then remove the file from the deployed output and redeploy. Assume anything in it has been copied.

Related Defexity checks

Defexity reports potential risks it can see from outside your app. It is not a guarantee of security and not legal advice.