Glossary

What is X-Content-Type-Options?

Also called: nosniff

Each file your site sends says what type it is, such as a script or an image. Without this header some browsers guess the type from the content, and a harmful file can be treated as a script. The only valid value is nosniff.

Why it matters

It protects visitors by closing off one way harmful files can be run. It builds trust, and we make no claim that it changes search or AI answers.

How Onbiom checks it

Onbiom's rule: inside the combined browser protection check, the homepage response must send X-Content-Type-Options with the value nosniff. Any other value, or no header, fails the check.

X-Content-Type-Options has no row of its own. This is a safety advisory about your visitors, reported apart from search visibility.

In your report this appears as: Browsers keep to the declared file type (nosniff).

How to check it yourself

  1. Run the command below against your own address.
  2. Check that the line reads x-content-type-options: nosniff.
curl -sI https://example.com | grep -i x-content-type-options

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 send X-Content-Type-Options: nosniff.
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: