Is your website leaking API keys or passwords?
A leaked API key or a password in your code can cost you money and data. Check your own project or website for free.
Start with the local key check
Build your site first. Unzip the download next to your project and run this command from your project folder. It looks for keys in the build and checks if Git tracks your .env file. Your files stay on your computer.
node ../sleutelcheck/scripts/sleutelcheck.mjs .
Check your own website
Enter your address. You will see right away whether /.env and /.git are open and whether keys or passwords sit in your JavaScript. We never show contents.
The web check is unavailable. Use the local check above.
We mask keys in the results.
What’s the risk?
VITE_ and NEXT_PUBLIC_ are intended for public settings. Use one of these variables in your site code and its value can end up in the JavaScript visitors download. Bots automatically look for public .env files and .git directories. A leaked key can let someone use your API account at your expense. The same goes for passwords and database URLs in your code: whoever finds them can reach your data.
How often does it happen?
GitGuardian found 28.65 million new secrets in public GitHub commits in 2025.
Bots tried this more than 62,000 times on our sites last month. That’s Cloudflare Analytics’ estimate for requests to .env variants from October 25 to November 23, 2026. The count doesn’t show whether anything leaked.
Found a leak? Here’s what to do
- Revoke the leaked key with its provider, or change the password.
- Check your usage and any charges.
- Keep the replacement key on your server. Remove the old key from public files and deploy a clean build.
Reduce the damage a key can do
Frequently asked questions
Is .gitignore enough?
Git still tracks files you added earlier.
Does HTTP 200 on /.env prove there’s a leak?
No. The response could be your normal web page.
Is my site safe if the check finds nothing?
The check only finds known patterns in the files it can read.