Tested before published
Every server snippet is run in a container on the versions named in the guide, and its result checked with curl or openssl, error pages included.
Security header guides
What each security header protects against, how to roll it out without breaking your site, and configuration we ran on real servers before publishing it.
01 / The headers grade
Each header earns its full weight when it passes, half when WebSec0 flags a weakness, and nothing when it is missing. Start with the heaviest one.
02 / By server
A single tested snippet with all six headers for your web server, and how to keep it on every location, error page and proxied application.
All six security headers on Nginx in one tested snippet: CSP, HSTS, X-Frame-Options, Referrer-Policy, Permissions-Policy and nosniff, error pages included.
All six security headers on Apache in one tested file: CSP, HSTS, X-Frame-Options, Referrer-Policy, Permissions-Policy and nosniff, error pages and proxies included.
All six security headers on Caddy in one tested snippet: CSP, HSTS, X-Frame-Options, Referrer-Policy, Permissions-Policy and nosniff, proxies and error pages included.
All six security headers on Traefik in one tested headers middleware: CSP, HSTS, X-Frame-Options, Referrer-Policy, Permissions-Policy and nosniff, labels or file.
03 / Penalties and bonuses
Other headers move the score after the six are graded: insecure cookies, an open CORS policy and a version in the Server header cost points, cross-origin isolation earns them.
04 / TLS
WebSec0 grades your TLS setup apart from the headers. Old protocol versions, weak cipher suites and a broken certificate chain each cap that grade, whatever the score.
05 / How we write them
Every server snippet is run in a container on the versions named in the guide, and its result checked with curl or openssl, error pages included.
Each guide explains exactly what WebSec0 checks and how it scores, so the fix you apply is the one the report asks for.
Claims link to specifications, MDN and server documentation. Browser support and server versions are rechecked when we update a guide.
Not sure where to start?
The report links each failing header to its guide.