Glossary

What is HTTP security headers?

Also called: Browser safety headers, Browser protections

Every page comes with a short list of response headers. A few of them are safety instructions, such as a content policy, protection against framing and a ban on guessing file types. Your host or CDN usually adds them in one place.

Why it matters

They limit what other sites can do with your pages and what injected code can do. They mainly protect visitors and build trust; we make no claim that search engines or AI systems rank sites on them.

How Onbiom checks it

Onbiom's rule: the check named "Your pages ask browsers for extra protection" looks at the homepage response for three things. It needs a Content-Security-Policy header, framing protection (an X-Frame-Options header or a frame-ancestors rule inside the content policy) and X-Content-Type-Options set to nosniff. Any missing one fails the check.

A Referrer-Policy header is only a tip when it is missing and does not change the result. We check that each header exists and do not assess how strong it is. In older scans the same three headers plus HSTS formed one combined check; HSTS now has its own check. This is a safety advisory about your visitors, reported apart from search visibility.

In your report this appears as: Browser safety headers; Browser protections on your pages; Cookies sent only over the secure connection (Secure, HttpOnly); Software versions kept private.

How to check it yourself

  1. Run the command below against your own address.
  2. Compare the result with the three headers Onbiom looks for.
curl -sI https://example.com | grep -i -E 'strict-transport-security|content-security-policy|x-frame-options|x-content-type-options|referrer-policy'

Not sure about your own site? Paste your address and see in a minute which of these checks your site passes. Free, no account needed.

Check your site

How to fix it

Any website
Ask your host or CDN to switch on a content policy, framing protection and the nosniff setting.
Cloudflare
Cloudflare: open Rules, then Overview, create a Response Header Transform Rule and add the header as a static header.
nginx
nginx: add the line to your server block with add_header, then reload nginx.
Apache
Apache: add the line with the Header directive in your site configuration or .htaccess file (needs mod_headers), then reload.

Related terms

Sources and further reading

Last reviewed: