HeaderScout

Rules version 1

How grading works

HeaderScout reads the final HTTPS response of a site's homepage, after up to five redirects, and runs five checks worth 20 points each. The rules are the same for every site and are applied by code, never by hand. Each result stores the rules version it was graded with.

Grades

GradeScoreLabel
90–100Excellent
75–89Good
60–74Fair
40–59Needs improvement
20–39Poor
0–19Very poor

Scores move in steps of 10. These are HeaderScout's own criteria, not an industry certification.

When there's no grade

GradedThe final response is HTTPS, with a valid certificate and status 200.
Not graded: HTTPS requiredThe site can't be reached over HTTPS, its certificate isn't valid, or it redirects to plain HTTP.
Unable to scanDNS, timeout or connection failures; a firewall or bot check answering instead of the site (status 403, 429 or 503, a challenge header or page); or any other final status than 200. A failed scan never replaces the last conclusive result and is never shown as an F.

If we end up on a different host than the one you entered (other than its www or bare-domain twin), we grade it and say so at the top of the report.

1. HTTPS enforcement (Strict-Transport-Security)

20max-age of at least 15,552,000 seconds (180 days).
10A shorter, positive max-age.
0Missing, invalid (no or non-numeric max-age, a repeated directive), or max-age=0.

Only the first header on the final HTTPS response counts. includeSubDomains and preload are noted but not required. HSTS headers on redirects are shown for information.

Guide: HTTPS enforcement, with examples and server config

2. Content Security Policy

20An enforced policy that restricts scripts and meets all of (a)–(e) below.
10An enforced policy that restricts scripts but misses at least one of them.
0No enforced policy, or none that restricts scripts (for example only upgrade-insecure-requests).
Unable to evaluateA policy we can't read reliably, unless another readable policy already earns 20. Counts as 0 points.
  1. Script sources avoid *, http:, https: and data:.
  2. No 'unsafe-inline' for scripts, unless a nonce or hash is used.
  3. No 'unsafe-eval'.
  4. object-src 'none' (directly, or through default-src 'none').
  5. base-uri is set.

Scripts are restricted by script-src, or by default-src when there's no script-src. Policies from headers and from a <meta> tag in the page head count; Content-Security-Policy-Report-Only never does. When several policies apply, the strongest is scored. With 'strict-dynamic' plus a nonce or hash, browsers ignore host and scheme sources, so those don't fail (a). A nonce or hash also makes browsers ignore 'unsafe-inline'. We can't read a policy reliably when it contains characters outside plain ASCII, a directive name with invalid characters, a quoted keyword with a missing quote, an unknown quoted keyword, or an empty nonce or hash in a directive we score.

Guide: Content Security Policy, with examples and server config

3. Content-type sniffing (X-Content-Type-Options)

20The effective value is nosniff (trimmed, any letter case).
0Missing or any other value.

Guide: Content-type sniffing, with examples and server config

4. Referrer policy (Referrer-Policy)

20no-referrer, same-origin, strict-origin, origin or strict-origin-when-cross-origin.
10No header, or no value browsers recognize. Current browsers then use a protective default, but an explicit policy keeps it that way.
0An explicit weak policy: unsafe-url, no-referrer-when-downgrade or origin-when-cross-origin.

When the header lists several values, the last one browsers recognize applies.

Guide: Referrer policy, with examples and server config

5. Framing protection

20frame-ancestors with 'none', 'self' and/or explicit hosts, or (without frame-ancestors) X-Frame-Options: DENY or SAMEORIGIN.
10frame-ancestors with a wildcard host such as https://*.example.com.
0frame-ancestors with * or a scheme-only source like https:; X-Frame-Options with ALLOW-FROM, conflicting or invalid values; or nothing at all.

An enforced frame-ancestors in a Content-Security-Policy header takes precedence, because browsers then ignore X-Frame-Options. frame-ancestors in a <meta> tag or a report-only policy never counts.

Guide: Framing protection, with examples and server config

What a grade isn't

A HeaderScout grade describes five response headers on one page, at the moment we read them. It is not a security audit, a certification or a guarantee. A site with an A can still have serious problems elsewhere.

Changes to the rules

Version 1November 2026. First published rules.