Technical pillar / check security-headers
Browser security headers: does your homepage tell browsers how to protect visitors?
We read your homepage response for three browser security headers: a Content-Security-Policy, X-Content-Type-Options: nosniff and a rule against other sites framing your pages. Google does not list them as ranking signals, so this is a note that never costs score points.
By Shimon Alex Carroll, Founder and CEO, Own The Climb · Last updated
This is how we check it
We read your homepage response for three headers that tell browsers how to protect your visitors.
- We look for a Content-Security-Policy, which limits where scripts may load from.
- We look for X-Content-Type-Options: nosniff, which stops a file being run as a script.
- We look for a framing rule (X-Frame-Options or frame-ancestors), which stops other sites showing your pages inside theirs.
- Google does not list them as ranking signals, so a missing header is a note that never costs score points.
Our reasoning behind this
These headers protect your visitors from injected scripts and click tricks. Security reviews and enterprise IT teams ask for them.
How we would fix it on your site
- Add the headers at your CDN or server so every page gets them.
- Try the policy as Content-Security-Policy-Report-Only first, then enforce it.
- Add X-Content-Type-Options: nosniff and frame-ancestors 'self'.
Once your change is live, run the audit again and review the new findings alongside the pages it covered.
How to make the change on your platform
| Platform | What to do |
|---|---|
| Cloudflare | Add the headers with a Response Header Transform Rule, or in a Worker, so they apply to every page. |
| Vercel and Netlify | Set them in the headers section of vercel.json or netlify.toml (or the _headers file on Netlify). |
| WordPress | Set them in your host or CDN where you can. A security plugin can add them too; test the policy with Report-Only first, since plugins and embeds load scripts from many places. |
| Shopify, Squarespace and Wix | The platform controls most response headers. Check what it already sends before adding anything. |
What we want you to review
- Sending Content-Security-Policy-Report-Only and assuming it protects visitors. It only reports.
- Using X-Frame-Options: ALLOW-FROM, which current browsers ignore. Use frame-ancestors instead.
- Putting frame-ancestors in a <meta> policy, where browsers ignore it.
- Placing a Content-Security-Policy <meta> tag in the page body, or after an element that ends the <head> early, where browsers ignore the whole policy.
- Enforcing a strict policy without testing, which can block your own analytics, chat or payment scripts.
The exact rules our audit applies
We wrote this part for your developer or your SEO specialist. It sets out the inputs, scoring rules and confidence limits we publish for this check, together with the full explanation of how we would fix a finding.
The inputs we describe for this check
The headers of the homepage response our crawler received (the address it landed on after redirects). Content-Security-Policy counts when it is sent as a header, or set in a <meta http-equiv> tag in the page's <head>, which browsers also apply (they ignore one outside the <head>), and has a script-src, script-src-elem or default-src directive; a policy without one (for example frame-ancestors only) limits framing and leaves scripts unrestricted.
Content-Security-Policy-Report-Only alone does not count, because it reports problems and blocks nothing. X-Content-Type-Options counts when its value is nosniff. The framing rule counts when X-Frame-Options is DENY or SAMEORIGIN, or when a Content-Security-Policy header has a frame-ancestors directive; X-Frame-Options ALLOW-FROM does not count, because current browsers ignore it, and a <meta> policy cannot set frame-ancestors.
Strict-Transport-Security is covered by the HTTPS check. Referrer-Policy is not checked: since 2020 browsers default to strict-origin-when-cross-origin, so a missing header leaks nothing.
Our full reasoning
These headers protect the people who visit your site. A Content-Security-Policy limits where scripts may load from, which stops most injected scripts from running. nosniff stops a browser from running a file as a script when your server says it is something else. A framing rule stops another site from showing your pages inside its own to trick visitors into clicking.
Google does not list them as ranking signals, and we do not score them. Security reviews, enterprise IT teams and vendor questionnaires ask for them, and the OWASP Secure Headers Project lists them as standard practice.
How we score what we find
Measured once per audit, on the homepage. A missing protection is an INFO note: it is shown with the fix and never costs score points, because Google does not list any of them as a ranking signal. All three present is a pass.
When a firewall answered in place of your site, or we read the page through a service that drops headers, the check is not measured, with that reason. When your page is too large or too deeply nested for us to read its markup safely and no header policy limits scripts, we do not grade the policy, and still report the other two.
How sure we are of each result
HIGH: the evidence is the exact header values the response carried (Content-Security-Policy source, X-Content-Type-Options and X-Frame-Options values). Headers can differ between pages; we read the homepage only.
How to fix it, in full
Add the headers at your CDN or server so every page gets them. Start the policy as Content-Security-Policy-Report-Only, watch what it would block, then switch it to Content-Security-Policy. Add X-Content-Type-Options: nosniff.
Add Content-Security-Policy: frame-ancestors 'self' (listing any sites allowed to embed your pages), or X-Frame-Options: SAMEORIGIN. Then run the audit again.
The sources we rely on
- MDN Web Docs, Content-Security-Policy (accessed 2026-11-26)
MDN Web Docs
- MDN Web Docs, CSP: frame-ancestors (accessed 2026-11-26)
MDN Web Docs
- MDN Web Docs, X-Frame-Options (accessed 2026-11-26)
MDN Web Docs
- MDN Web Docs, X-Content-Type-Options (accessed 2026-11-26)
MDN Web Docs
- MDN Web Docs, Referrer-Policy (accessed 2026-11-26)
MDN Web Docs
- OWASP Secure Headers Project (accessed 2026-11-26)
OWASP
What we have changed on this page
- · First published. We read the homepage response the audit already loaded; the check makes no extra request to your site.