Security headers are short instructions a website’s server sends with each page, telling the browser to switch on protections: always use HTTPS, run only approved scripts, refuse to be shown inside another site’s frame. To check a site’s, read its response headers with curl -sI or your browser’s developer tools, or let the Website Trust Checker count the six common ones for you, with the exact lines it found.
They are less common than you might think. Of 4,468 popular sites whose home page we read in October and November 2026, the typical one sent two of the six; 28.6% sent none, and 4.7% sent all six.
The six headers, and what each protects against
| Header | What it does | Popular sites |
|---|---|---|
| Strict-Transport-Security (HSTS) | Makes the browser use only HTTPS, so a hostile network can’t move visitors to plain HTTP | 52.8% |
| Content-Security-Policy (CSP) | Lists where scripts, styles and frames may come from, so injected scripts don’t run (cross-site scripting) | 30.7% |
| X-Frame-Options, or CSP’s frame-ancestors | Stops other sites showing the page in a hidden frame to steal clicks (clickjacking) | 50.6% |
| X-Content-Type-Options: nosniff | Makes the browser trust the declared file type, so an uploaded file can’t run as a page or a script | 46.2% |
| Referrer-Policy | Limits how much of the page’s address goes to the next site, so private paths and searches don’t leak | 25.5% |
| Permissions-Policy | Turns off features the site doesn’t use, such as the camera, microphone or location | 11.1% |
What the references add, read on 21 November 2026:
- HSTS only starts after a first secure visit; until then, that first request can still be tampered with. Browsers ship a preload list of sites that are HTTPS-only from the start, which closes the gap (MDN, updated 11 Sep 2026). OWASP suggests two years:
max-age=63072000; includeSubDomains; preload. - CSP does the most against script injection and takes the most work: a policy that is too strict breaks the page. A report-only version lets a site test one without blocking anything (MDN, updated 22 Mar 2026).
- Framing: X-Frame-Options is still supported everywhere, and CSP’s
frame-ancestorsrule is the more complete way to say the same (MDN, updated 28 Oct 2026). OWASP recommendsframe-ancestorswhere possible. - nosniff stops a browser treating, say, an uploaded text file as a web page and running the script inside it (MDN, updated 17 Mar 2026).
- Referrer-Policy: when a site sets none, browsers now use
strict-origin-when-cross-origin, which sends other sites only the domain (MDN, updated 4 Sep 2026). A missing one matters less than it did. - Permissions-Policy isn’t supported in every major browser yet (MDN, updated 23 Oct 2026). OWASP’s example turns off what a site doesn’t use:
geolocation=(), camera=(), microphone=().
The recommended values above are from the OWASP HTTP Headers Cheat Sheet. One header we don’t count is X-XSS-Protection; the last question below says why.
How many popular sites send them
| Headers sent, of six | Sites | Share |
|---|---|---|
| None | 1,276 | 28.6% |
| 1 | 684 | 15.3% |
| 2 | 581 | 13.0% |
| 3 | 693 | 15.5% |
| 4 | 612 | 13.7% |
| 5 | 410 | 9.2% |
| All six | 212 | 4.7% |
The bigger the site, the more it sends. In the top 1,000 (495 sites read), the typical site sends three: HSTS is on 65.3%, a CSP on 44.2%. Across the rest, those are 51.2% and 29.0%. Online shops send the most: of the 312 we read, 77.6% send HSTS and 52.9% a CSP, against 50.2% and 32.6% of blogs and news sites. Sites that send all six include gov.uk, theguardian.com, duckduckgo.com, nintendo.com and dell.com.
HTTPS itself is nearly universal: 96.1% of the 5,913 popular sites in our results load over HTTPS with a valid certificate. The header that tells browsers to insist on it is on barely half. Across the wider web the gap is larger: the HTTP Archive’s 2024 Web Almanac, which reads millions of sites, found a CSP on 19% of hosts.
How to check any site’s security headers
- On CheckAnySite. Enter a domain in the Website Trust Checker. “Protective settings” says how many of the six the home page sent, such as “4 of 6 in place”, and “Show evidence” quotes up to three of the header lines.
- From a terminal.
curl -sI https://www.gov.ukprints the response headers; look for the six names above. Add-Lto follow redirects to the page visitors end up on. - In your browser. Open the developer tools (F12), choose the Network tab, reload, click the first request and read “Response headers”.
- For a list. Bulk check adds a “Security headers” column to its CSV, for up to 500 domains at once.
Headers are set per response, so check the page that matters to you: a home page can send all six while a sign-in page on another address sends none.
What a missing header means, and what it doesn’t
A missing header means one thing: that page didn’t ask the browser for that protection. It doesn’t mean the site is unsafe, hacked or dishonest:
- Browsers have defaults. Without a Referrer-Policy, a modern browser already sends other sites only the domain.
- Protection can come from elsewhere. A site can be on the browsers’ HSTS preload list, or set its CSP in the page itself rather than in a header; our check reads headers only.
- Some sites have little to protect. A page without sign-ins, forms or user uploads gains less from a CSP or framing rule than a bank does.
And a header that is there isn’t proof of much either. We count whether each one is sent, not how strict it is: a CSP that allows inline scripts counts the same as a tight one, and an HSTS lifetime of five minutes counts like one of two years. For grades on the values themselves, specialist graders exist; read their reasons, not just the letter.
Security headers are a sign of care in a site’s setup. They say nothing about who runs it or whether its offer is honest. In our open site score, HSTS and a CSP or framing header are worth 2 points each, of 100; domain age, popularity and contact details weigh far more. For the checks that matter before you buy, see is this website legit?
Questions people ask
Which security header matters most?
For most sites, HSTS: it is one line, and once a browser has seen it, every later visit uses HTTPS. A CSP does the most against injected scripts, but it takes testing, which is why fewer sites send one.
Does a missing security header mean a site is unsafe?
No. It means the browser got one less instruction from that page. Many careful sites miss some, and a site that sends all six can still have other problems. Read headers as one signal among many.
Can security headers be set in HTML?
Some can. A CSP and a referrer policy can be set in a <meta> tag in the page. HSTS, X-Frame-Options and the frame-ancestors rule work only as real headers (MDN).
Is X-XSS-Protection still needed?
No. It is deprecated and was never a standard (MDN, updated 21 Aug 2026). OWASP advises not to send it, or to send 0, because it can open holes in sites that were safe without it. A CSP is what replaced it.
How we counted
- Sites: every site in our results ranked by Tranco, the Chrome UX Report or the Majestic Million, nearly all in the top 10,000 of at least one: 5,913 sites, their newest full result read between 10 October and 21 November 2026, counted on 21 November 2026.
- Read: 4,468 home pages. We couldn’t read the other 1,445: bot protection answered instead of 957, 487 asked bots not to read them, and one asked visitors to sign in. Their headers are left out.
- What counts: the headers of the home page’s final answer, after redirects. Framing counts from X-Frame-Options or a CSP with
frame-ancestors; X-Content-Type-Options only withnosniff; a report-only CSP doesn’t count. “Top 1,000” means a rank of 1,000 or better on any of the three lists.