Security Headers Checker — see what any site is missing

Enter a URL and we'll check the response for the HTTP security headers that actually matter -- HSTS, CSP, clickjacking protection, and more.

Checking headers…
0/0

We fetch the URL you enter from our servers to read its response headers, so we can't check anything on your own private network. We don't keep what you enter, only a count of checks run.

Not sure what a header does? Read our guide to each one.

What this security headers checker looks at

The checker requests the URL from our servers over HTTPS, follows up to 5 redirects, and reads the headers on the final response. If you enter http:// or no scheme, it checks the https:// version, because security headers only do their job over HTTPS.

It looks for six headers. The score is simply how many of the six are present: 6/6 is green, 3 to 5 is amber and fewer than 3 is red. It checks that each header is sent, and shows its value, but doesn't grade the value itself, so a weak policy still counts as present.

Separately, it flags information disclosure: a Server or X-Powered-By header that names the software (and often the exact version) behind the site. Those don't count against the score, but removing them gives attackers less to go on.

Common problems and how to fix them

Headers are missing entirely

Add them in the web server, or in whatever sits in front of it (a CDN, load balancer or WAF). A reasonable starting set for nginx, inside the server block:

add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;

The same for Apache, with mod_headers enabled:

Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
Header always set X-Frame-Options "SAMEORIGIN"
Header always set X-Content-Type-Options "nosniff"
Header always set Referrer-Policy "strict-origin-when-cross-origin"
Header always set Permissions-Policy "camera=(), microphone=(), geolocation=()"

Headers show up on some pages but not others

In nginx, add_header lines in a location block replace every add_header inherited from the server block, so one location with its own header silently drops all the others. Repeat the full set in that location, or put them in a shared file and include it. Also check the URL the result reports: if the site redirects, the headers come from the final page, not the address you typed.

Content-Security-Policy breaks the site

CSP is the one header that can't be copied from a template, because it has to list everything your pages load. Start with Content-Security-Policy-Report-Only, fix what the browser console reports, then switch to the enforcing header. Note that this checker only counts the enforcing Content-Security-Policy header.

HSTS: start short

Once a browser has seen HSTS it refuses plain HTTP for the whole max-age. Make sure every subdomain works over HTTPS before using includeSubDomains, and consider a short max-age (say 300) for the first test.

Server or X-Powered-By reveals your software

In nginx, server_tokens off; hides the version (the name stays unless you use a module or a proxy to remove it). In Apache, ServerTokens Prod and ServerSignature Off. For PHP, set expose_php = Off in php.ini to drop X-Powered-By.

For more on what each header does and how to choose its value, see reading your security headers scan.

Frequently asked questions

Is this security headers checker free?
Yes. There's no account and nothing to sign up for.
Do you store the URLs I check?
No. We only count how many checks are run. The address you enter may appear briefly in our server logs, which are deleted after about a week.
Why is my score 6/6 when my policy is weak?
The score counts which headers are present. It doesn't judge their values, so review each value shown in the results, especially Content-Security-Policy.
Can it check a site on my internal network?
No. It fetches the URL from our servers over the public internet, so it can only see sites that are publicly reachable.
Is X-Frame-Options still needed if I have a Content-Security-Policy?
A CSP with frame-ancestors does the same job in current browsers. Sending X-Frame-Options as well costs nothing and covers older ones.
Can I share a result?
Yes. After a check, the page address includes the URL (for example security-headers-checker.html?url=example.com). Opening that link runs the check again with live results.

Other free tools

Set security headers without touching your server

Sites behind ShieldIngress get HSTS automatically, and you can turn on the other five headers and strip Server and X-Powered-By from the dashboard. They're added at the edge, alongside a managed web application firewall, bot protection and rate limiting.

Start Free Trial