Enter a URL and we'll check the response for the HTTP security headers that actually matter -- HSTS, CSP, clickjacking protection, and more.
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.
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.
http:// link.nosniff, stops browsers from guessing a file's type and running an uploaded file as a script.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.
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=()"
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.
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.
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.
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.
frame-ancestors does the same job in current browsers. Sending X-Frame-Options as well costs nothing and covers older ones.security-headers-checker.html?url=example.com). Opening that link runs the check again with live results.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