Skip to content

Security headers checker

Enter a URL and we fetch it once and grade its HTTP security headers: CSP, HSTS, X-Frame-Options and frame-ancestors, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, COOP/CORP and cookie flags. Every problem comes with a plain-English fix and copy-ready config for Next.js, Vercel and Nginx.

Free, no signupRuns on our server · nothing stored
Try:

How it works

We make one GET request to the URL (following up to 3 redirects, every hop checked) and grade the final response’s headers. We also check whether plain http:// redirects to HTTPS. The body is discarded unread.

What we check

  • CSP: present and enforcing, no 'unsafe-inline' without nonces or hashes, no wildcard script sources, object-src and base-uri set.
  • HSTS: max-age of at least six months, plus includeSubDomains.
  • Framing: frame-ancestors or X-Frame-Options: DENY/SAMEORIGIN.
  • Others: nosniff, a Referrer-Policy that doesn’t leak full URLs, Permissions-Policy, COOP and CORP, and version disclosure in Server or X-Powered-By.
  • Cookies: Secure, HttpOnly and SameSite on each Set-Cookie.

Responsible use. Only check sites and domains you own or have permission to test. The checker makes the same ordinary requests a browser would, identifies itself as KeysquidScanner, never logs in, never guesses hidden paths, and is rate limited. We log only the domain and result counts, never what we find.

FAQ

Which security headers matter most?

Content-Security-Policy and Strict-Transport-Security. A strict CSP stops injected scripts from running (and from reading tokens in the page), and HSTS stops visitors being downgraded to plain HTTP. X-Frame-Options or frame-ancestors, X-Content-Type-Options and Referrer-Policy come next.

Will adding a CSP break my site?

It can, if the policy blocks scripts you rely on. Ship it first as Content-Security-Policy-Report-Only, watch the browser console or reports, then switch to the enforcing header. In Next.js, a nonce-based CSP set in middleware works with the app router.

Why are cookies graded?

Session cookies without Secure can be sent over plain HTTP, without HttpOnly they can be read by any script on the page, and without SameSite they are sent on cross-site requests. We show cookie names only, never their values.

How is the grade calculated?

Each header has a weight (CSP 25, HSTS 20, framing 15, nosniff 10, Referrer-Policy 10, and smaller weights for the rest). Passing earns the full weight and a warning earns half. A+ needs 95 or more with no failures.

Security Headers Checker: CSP, HSTS & More · Keysquid