The headers that matter
| Header | Protects against |
|---|---|
| Strict-Transport-Security | HTTPS downgrade and cookie theft on insecure connections. |
| Content-Security-Policy | Cross-site scripting and injected third-party scripts. |
| X-Frame-Options / CSP frame-ancestors | Clickjacking: your page loaded invisibly inside another site. |
| X-Content-Type-Options: nosniff | Browsers treating uploaded files as scripts. |
| Referrer-Policy | Leaking full URLs (with tokens or IDs) to other sites. |
| Permissions-Policy | Unused browser features such as camera or geolocation being abused. |
Try it Check a site's security headers
Full tool: Security Headers Checker
Headers you can skip
X-XSS-Protection is obsolete; modern browsers removed the filter it controlled, and OWASP recommends disabling it or leaving it out. Expect-CT is also deprecated.
How to read a header report
Missing HSTS on an HTTPS site is the most common real gap. A missing CSP is common and harder to fix, because a policy must list every legitimate script source. Version numbers in Server or X-Powered-By do not create vulnerabilities by themselves, but they help attackers match known flaws.
Next step
The fix guide has copy-ready configuration for Nginx, Apache, Cloudflare and others.
See the whole picture
Run the full Recon Snapshot to check DNS, email authentication, certificates, hosting, exposed services, security headers and lookalike domains together, with a plain-English fix for every finding.
Run a full snapshotReferences
About this guide
Drafted with AI assistance and checked against the primary sources listed above; its embedded tool was tested against live domains before publication. It was last checked on November 25, 2026; standards and provider requirements change, so confirm critical settings against the references. Found an error? Tell us.
Related guides
- How to Fix Missing Security HeadersAdd HSTS, Content-Security-Policy, X-Frame-Options and other security headers on Nginx, Apache, Cloudflare and Netlify, safely and in the right order.
- How to Check an SSL CertificateCheck when an SSL/TLS certificate expires, who issued it and which names it covers, in the browser, with OpenSSL, or with a free online checker.