A security headers checker scans the invisible instructions your website sends with every page and tells you which protections are missing. Paste in your URL and in seconds you get a grade — A+ down to F — plus the headers your site sends and the ones it does not.
What Are Security Headers, and Why Do They Matter?
Every time a browser loads your page, your server sends HTTP response headers with the content. Most are plumbing — content type, caching. A handful are security instructions: short commands telling the browser how to behave on your site. Visitors never see them, but browsers obey them on every visit.
One header tells the browser to only ever load your site over HTTPS, never plain HTTP. Another says which sources may run scripts on your page, blocking many injection attacks. A third says whether your pages may be embedded inside someone else’s frame — that is what stops clickjacking, where an attacker layers your real page under a fake button. None of this changes how your site looks.
This matters for small sites too, because automated scanners probe every site for these gaps. An attacker does not need to know who you are; a script finds a site with no frame protection and tries the known exploits. Security headers are the cheapest layer of defence you have: they cost nothing and close doors that are otherwise standing open.
What Does a Security Headers Checker Actually Test?
A checker requests your homepage like a browser would, reads the headers, and scores the six professionals consider the baseline. Here is what each one does.
Strict-Transport-Security (HSTS) tells browsers to only connect to your site over HTTPS for a set period, typically a year. Once a browser has seen it, it refuses plain HTTP even if a visitor clicks an old http:// link.
Content-Security-Policy (CSP) is a whitelist of where scripts, styles, images, and fonts may load from. If an attacker injects a malicious script into your page, a strict CSP stops the browser from running it. It is the most powerful header on the list — and the one most likely to break something if set carelessly.
X-Frame-Options controls whether your pages can be embedded in a frame on another site. Set to DENY or SAMEORIGIN, it stops clickjacking: nobody can wrap your checkout or login form inside their own page and trick visitors into clicking what they cannot see.
X-Content-Type-Options, set to nosniff, tells the browser to trust the content type your server declares and never guess. Without it, a browser can be tricked into treating an uploaded file as executable code.
Referrer-Policy controls how much of your visitors’ browsing history leaks to other sites when they click an outgoing link. A value like strict-origin-when-cross-origin keeps full URLs private while still letting analytics see where traffic came from.
Permissions-Policy switches off browser features your site does not use — camera, microphone, geolocation. If your site never needs the camera, telling the browser so removes one more thing an injected script could abuse.
How Do I Use a Security Headers Checker?
The best-known free option is securityheaders.com. Open it, type your homepage URL, and click Scan. The report grades each header — green for correct, amber for weak, red for missing — and finishes with an overall grade. It takes about ten seconds, no account needed.
Run the check on your homepage first, then on one or two other page types: a blog post, a contact page, a checkout page. Headers are usually set site-wide, so the results should match — but if your site is built from several systems, for example a WordPress blog plus a separate shop subdomain, each part can send different headers.
Do not chase an A+ on your first day. A C with HSTS, X-Frame-Options, and X-Content-Type-Options in place is already a large improvement over the F most sites start with. And remember: a checker only sees what your server sends to a plain anonymous request, so after you change anything, load your site in a real browser and click around first.
What Do the Grades Mean — and What Score Should I Aim For?
Grades run from A+ down to F. An F usually means your site sends none of the six headers — the default for a fresh install, so do not panic if that is where you start. A D or C means a couple are present; a B means most of the baseline is in place. An A or A+ means everything is present and sensibly configured.
For most small sites, a B is a realistic target. Getting from F to B takes three headers that are almost never risky: HSTS, X-Frame-Options, and X-Content-Type-Options. The jump from B to A usually means adding a Content-Security-Policy — and that is where you should slow down, because a CSP that is too strict will block your own analytics, fonts, or videos. Add it in report-only mode first, watch it for a week, then enforce it.
A Mini-Test: What My Own Site’s Headers Look Like
I ran a headers check on a WordPress site while writing this guide. The site sent exactly one security header: a minimal Content-Security-Policy containing only upgrade-insecure-requests, which tells the browser to load any http:// resources over https:// instead. There was no Strict-Transport-Security, no X-Frame-Options, no X-Content-Type-Options, no Referrer-Policy, and no Permissions-Policy. The server also advertised its PHP version — information an attacker does not need.
That is completely ordinary. A standard WordPress install on shared hosting sends almost nothing by default. Try it on your site now, screenshot the result, then fix one header, rescan, and compare — that before-and-after pair is the fastest way to learn what each header does.
How Do I Fix Missing Security Headers?
On WordPress, the simplest route is a plugin. Really Simple SSL sets HSTS, X-Content-Type-Options, and X-Frame-Options with toggles and no code, and handles the HTTPS redirect at the same time. A dedicated headers plugin can add Referrer-Policy and Permissions-Policy the same way. Use one plugin, not three — overlapping plugins that set the same header can send duplicate values, and the checker will flag the mess.
If you are comfortable editing server configuration, set the headers directly: in .htaccess on Apache, or in the server block on Nginx. The headers then apply to every page, including error pages the CMS never touches. Whichever route you choose, add one header at a time and rescan after each one, so a problem points straight at the change that caused it.
Two warnings before you start. First, HSTS is a commitment: once a browser sees it with a one-year max-age, it will refuse plain HTTP to your site for a year, so make sure your HTTPS works on every page — including images and subdomains — before you turn it on. Second, test your site after every change. Open our free responsive preview tool and check your homepage at phone, tablet, and desktop widths: a header change should never change how a page looks, but if a CSP blocks a font or script, the preview is where you will spot it first.
FAQ
Is a security headers checker free?
Yes. Securityheaders.com is free with no account, and most alternatives — Mozilla Observatory, and the checks built into web.dev — are free too. You can check headers yourself with a single curl command, but the online checkers explain each result, which is the part worth having.
Will adding security headers slow my website down?
No. Headers are a few extra lines in the response your server already sends, adding well under a millisecond. They cost nothing in performance and nothing in money — one of the best-value security fixes a small site can make.
Can a security headers checker tell me if my site has been hacked?
No. A checker only reads the headers your server sends; it cannot see malware, injected scripts, or a compromised admin account. If you suspect a hack, run a malware scan — headers are prevention, not detection.
Do I need an A+ grade to be secure?
No. A B grade with HSTS, X-Frame-Options, and X-Content-Type-Options already closes the most commonly exploited gaps. Chase A+ only if you can add a Content-Security-Policy without breaking your own site — a working site with a B beats a broken site with an A+.