Security Headers Checker
A grade for the security headers your site sends: HSTS, Content-Security-Policy, X-Frame-Options, Referrer-Policy and more, with the exact lines to add.
Run all 34 checks on this site in URSY One report, the top 10 fixes first. Free with a URSY account.
Guide
What this checker does
It fetches the address you type, follows any redirects one hop at a time, and reads the headers your server sends with the final page. Then it grades the six headers that protect your visitors in the browser and gives the page a grade from A+ to F and a score out of 100.
It also checks that the plain http:// address moves visitors to https, reads your Content-Security-Policy rule by rule, and looks for things that should not be sent: software version numbers, the old X-XSS-Protection filter switched on, and cookies without the Secure flag. Cookie values are never shown, only their names.
- Strict-Transport-Security (HSTS): use only https for this site.
- Content-Security-Policy (CSP): which sources may load scripts and other files.
- X-Frame-Options or CSP frame-ancestors: who may show the page in a frame.
- X-Content-Type-Options: nosniff: browsers must not guess file types.
- Referrer-Policy: how much of your address other sites see.
- Permissions-Policy: which browser features (camera, microphone, location) may be used.
Why it matters
These headers cost nothing to send and close common gaps. HSTS stops a visit slipping back to plain http, where it can be read or changed on the way. A good CSP stops an injected script from running. Framing rules stop another site hiding your page in a frame and tricking people into clicking on it.
They are not a replacement for keeping your software updated or for a valid certificate. They are an extra layer that works in every visitor's browser.
How to read the result
Each graded header gets Good, Weak or Missing and a number of points. HSTS and CSP are worth 25 each, framing and nosniff 15 each, Referrer-Policy and Permissions-Policy 10 each. Five points come off for each thing that should not be sent. The full recipe is shown with every result, so you can see exactly why you got your grade.
We grade only a page that answered 200. If the server refuses our checker (401, 403 or 429), we say we could not read the page and grade nothing, because the headers of a refusal are not the headers of your page. A 404 means the address was not found; try your home page instead.
How to fix what it finds
Under "Lines to add" you get the exact lines for Apache (.htaccess) and nginx, only for the headers you need. Add them one at a time and check your site after each one. If a plugin, your host's control panel or a CDN already sets a header, change it there rather than adding a second copy.
Take care with Content-Security-Policy. A strict policy sent straight away can break scripts, fonts, analytics, chat widgets and payment forms. That is why our starter line is report-only: it blocks nothing, and the browser console shows what a real policy would block. When the reports are clean, switch it on. Add includeSubDomains to HSTS only when every subdomain works on https.
Why it matters
These headers cost nothing and close common gaps. MDN says Content-Security-Policy lets site owners control which resources a browser may load for a page, which helps guard against cross-site scripting. For framing, MDN notes that X-Frame-Options set inside a <meta> tag has no effect; it only works as a real header. For X-Content-Type-Options: nosniff, it says the browser blocks scripts and styles whose declared type does not match.
Some defaults have improved. MDN says strict-origin-when-cross-origin is now the default referrer policy when none is set, so other sites receive only your domain, not the full address, on secure links. And on the Server header, MDN warns that fine-grained software details can make known weaknesses easier to find. Headers sit alongside, not instead of, a web application firewall and a valid SSL certificate.
Check it yourself today
- Paste your address into our HTTP Header Checker. It lists every header and marks the security ones. The guide How to use the HTTP Header Checker explains each line.
- Or open DevTools with F12, go to Network, reload, click the first row and read Response Headers.
- From a terminal,
curl -sI https://www.example.co.uk/prints the headers only. - Check the http version redirects first, using the Redirect Checker. HSTS only counts when sent over https.
- Write each header as present or missing in a short table, and fix the missing ones one at a time.
Common problems and how to fix them
New CSP broke the site
Start with Content-Security-Policy-Report-Only. The browser reports what would be blocked without blocking it. Tighten the rules once the reports go quiet.
Headers on the home page but not on other pages
They were added in one template or one cache rule. Set them at the server or CDN level so every response carries them.
The same header sent twice
Both the server and a plugin add it, sometimes with different values. Remove one.
Related in URSY Pro
The site audit checks headers on every page during each scheduled crawl.
Sources
- MDN: Content-Security-Policy, checked 23 November 2026
- MDN: Content-Security-Policy-Report-Only, checked 23 November 2026
- MDN: X-Frame-Options, checked 23 November 2026
- MDN: X-Content-Type-Options, checked 23 November 2026
- MDN: Referrer-Policy, checked 23 November 2026
- MDN: Server, checked 23 November 2026
- MDN: Strict-Transport-Security, checked 23 November 2026
Updated 23 November 2026 by URSY.
Questions and answers
Which header should I add first?
X-Content-Type-Options: nosniff, Referrer-Policy and X-Frame-Options: SAMEORIGIN are low risk on most sites. HSTS is next, once the whole site works on https. Content-Security-Policy needs the most testing, so start it in report-only mode.
Why is my grade F when the site works fine?
The grade is about protection, not about whether the page loads. A site with none of these headers works, but leaves its visitors open to attacks the headers would stop. Adding the lines we suggest usually lifts the grade quickly.
Should I still send X-XSS-Protection?
No need. MDN marks it deprecated and warns it can create holes of its own, and modern browsers have removed the filter. The OWASP Secure Headers Project advises sending it as 0, or you can leave it out. A good Content-Security-Policy does the job now.
What does HSTS preload mean?
Browsers ship with a list of domains that must always use https, even on the first visit. To join it, the header needs max-age of at least a year, includeSubDomains and preload, and http must redirect to https on the same host. It covers every subdomain and is slow to undo, so most sites do not need it.
Why do you check only one page?
Headers are usually set for the whole site, but not always: a template or a cache rule can add them to some pages only. Check a few different pages, and set the headers at the server or CDN so every answer carries them.
Do security headers help SEO?
They are not built for rankings. They protect your visitors, and a hacked site loses trust and traffic fast.
Create a free account
Every tool at Pro level, free for 6 months. No card. More checks a day, every row of every table, and your sites tracked over time.
Sign in with a code we email you. No password.