A basic security header is set
This small header stops a browser from guessing a file's type, which closes off one old way of running a harmful file.
What it means
When a server sends a file, it says what kind it is: an image, a script, a stylesheet. Browsers sometimes second-guess that label and "sniff" the content. An attacker could use this to get a harmless-looking upload treated as a script.
The header "X-Content-Type-Options: nosniff" tells the browser to believe the label and nothing else. It is one line, it has no downside on a correctly set up site, and it is worth one point.
What causes it
- It is not sent by default at most hosts.
How to fix it
- Add the header "X-Content-Type-Options: nosniff" at the host or CDN.
X-Content-Type-Options: nosniff
On your platform
- Apache
- In .htaccess: Header set X-Content-Type-Options "nosniff"
- Cloudflare
- Rules, Overview, Create rule, "Response Header Transform Rule". Or switch on the Managed Transform "Add security headers", which includes it.
- Netlify, Vercel
- Add it in the headers file or the project config. Cloudflare Pages already sends it for static files.
Check it yourself
In the developer tools, look for "x-content-type-options" among the response headers.
Or run a free audit: it checks this and 53 other things on your page in about a minute, and shows the proof for each one.
How we test it
- What we look at
- The X-Content-Type-Options header.
- It passes when
- It is set to nosniff.
- What it is worth
- 1 of 148 points in rule book 0.5, in Trust and privacy. A rule that cannot be checked on a page counts neither for nor against it.
Questions
Is this the only security header that matters?
No. It is the simplest one, and a sign that someone looked at the headers at all. Others, such as a content security policy, do more and take more care to set.
Can it break anything?
Only files served with the wrong type label, for example a script sent as plain text. That is worth fixing anyway.
Sources
Where to read more, and where to check what this page says. Opened and read on 20 and 24 November 2026.
Also useful: what a good website score is, how we compare with PageSpeed Insights and the full rule book.
Does your website have this problem?
A free audit checks this and 53 other things, and shows the proof. About a minute, no email needed.