Security Headers Checker
Checks a page for the six main security headers, grades them, and gives you the code to add what is missing.
Why it matters
Security headers tell browsers how to protect your visitors from attacks such as clickjacking and script injection. They take little effort to add, though they are mainly about safety rather than rankings.
How to fix it
- Add the simple ones first: X-Frame-Options, X-Content-Type-Options and Referrer-Policy.
- Turn on HSTS once the whole site works on https.
- Test a Content-Security-Policy in report-only mode before enforcing it.
What a good result looks like
At least five of the six headers, including HSTS on an https site.
Common mistakes
- Copying a strict Content-Security-Policy without testing it, which can break scripts and checkout.
- Turning on HSTS before every part of the site works on https.
Questions about the Security Headers Checker
Do security headers help SEO?
Mostly not. Google's John Mueller has said HSTS doesn't affect Search, and that the one he could imagine mattering is stopping other sites framing your pages. They are mainly there to protect your visitors.
Why do you only count a CSP with script rules?
A policy with only something like base-uri doesn't limit scripts, which is the main reason to have one. So it doesn't count here.
Is a report-only CSP enough?
It is the right first step, as it shows what would break. It doesn't block anything until you enforce it, so we don't count it as present.
Check everything at once
Run our other instant checks on your site in one report.
Full SEO check-up