What this checker looks at
We request your homepage over HTTPS and read the response headers your server sends back. Each one is checked against current best practice:
- Strict-Transport-Security (HSTS) forces browsers to use HTTPS, protecting visitors on public Wi-Fi.
- Content-Security-Policy (CSP) limits which scripts can run. It's your best defence against cross-site scripting and card-skimming code.
- X-Frame-Options / frame-ancestors stops other sites loading your pages in a hidden frame (clickjacking).
- X-Content-Type-Options stops browsers guessing file types.
- Referrer-Policy controls what your URLs reveal to other sites.
- Permissions-Policy switches off camera, microphone and location access you don't use.
- Server and X-Powered-By, which shouldn't reveal software version numbers.
How the grade works
Every missing or weak header reduces your score according to how much risk it adds. A missing HSTS header or CSP costs more than a missing Permissions-Policy. Grade A means nothing important is missing. Most small business websites score C or D on their first check, usually because there's no CSP and no HSTS. Both are quick to fix.
Recommended starting values
These are safe defaults for most websites. Test them on a staging site first.
Strict-Transport-Security: max-age=31536000; includeSubDomains X-Frame-Options: SAMEORIGIN X-Content-Type-Options: nosniff Referrer-Policy: strict-origin-when-cross-origin Permissions-Policy: camera=(), microphone=(), geolocation=() Content-Security-Policy-Report-Only: default-src 'self'; img-src 'self' data: https:; script-src 'self'
Once your CSP report-only mode shows no unexpected blocks, change Content-Security-Policy-Report-Only to Content-Security-Policy.
Headers are only one layer
Good headers make attacks harder, but they won't fix vulnerable code, outdated plugins or exposed admin pages. Our free website security scan checks headers alongside email security, exposed files and platform weaknesses. A full Yrzo AI report runs up to 110 checks and gives your developer the exact fix for every issue.
Frequently asked questions
What are HTTP security headers?
They're instructions your web server sends with every page, telling the visitor's browser how to behave: always use HTTPS, which scripts are allowed to run, whether the page can be shown inside another site, and so on. They're one of the cheapest and most effective ways to harden a website.
Which security headers does every website need?
At a minimum: Strict-Transport-Security (HSTS), Content-Security-Policy, X-Frame-Options (or CSP frame-ancestors), X-Content-Type-Options: nosniff, and a Referrer-Policy. Permissions-Policy is a useful extra.
Is this security headers check safe to run?
Yes. It requests your homepage once, exactly like a normal visitor, and reads the headers that come back. It doesn't send any attack payloads.
How do I add security headers to my site?
It depends on your host. On Apache you can use .htaccess, on Nginx the add_header directive, on Cloudflare a Transform Rule, and on platforms like Netlify or Vercel a headers config file. WordPress users can add them with a security plugin. Our guide to fixing security headers has step-by-step examples.
Will adding a Content Security Policy break my website?
It can if it's too strict, because it blocks scripts you haven't allowed. Start with Content-Security-Policy-Report-Only to see what would be blocked, adjust it, then switch to enforcing mode.
Do security headers help SEO?
Not directly as a ranking factor, but HTTPS is a ranking signal and HSTS strengthens it. Headers also protect your visitors, and a hacked site can be flagged or removed by Google.