STATUS IS UPWEBSITE READINESS

Readiness check · Harden lane · weight 3

X-Content-Type-Options: nosniff

The homepage response includes X-Content-Type-Options: nosniff.

Observed on
48%

of 28,784 measured sites

Top 1K sites
52%

286 measured

Top 1M band
46%

4,672 measured

Not measured
11,311

blocked, challenged or not applicable

Why it matters

It stops browsers from guessing a file's type, which blocks a class of attacks where an uploaded file is run as a script.

How to fix it

Send X-Content-Type-Options: nosniff on all responses and make sure each file is served with the correct Content-Type.

How we check

The homepage response includes X-Content-Type-Options: nosniff.

Observed: nosniff header present.

Not observed: nosniff header not sent.

Limit: Read from the homepage response only; other pages or regions may send different headers.

Stack-specific steps

  • Cloudflare: Add the header with a response header transform rule.
  • Amazon CloudFront: Enable it in a response headers policy (security headers section).
  • Next.js: Add it in next.config.js headers().
  • Vercel: Add it in vercel.json headers.
  • Drupal: The Security Kit module can set common security headers.

By popularity band

Chrome UX Report bandObservedMeasured
Top 1K52%286
Top 5K46%1,308
Top 10K46%1,648
Top 50K48%12,853
Top 100K50%3,896
Top 500K49%4,121
Top 1M46%4,672

Categories most likely to do this

Categories least likely

By stack

By provider

Popular sites where we observed this

Sources and guides