cd /news/ai-tools/how-to-check-any-website-for-exposed… · home › topics › ai-tools › article
[ARTICLE · art-177503] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=· neutral

How to check any website for exposed API keys in its JavaScript (5 minutes, no tools)

A developer published a five-minute, no-tools method for checking whether a website's JavaScript bundles expose API keys, walking through browser DevTools to search for OpenAI, Stripe, Supabase and AWS credential prefixes and to decode JWT role claims. The guide also covers probing for exposed .env and .git/HEAD files and public source maps, and notes that removing a key from a site does not undo prior exposure. ProofForge offers free read-only checkers that automate the steps for sites you own.

recommendation

Scan your own site's JS bundles for sk-, sk_live_, AKIA and service_role JWT prefixes, and confirm /.env, /.git/HEAD and .map files return no real contents.

more in playbook: Securing agents and AI tools
by read2 min views5 publishedNov 27, 2026

You can check what a website hands to every visitor in a few minutes. No account and no special tools. This is the same look a stranger gets, so it only makes sense on sites you own or have permission to test.

Open the site, press F12, go to the Network tab, reload, and filter by JS. Click the largest .js files (names like index-abc123.js or main.js).

Use the search box in the Sources tab (Ctrl+Shift+F) or paste the file into an editor. Look for these prefixes: | Pattern | What it is | In the browser? |

|---|---|---|
| `sk-` or`sk-proj-` | OpenAI secret key | Never | 

| sk_live_ | Stripe secret key | Never | | pk_live_ | Stripe publishable key | Fine | | eyJ... with"role":"service_role" | Supabase service role JWT | Never | | eyJ... with"role":"anon" | Supabase anon key | Fine if access rules are on | | AKIA | AWS access key ID | Never |

A JWT is three base64 parts separated by dots. Paste the middle part into a base64 decoder, or use a local decoder, and read the role claim. Do not paste a real secret into a website you do not trust.

Request /.env and /.git/HEAD on the site. A real file shows contents. A normal HTML page means the host is returning its fallback, which is not a leak. Also check whether the bundle ends with a //# sourceMappingURL= line and whether that .map file loads. A public source map shows your original source code.

Removing it from the site does not undo exposure. Anything that was served can have been copied.

ProofForge has free read-only checkers that do these steps for a site you own: https://proofforge.live/tools/exposed-api-key-checker and https://proofforge.live/tools/env-file-checker . Key prefix reference and the fix for each: https://proofforge.live/leaked-keys

A clean result is evidence, not a guarantee. It does not see server code or logged-in behavior.

── more in #ai-tools 4 stories · sorted by recency
── more on @proofforge 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/how-to-check-any-web…] indexed:0 read:2min 2026-11-27 · —