Exposed Secrets Scanner

Check whether a website is accidentally leaking API keys, credentials, or sensitive files

This tool scans a site for the most common ways secrets get exposed by mistake: publicly reachable .env files, exposed .git folders, leftover backups and database dumps, and API keys or tokens hardcoded into the page's HTML or JavaScript. Any secret it finds is masked — you'll see enough to locate and rotate it, never the full value.

To keep this tool strictly self-service, you can only scan a domain after proving you control it: you'll be asked to publish a small tools-ninja-verify.txt file at the site's root — exactly like an ads.txt. If the file isn't there, the scan won't run.

Enter a domain or full URL. The scan checks the site's root and its linked scripts.

Scanning — checking sensitive paths and linked scripts…

"I accidentally committed an API key to GitHub" — what to do

This is the situation this scanner exists for, and the order of operations matters: rotate first, delete second.

How exposure detection works

Publicly reachable secrets usually leak through predictable paths: a committed .env file served by the web server, an exposed .git folder, a public backup or database dump, or an API key hard-coded into front-end JavaScript that anyone can read. This tool checks a site you own for those exposure patterns and flags secret-shaped strings in its public HTML and scripts. Any secret it finds is always masked — it never returns a usable credential — and results are not stored.

Use it only on sites you own or are authorized to test. It's a defensive check to catch your own mistakes before someone else does, not a tool for probing other people's sites. To review the wider security posture of a site — certificate, headers, exposed services — run a full Website Check alongside it.

Found this useful? Share it