Security headers checker: HSTS, CSP, X-Frame-Options and more

Check which HTTP security headers a site sends and get a grade from A to F, with a plain explanation of each missing header.

The headers that matter

HeaderWhat it protects against
Strict-Transport-SecurityDowngrade attacks; forces HTTPS
Content-Security-PolicyInjected scripts (XSS) and unwanted third-party code
X-Frame-Options or frame-ancestorsClickjacking through hidden frames
X-Content-Type-OptionsBrowsers misreading files as scripts
Referrer-PolicyLeaking private URLs to other sites
Permissions-PolicyUnused access to camera, microphone and location

Why it matters for SEO

Hacked sites get spam pages injected, lose rankings and can be flagged in search results. Security headers are a cheap layer of protection, and they show buyers and partners that a site is well run.

How to add them

  • Cloudflare: use Transform Rules or a Worker to add headers to every response.
  • WordPress: a security plugin or your host's settings.
  • Shopify: Shopify sets HTTPS and some headers for you; others aren't configurable.
  • Custom sites: set them in your web server or framework config.

Start with a Content-Security-Policy in report-only mode, so you can see what it would block before enforcing it.

Questions people ask

Will security headers break my site?

Most won't. Content-Security-Policy can block scripts if it's too strict, so test it in report-only mode first.

Is a grade of A required?

No, but HSTS and a sensible CSP are worth having on any site that takes logins, payments or enquiries.

Why does the checker flag the Server header?

Showing exact software versions makes it easier for attackers to find known weaknesses.

Found problems? I'll fix them.

Send me your site. You'll get a clear plan within a day.