HTTP Security Headers Checker
Paste a URL to see which security headers the site sends, a grade from A+ to F, what each missing header leaves open, and the exact line to add in nginx or Apache.
Check the security headers of any website
A domain or a full URL. Without http:// or https:// we check the HTTPS version and follow up to 5 redirects.
Fetching the headers...
That did not work
This page is served over plain HTTP. Browsers ignore HSTS there, and anyone on the network can change the page and its headers. Move the site to HTTPS first.
Headers that give away too much
This does not open a hole on its own, but it tells attackers which exploits to try. nginx: server_tokens off; Apache: ServerTokens Prod and Header unset X-Powered-By; PHP: expose_php = Off.
All response headers
How the check works
Paste a URL
Your home page, a login page or any URL. A bare domain is checked over HTTPS.
We read the headers
Our server requests the page like a browser, follows up to 5 redirects and reads the response headers of the final page.
Copy the fix
Each header gets a plain verdict and a ready line for nginx or Apache. Check again after you deploy.
Run a security headers check on your own site before a pentest, an audit or a client finds the gaps. Paste a domain or URL below. The checker reads the response headers of the final page, grades HSTS, CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy and Permissions-Policy, and gives you a fix you can paste.
What this security headers check looks at
Every time a browser loads a page, the server sends a block of HTTP headers before the HTML. Most of them are boring: content type, caching, cookies. A handful of them tell the browser how careful to be with your site, and those are the ones this tool grades.
You paste a domain or a URL. Our server requests it like a browser would, follows up to five redirects, and reads the headers of the page it ends on. Then it checks six of them: Strict-Transport-Security (HSTS), Content-Security-Policy, X-Frame-Options, X-Content-Type-Options, Referrer-Policy and Permissions-Policy. Each one gets a plain verdict, a short note on what it protects against, and, if it's missing or wrong, a ready line for nginx and one for Apache.
We also flag headers that give away too much, like an X-Powered-By that announces your PHP version or a Server header with a version number in it. That's not a hole on its own. It does save an attacker a step.
Why we built another headers checker
Honestly, the existing tools grade fine. What bugged us was the next step. You get a red F, a list of missing headers, and then you're off searching for the right syntax, wondering whether add_header needs the always flag (it does, otherwise nginx skips the header on error pages) and whether your CSP will break the checkout page.
So every failing check here comes with three things you can copy: the header with a sensible value, the nginx line and the Apache line. They're starting points, not magic. A Content-Security-Policy in particular has to be fitted to your site, and we say so right next to it.
The six headers, in plain words
Strict-Transport-Security (HSTS)
HSTS only helps if the certificate behind it is healthy, so it's worth running the domain through our SSL certificate checker as well.
This tells the browser: for the next N seconds, only ever talk to this domain over HTTPS. Without it, someone who types yoursite.com into the address bar makes the first request over plain HTTP, and on a hostile Wi-Fi network that request can be intercepted before your redirect to HTTPS ever arrives. We want to see a max-age of at least 180 days. A year (31536000 seconds) is the usual choice and is what the HSTS preload list asks for. If you add includeSubDomains, make sure every subdomain actually works on HTTPS first, because browsers will refuse to load the ones that don't.
Content-Security-Policy
CSP is the big one. It lists where scripts, styles, images and frames may come from. If an attacker manages to sneak a script tag into one of your pages through a comment form or a bad plugin, a decent CSP stops the browser from running it. We check that scripts are actually restricted (through script-src or default-src) and warn on 'unsafe-inline', 'unsafe-eval' and wide sources like https: or *. A policy with 'unsafe-inline' and no nonce is better than nothing, but not by much.
Don't paste a strict CSP straight onto a live shop. Send it as Content-Security-Policy-Report-Only for a week, read what it would have blocked, add the domains you really use, then switch it to the enforcing header. We grade a report-only policy as needs work, not as missing, because it's the right way to start.
X-Frame-Options
Stops other sites from loading your page inside an invisible frame and tricking people into clicking buttons on it. That trick is called clickjacking, and it's nastier on pages with one-click actions like delete, pay or confirm. DENY or SAMEORIGIN both pass. If your CSP already has a frame-ancestors directive, we count that instead, because modern browsers prefer it. ALLOW-FROM is dead; browsers ignore it.
X-Content-Type-Options
One value, nosniff, and it's the easiest win on this page. It stops browsers from second-guessing the content type your server declares. Without it, a file served as plain text could be treated as a script under the right conditions. There's no downside to setting it.
Referrer-Policy
When someone clicks a link from your site to another site, the browser can send along the URL they came from. If your URLs carry search terms, order numbers or reset tokens, that's a leak. Current Chrome, Firefox and Safari already default to strict-origin-when-cross-origin, so a missing header isn't a disaster, which is why we grade it as needs work rather than a fail. We do flag unsafe-url and no-referrer-when-downgrade, since those send the full path and query string to every site you link to.
Permissions-Policy
Lets you switch off browser features you don't use: camera, microphone, geolocation, payment and so on. It matters most when you load third-party scripts, ads or embeds, because it stops them from asking visitors for things your site never needs. It used to be called Feature-Policy; if that's all you send, we'll point it out.
A few times this comes in handy
- A security questionnaire from a big customer asks whether you set HSTS and CSP, and you'd like to answer with a screenshot instead of a guess.
- You moved the site behind a CDN or a new reverse proxy, and you want to know whether the headers survived the move. They often don't.
- A pentest report listed missing headers and you need the exact lines to hand to whoever runs the server.
- You set headers in .htaccess, but the app also sends its own, and you want to see which one the browser actually gets.
- You're checking a supplier's login page before you trust them with data.
Reading the grade
If the site bounces through several hops before it lands, our redirect checker shows every one of them with its own status code.
Each of the six headers is worth two points when it's set well, one when it's there but weak, and zero when it's missing or broken. Twelve points with no version leaks is an A+. Eleven is an A, nine a B, seven a C, five a D, and anything lower an F. It's deliberately simple. A bank login page and a personal blog shouldn't be held to exactly the same CSP, so treat the letter as a quick read and the notes under each header as the real result.
One thing that drags any site down: serving the final page over plain HTTP. HSTS can't work there, and anyone on the network can rewrite the page and its headers anyway, so we flag it at the top of the results.
What we don't grade, and why
X-XSS-Protection isn't on the list. Chrome removed the XSS auditor it controlled, and setting it wrongly caused more problems than it solved. Cross-Origin headers like COOP and CORP matter for some apps, but for a normal website they'd mostly add red marks you don't need. We'd rather give you six verdicts you can act on today than fifteen you'll ignore. All raw response headers are listed at the bottom anyway, cookies counted but never shown, so nothing is hidden from you.
Privacy and limits
We only fetch public addresses on ports 80 and 443. Private, local and reserved IP ranges are blocked, including when a redirect tries to point there. Results are cached for ten minutes per URL, so if you've just changed your config, wait a few minutes or add a query string like ?v=2 to force a fresh read. Each connection gets 30 checks an hour, which is plenty for fixing one site and not much use for scanning the internet.
Headers protect the website; for the mail side of the same domain, our SPF, DKIM and DMARC checker looks at the DNS records that stop spoofed email.
Security Headers Questions
Similar tools to explore
SPF, DKIM and DMARC Checker
Check the SPF, DKIM, DMARC and MX records of any domain. Each problem is explained in plain words, with what to change.
Check Email RecordsSSL Certificate Checker
Check the SSL certificate of any website in seconds: days until it expires, who issued it, which names it covers, whether the chain is complete, and which TLS versions are on.
Check SSL CertificateRedirect Chain Checker
Paste a URL and see every redirect it goes through: the status code, the Location header, the server and how many milliseconds each hop took, with long chains, loops and wrong 302s flagged.
Check RedirectsXML Sitemap Generator
Generate clean, schema-compliant XML sitemaps with custom lastmod dates and priority weighting.
Generate SitemapLink Analyzer
Analyze internal and external hyperlink structures, anchor text distribution, and link attributes.
Analyze LinksDofollow Nofollow Link Checker
Analyze link attributes including dofollow, nofollow, sponsored, and UGC tags to monitor PageRank flow.
Check Links