Error pages that reveal internals
Show visitors a plain error page, never a stack trace or debug screen.
What it is
In debug mode, many frameworks print the full error: file paths, code snippets, framework versions, and sometimes environment variables.
Why it matters
That is a free map of your server for an attacker, and debug pages have leaked database passwords and API keys.
How to fix it
Django
DEBUG = False
Laravel (.env)
APP_DEBUG=false
Node / Express
NODE_ENV=production app.use((err, req, res, next) => res.status(500).send("Something went wrong"));
Does your site have this problem?
Kompile Scan checks for this and the other problems in these guides in under a minute. Free for one site.