HTTP Security Headers Grader

Enter a URL to grade nine HTTP security headers, with a score from 0 to 100 and a letter grade from A+ to F.

Scores nine HTTP response headers — HSTS, CSP, X-Content-Type-Options, X-Frame-Options, Referrer-Policy, Permissions-Policy, COOP, CORP and X-Powered-By / ASP.NET version headers. Letter grade A+ to F.

What it checks

  • Strict-Transport-Security: present, max-age of at least six months, and includeSubDomains
  • Content-Security-Policy: missing fails; no script directive, or unsafe-inline / unsafe-eval applying to scripts, warns
  • X-Content-Type-Options set to nosniff, and frame protection through CSP frame-ancestors, otherwise X-Frame-Options DENY or SAMEORIGIN
  • Referrer-Policy, Permissions-Policy and Cross-Origin-Resource-Policy: checked for presence
  • Cross-Origin-Opener-Policy set to same-origin, and X-Powered-By and ASP.NET version headers checked

How to read the result

  • Each check is pass, warn or fail. A warn earns half of the check's weight, so a missing HSTS or CSP costs more than a missing Referrer-Policy.
  • Letter grades: A+ from 95, A from 85, B from 70, C from 55 and D from 40. Anything lower is F.
  • A high grade shows that these headers are set. It does not mean the application is free of vulnerabilities.

What it does not tell you

The grade covers nine headers from one GET request, following redirects. It does not check CORS, cookies or the rest of your CSP, and it does not test the application. The Server header is not graded, because this tool's requests leave through Cloudflare, which replaces it. This is not a penetration test.

Data sources

Response headers from one live HTTPS GET request made by the tool; the host is checked for public addresses before the request and any redirect target is checked after it.

No login · 30 calls / hour / IP · Data stored in the EU

FAQ

Why did my grade drop after adding a CSP?

The check reads the enforced policy only. Inline scripts are judged on script-src-elem and script-src-attr, which fall back to script-src and then default-src; eval is judged on script-src, then default-src. A policy scores as warn, which earns half the points, if it has none of these directives or if the list allows unsafe-inline (unless a nonce, hash or strict-dynamic is also present) or unsafe-eval. unsafe-inline in style-src does not count. Host allow-lists and wildcards are not evaluated, and a Report-Only policy is ignored.

Does this tool check cookies or CORS?

No. The separate cookie checker covers cookie flags. CORS headers are not checked by any tool on this page.

Go deeper: Web Pentest engine (OWASP Top 10 and configuration checks)

Guide: Security Headers: From Grade F to A Without Outages

Related tools

More free tools

DNS Lookup Query standard DNS records (A, AAAA, MX, CNAME, TXT, NS, CAA, SOA) for a hostname via a public resolver. Reverse DNS Find the associated hostname (PTR record) for a public IPv4 address. IPv6 is not supported. Blacklist Check if your public IP address or mail server is blacklisted on major spam reputation blocklists. Propagation Compare one DNS record across five public resolvers in a single point-in-time snapshot. Security Headers Grade nine HTTP security headers of a website, A+ to F — HSTS, CSP, X-Frame-Options and more. TLS Inspector Recent unexpired certificates from public Certificate Transparency logs: issuer, expiry and SANs. Not a live TLS handshake. Tech Stack Detect the CDNs, frameworks, CMS, and analytics scripts visible on any public website. Email Auth Check the SPF, DMARC, DKIM, MTA-STS and MX records a domain publishes, with warnings for weak policies. DNSSEC Look up DS and DNSKEY records and the resolver authenticated-data (AD) flag for a domain. WHOIS / RDAP Query registrar, status codes and creation/expiry dates via RDAP, for supported TLDs. Cookie Audit Check Set-Cookie headers from one request for missing Secure, HttpOnly and SameSite attributes. HSTS Preload Check a domain on the HSTS preload list via the hstspreload.org status API. Threat Intel Aggregate Shodan, URLhaus, ThreatFox and IP reputation to check if a domain, IP, or email is flagged. CryptoCheck Grade HSTS, preload status and cookie flags, with an SVG badge. TLS version, ciphers and post-quantum signals show as Not assessed. Auth-Surface Passively map a login page's SSO providers, OIDC discovery, MFA signals, auth-form CSRF/CAPTCHA, cookie flags and security headers.

Run a real penetration test on the same target.

The free toolkit answers "what's exposed?" — but what about "what is exploitable?". AssurePort's AI pentest pipeline produces proof-of-concept evidence and remediation code in your stack's language. From $399 for a Starter scan, no card required to sign in.

Sign in & try a scan →

⚡ Automate these checks in your CI

Run these same passive checks on every pull request with the free AssurePort Security Check GitHub Action — then escalate to a full AI pentest when you need proof.

- uses: assureport/assureport-security-check@v1


Read the guide →

Download AssurePort Browser Extension

Audit security headers, cookie flags, and TLS hygiene instantly on any active browser tab. Includes direct integrations and one-click target verify.

Download Extension (ZIP)
Download PDF Report
Generate a branded security posture snapshot (PDF) for your target — a summary of the passive checks above, not a compliance attestation. Register a free account to download and share the results.