❤️
SecurityHeaders.nl

Scoring Methodology

At SecurityHeaders.nl, our goal is to help developers and system administrators secure their web applications by adopting modern HTTP security headers. This page explains exactly how our scanner evaluates your website and calculates your final grade.

How the Score is Calculated

Our scanner analyzes the HTTP response headers of the provided URL. We assign points based on the presence and correct configuration of critical security headers. The final percentage score determines your grade, ranging from A++ (Excellent) to F (Critical).

Why A++ exists

Unlike traditional scanners that max out at A+, we evaluate security on a clean, honest 0% to 100% (1000 pt) scale. Passing the strict Core baseline earns 85% (Grade A), and full Cross-Origin Isolation plus Permissions-Policy brings your score to 100% (A++). Websites that achieve a full 100% can additionally earn up to +5% extra bonus (101%–105%, +1% per header) for extra defensive and browser hardening headers.

What We Check

Content-Security-Policy (CSP)

What we check: The presence and strictness of the CSP header.

Good values: Policies that restrict script-src, default-src, and frame-ancestors and avoid naked 'unsafe-inline', 'unsafe-eval', or wildcards (*) — or properly use nonces, hashes, or 'strict-dynamic'.

Why: CSP is the strongest defense against Cross-Site Scripting (XSS) and data injection attacks.

HTTP Strict Transport Security (HSTS)

What we check: Presence of Strict-Transport-Security, the max-age value, and inclusion of subdomains and preload directives.

Good values: max-age=31536000; includeSubDomains; preload

Why: HSTS forces browsers to connect via HTTPS, preventing man-in-the-middle attacks and SSL stripping.

X-Frame-Options

What we check: Presence of clickjacking protection via X-Frame-Options or CSP frame-ancestors.

Good values: DENY or SAMEORIGIN — or safely superseded by CSP's frame-ancestors directive (without wildcard *).

Why: Prevents clickjacking attacks by blocking malicious sites from framing your pages.

X-Content-Type-Options

What we check: Presence of the header.

Good values: nosniff

Why: Prevents MIME-sniffing vulnerabilities, ensuring the browser respects the declared content type.

Referrer-Policy

What we check: Configuration of the referrer policy.

Good values: strict-origin-when-cross-origin, no-referrer, or same-origin

Why: Controls how much referrer information is passed to external sites, protecting user privacy and sensitive URL parameters.

Permissions-Policy

What we check: Restrictions on 10 browser hardware & sensor APIs (5 points each, up to 50 points toward 100%).

Good values: Restricting APIs like geolocation=(), microphone=(), and camera=().

Why: Limits the attack surface by disabling browser APIs that your application doesn't need.

Cache-Control

What we check: Presence of the Cache-Control header.

Good values: no-store, max-age=0 (depending on the context).

Why: Prevents sensitive data from being cached locally on shared computers or by proxies.

Extra Hardening Bonus (101%–105%) & Headers Enabled Counter

Once your site achieves a full 100% (Core baseline 85% + Permissions-Policy 5% + strictly validated Cross-Origin Isolation 10%), five genuine, high-impact hardening controls award +1% each (reaching 101%–105% max):

Modern, experimental, or contextual headers — such as Document-Policy, Speculation-Rules, Supports-Loading-Mode, Clear-Site-Data, X-Permitted-Cross-Domain-Policies, and CSP upgrade-insecure-requests — as well as framework disclosures (X-Powered-By, X-AspNet-Version) carry 0 score points. Instead, active security and modern headers are tracked separately in the Headers Enabled counter (Core & Isolation + Extra & Modern) without inflating your security percentage.

Baseline Validation & Bonus Locking

Isolation and Extra Hardening bonus points remain locked below 85% (and the +1%–5% extra bonus requires the full 100%) if core protections are missing or misconfigured:

References and Sources

Our scoring model is built on best practices recommended by industry leaders: