Tools / Security Headers Checker

Security Headers Checker.

Grade a site's HSTS, CSP, X-Frame-Options, Referrer-Policy and other security headers.

Uses server

Ctrl/⌘ + Enter to run · Ctrl/⌘ + Shift + C to copy the result

Result
Grade
Headers

About Security Headers Checker

Security Headers Checker fetches a page and grades the response headers that tell browsers how to protect your visitors. Six headers are graded: Strict-Transport-Security (forces HTTPS, and should have a max-age of at least 180 days), Content-Security-Policy (limits where scripts, styles and frames may come from), X-Content-Type-Options set to nosniff, framing protection through X-Frame-Options or CSP frame-ancestors, Referrer-Policy, and Permissions-Policy. All six earn an A, and A+ when none of them has a weakness such as 'unsafe-inline' scripts in the CSP. Cross-origin isolation headers (COOP, CORP, COEP) are listed for information, and Server or X-Powered-By values that reveal software versions are flagged. For example, a typical new site gets a C: HTTPS and nosniff are in place, but there is no CSP and no Permissions-Policy. The headers of the final response after redirects are graded, so http://example.com is judged by the HTTPS page it redirects to. Common mistakes are sending HSTS on the HTTP response only (browsers ignore it there), shipping a CSP in report-only mode and forgetting to enforce it, allowing 'unsafe-inline' which cancels most of the CSP's value, and setting headers in the application but not on static files served by the web server or CDN.

How to Use

  1. Enter the URL of the page you want to check.
  2. Run the scan; redirects are followed and the final response is graded.
  3. Fix the failed rows first, then the warnings, and scan again.

Frequently Asked Questions

How is the grade calculated?

Six headers are graded. All six passing gives an A, or A+ when nothing is flagged as a warning; each missing or weak header lowers the grade by one step down to F.

Do I need X-Frame-Options if I have a CSP?

Not if the CSP contains frame-ancestors, which replaces it in modern browsers. The checker accepts either.

Why is X-XSS-Protection flagged?

Browsers removed the XSS auditor it controlled, and the auditor itself could leak information. Send "0" or omit the header and rely on CSP.

Which page is graded when the URL redirects?

The final page after up to ten redirects. Headers on intermediate redirect responses are not graded.

Related Tools