ReconSnapshot--:--:--ZUTC

Web & certificates · Guide

Understanding Website Security Headers

Security headers are instructions your web server sends with each page that tell browsers to enable built-in protections. Strict-Transport-Security and Content-Security-Policy do the most; the rest are quick, low-risk hardening.

By DarkFire Industries · Reviewed · How this guide was made

The headers that matter

HeaderProtects against
Strict-Transport-SecurityHTTPS downgrade and cookie theft on insecure connections.
Content-Security-PolicyCross-site scripting and injected third-party scripts.
X-Frame-Options / CSP frame-ancestorsClickjacking: your page loaded invisibly inside another site.
X-Content-Type-Options: nosniffBrowsers treating uploaded files as scripts.
Referrer-PolicyLeaking full URLs (with tokens or IDs) to other sites.
Permissions-PolicyUnused browser features such as camera or geolocation being abused.
What each security header protectsHeaders are instructions sent with every response. Each switches on a browser protection against a specific attack.ServerHTTP responseBrowserenforcesStrict-Transport-Securitystops HTTPS downgradeContent-Security-Policystops injected scripts (XSS)X-Frame-Optionsstops clickjackingX-Content-Type-Optionsstops MIME sniffingReferrer-Policystops URL leakage
What each security header protects. Headers are instructions sent with every response. Each switches on a browser protection against a specific attack.

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 snapshot

References

  1. OWASP Secure Headers Project
  2. OWASP HTTP Headers Cheat Sheet
  3. MDN — Strict-Transport-Security
  4. MDN — Content Security Policy (CSP)

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