Skip to main content
KalkuNet

Security Headers Analyzer — A+ to F Grade for CSP, HSTS and More

Paste raw HTTP response headers to grade security posture from A+ to F.

OnlineWeb · Security & Privacy

Headers are fetched through KalkuNet's fetch API when you enter a URL.

B

5 of 6 key headers are set correctly. A+ needs all six with no notes.

  • ! Needs workContent-Security-Policy
    default-src 'self'; script-src 'self' 'unsafe-inline' https://cdn.example.com; object-src 'none'

    · script-src allows 'unsafe-inline' without a nonce/hash, so injected XSS scripts still run.

    · 3 warnings — review them in the CSP Header Generator.

  • ! Needs workStrict-Transport-Security (HSTS)
    max-age=15552000

    · max-age 15552000 seconds (< 1 year) — raise it to 31536000.

    · Without includeSubDomains, subdomains can still be opened over HTTP.

  • ✓ GoodClickjacking protection
    SAMEORIGIN
  • ✓ GoodX-Content-Type-Options
    nosniff
  • ! Needs workReferrer-Policy
    no-referrer-when-downgrade

    · no-referrer-when-downgrade sends the full URL (path and query included) to other sites — use strict-origin-when-cross-origin.

  • — MissingPermissions-Policy
  • X-XSS-Protection: 1; mode=block — this legacy filter is gone from modern browsers and can introduce holes; send "0" or remove it.
  • x-powered-by: PHP/8.1.2 — reveals the software version; hide it (e.g. server_tokens off).
Suggested configuration for what is not right yet

The CSP value above is only a safe starting point; build one that fits your site with the CSP Header Generator.

When to use the HTTP Security Headers Grader (A+ to F)

  • Validated, not just present

    The six key headers are checked against their specs: HSTS max-age, CSP syntax, X-Frame-Options values, nosniff, a valid Referrer-Policy and the Permissions-Policy format.

  • A grade you can explain

    A+ means all six are right with no notes, A means all six are set, and B to F follow how many are correct. Every deduction comes with a reason you can act on.

  • Ready-to-paste config

    For headers that are not right yet, it writes Nginx, Apache or _headers (Cloudflare Pages/Netlify) lines with safe values as a starting point.

  • Findings beyond the grade

    Software versions exposed in Server or X-Powered-By, the legacy X-XSS-Protection, overly open CORS and cookies without Secure are reported separately.

Frequently asked questions

Is X-Frame-Options still needed when CSP has frame-ancestors?

Modern browsers use frame-ancestors and ignore X-Frame-Options when both are present. Sending both is still safe and covers old browsers.

Why switch X-XSS-Protection off?

The built-in XSS filter is gone from Chrome and Edge, and in old browsers it could be abused. Send 0 or remove the header, and rely on CSP.

Does an A+ mean my site is secure?

Not entirely. Headers are one browser-side layer of defence; flaws in application code, the server or passwords still need separate testing.

How is the A+ to F grade calculated?

Each key header that is present and valid scores one point out of six. Six points with no notes is A+, six with notes is A, five is B, four C, three D, two E, and one or none F. A header that is sent but wrong scores nothing.

Learn more