Skip to content

Free public .env checker

Short answer

Short answer: check whether common environment-file paths are publicly served, then block dotfiles and rotate any private values found. This guide explains what to verify and what the public scan cannot prove, without logging in, changing records, or treating an inconclusive response as a pass.

Check yours now
Read-only. No writes or row contents.

What the public .env file checker check covers

The checker requests known environment-file paths and looks for a response that resembles a file rather than downloading and displaying its full contents. It only checks the public host you are authorized to test.

This free checker is an entry point into a broader read-only scan. Its output is evidence about a specific public response or browser asset, not a guarantee that the application, provider account, or private backend is safe.

A positive response indicates a deployment exposure to investigate; it does not prove every variable is a secret. A denial or not-found response covers only the tested path and host.

Understand the evidence before changing code

Remove environment files from static output and configure the host to deny dotfiles. Keep runtime credentials in the deployment secret manager and create a separate public config file only for values safe to expose.

Run the check against a production URL you own or are authorized to test. The browser-visible configuration is already public; never paste a secret value into the checker, a support ticket, or an AI prompt.

Apply the narrow, safe change

If a file containing private credentials was served, rotate those credentials with their providers. Removing the path prevents future requests but does not invalidate values already copied.

Deny public dotfiles · nginx
location ~ /.(?!well-known) {
  deny all;
  return 404;
}

Results distinguish a confirmed response from a blocked or ambiguous one. A timeout, authentication wall, empty dataset, or host-level denial may prevent a conclusion; the tool should not turn missing evidence into a green result.

Verify the production result

After deploying the fix, request the exact path and check alternate hostnames or CDN behavior. Confirm normal application pages still load and no required well-known files were blocked.

If the checker finds an issue, use the linked repair guide to change the correct deployment setting. Keep least privilege, review the diff, and avoid disabling access controls just to make the status change.

Keep the issue from returning

Make the deployment artifact explicit and add a CI assertion for .env-like filenames. Ignore rules prevent accidental commits but do not always control build output or host routing.

Re-run the checker after deployment and compare the new response with the original finding. If a CDN or build cache is involved, verify the actual public asset rather than assuming a successful deploy invalidated every copy.

Limits and next steps

The checker does not read or retain private file bodies. It cannot infer all deployment aliases or guarantee that an untested file path is inaccessible.

The check is designed to avoid reading private application records. Where a provider offers a count-only or metadata response, the tool reads only that signal; it does not need row contents to explain the boundary.

A passing result covers only the advertised check and its observable surface. It does not replace dependency review, authenticated authorization tests, incident response, or a security assessment of code the public scanner cannot see.

Key facts

  • A not-found response for one path does not cover every hostname or alias.
  • A public file should be removed from build output as well as blocked at the host.
  • Credential rotation is necessary after a private value was served.

Questions

Can a clean public .env file checker check prove the app is secure?
No. It is evidence about the advertised public surface only. It checks common public paths and response signatures without showing the file body.
What should I do first if the finding is real?
Remove the file from output, deny dotfiles, and rotate any exposed credentials.
Does ProofForge change application data?
No. The scan is read-only and does not sign in, write records, or use a discovered secret. You make and review any remediation in your own project.
What should I do after the repair?
Re-check the exact production path and any CDN or alternate domain.

Official documentation referenced

Related

Last updated 2026-11-25 · Reviewed by ProofForge · Methodology · Markdown