Checks · PORT-003
PORT-003 · .git or .env served over HTTP
P0 CriticalWhy it matters
If the server returns your .git directory or .env file, the source and keys are public.
How we detect it
A read-only request to /.git/HEAD or /.env returns the file rather than a page.
How we fix it
Block those paths in the server or host config.
Can it be fixed automatically? Yes, with a template change