Scan any URL for CSP, HSTS, X-Frame-Options, Referrer-Policy and 9 more security headers. Get a weighted score, letter grade and specific fixes. Free tool.
By Inventive HQ
Enter a URL and this analyzer fetches the response headers, checks thirteen security-relevant headers, and returns a weighted score from 0 to 100 with a letter grade from A+ down to F. Every header gets a pass, warn, or fail status, the value that was actually returned, a severity rating, and a specific recommendation — not just “this header is missing” but what to set it to and why. You can also paste raw headers instead of supplying a URL, which is how you check a staging environment, an internal host, or a response captured from your browser’s network tab.
This is the check to run before a launch, after a CDN or reverse-proxy change, and whenever a client or auditor asks why a scanner gave your site a low security-header grade. It is deliberately fast and narrow: one HTTP request, one clear scorecard, exportable as CSV, with the raw headers copyable in one click.
Thirteen headers are analysed, weighted by how much real protection they provide:
'unsafe-inline' or 'unsafe-eval', or uses nonces or hashes. A policy relying on nonces or hashes scores far higher than one that permits inline script.max-age value is parsed and compared against one year (31536000 seconds), with additional credit for includeSubDomains and preload.DENY or SAMEORIGIN.nosniff.Referer header.Alongside the grade you get the HTTP status code, response time, protocol, a list of missing headers, and a note if the response looks like it came through Cloudflare — useful context, because a proxy in front of your origin is often the thing adding or stripping headers.
www and apex, and between origin and CDN.curl -I and paste them one per line as Header-Name: value. Note that HTTPS is assumed in this mode, since there is no URL to inspect.CSP tells the browser which sources of script, style, images, frames, and connections are legitimate. Its value is that it turns a successful injection into a blocked request: an attacker who manages to write a <script src="//evil.example"> tag into your page achieves nothing if script-src does not list that host.
The difficulty is that most real policies contain 'unsafe-inline', which is exactly the thing CSP exists to prevent, and is usually added because a site has inline event handlers or inline <script> blocks it cannot easily remove. The analyzer scores this honestly: a policy with both 'unsafe-inline' and 'unsafe-eval' is marked as a high-severity finding even though the header is technically present. A policy using per-request nonces (script-src 'nonce-{random}') or content hashes ('sha256-…') scores near the top, because those permit exactly your scripts and nothing else.
A sensible progression: start with Content-Security-Policy-Report-Only plus a reporting endpoint, watch what would break for a week, then move to enforcement with default-src 'self', an explicit allowlist per directive, and frame-ancestors. Add object-src 'none' and base-uri 'self' — both are cheap and close off real bypasses. If you are building a policy from scratch, the CSP Policy Generator assembles the directive string for you.
Strict-Transport-Security tells the browser to refuse plaintext HTTP to your domain for the duration of max-age, which defeats downgrade and SSL-stripping attacks on every visit after the first. A typical strong value is max-age=31536000; includeSubDomains; preload.
The three parts do different jobs. max-age under a year is treated as a warning here because short windows leave a large re-exposure gap. includeSubDomains extends the rule to every subdomain, which is what stops an attacker using a forgotten HTTP-only subdomain to set cookies for the parent domain. preload signals your intent to be included in the browser preload list, so the very first request is protected too.
Treat includeSubDomains and preload with care. Both are hard to reverse — the preload list ships inside browsers, and removal takes months. Confirm that every subdomain, including internal tools and legacy hosts, has a valid certificate and serves HTTPS before you enable them. The SSL Checker is the natural companion check.
X-Frame-Options stops your pages being loaded inside someone else’s frame, which is the mechanism behind clickjacking. DENY blocks all framing; SAMEORIGIN allows only your own origin. It is an old header with a coarse model — it has no allowlist — and the modern replacement is the CSP directive frame-ancestors, which accepts a list of permitted origins and is what browsers prefer when both are present. Ship both: frame-ancestors for correctness, X-Frame-Options for older clients.
Referrer-Policy controls how much of the current URL is sent when a user navigates away or loads a third-party resource. The default in most browsers already trims the path for cross-origin requests, but if your URLs carry tokens, session identifiers, or internal record IDs, an explicit strict-origin-when-cross-origin or no-referrer prevents that data landing in someone else’s logs.
Permissions-Policy (formerly Feature-Policy) disables browser capabilities the page has no business using. A value such as camera=(), microphone=(), geolocation=(), payment=() costs nothing on a site that never uses them, and it applies to embedded third-party frames too — so a compromised ad or widget cannot prompt your users for their microphone.
The cross-origin trio — COOP, COEP, CORP — is a different category. They isolate your browsing context from other origins and are what gate access to high-precision timers and SharedArrayBuffer. Enabling COEP in particular can break third-party embeds, so it belongs on a considered roadmap rather than a quick-win list. Expect-CT and X-XSS-Protection are reported for completeness but are deprecated; X-XSS-Protection’s legacy auditor was removed from browsers and, in some configurations, introduced bugs of its own. X-XSS-Protection: 0 is a defensible modern setting.
This is worth stating plainly: a header scan is a starting point, not a security assessment. It inspects one HTTP response. It cannot see your authentication logic, your authorisation checks, your SQL queries, your dependency versions, your secrets handling, your access controls, or your backups. A site can score A+ here and still be trivially exploitable through an IDOR in its API, and a site with a mediocre grade may be perfectly well defended by other means.
Two specific limits. First, headers can vary by route: your marketing pages, your login page, and your API may all return different sets, and the analyzer checks the single URL you gave it. Second, an intermediary such as a CDN or WAF may add headers that your origin does not send, so the result describes what users receive, not what your application produces — which is exactly why the Cloudflare detection note is displayed. Treat a good grade as evidence of hygiene, and pair it with dependency scanning, authenticated testing, and a real review before calling anything secure.
Header hardening usually sits alongside transport and mail checks. Use the SSL Checker to confirm the certificate chain behind your HSTS policy, the Email Authentication Validator for SPF, DKIM, and DMARC, and the DNS Lookup Tool to confirm which host is actually answering for the name you tested.
Thirteen: Content-Security-Policy, Strict-Transport-Security, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, Cross-Origin-Opener-Policy, Cross-Origin-Embedder-Policy, Cross-Origin-Resource-Policy, Expect-CT, X-XSS-Protection, X-Permitted-Cross-Domain-Policies, and X-DNS-Prefetch-Control.
Each header receives a score, and the scores are combined using fixed weights — CSP is weighted most heavily, then HSTS, then X-Frame-Options, then the rest. The weighted result maps to a letter: 95 and above is A+, 85 is A, 75 is B, 65 is C, 50 is D, and anything below that is F.
Presence is not the whole scoring. A CSP containing 'unsafe-inline' and 'unsafe-eval', or an HSTS max-age shorter than one year, scores well below a correctly configured equivalent. The table shows the returned value next to each finding so you can see which directive cost you the points.
Yes — use the paste mode. Capture the response headers with curl -I https://internal.example or from your browser’s network tab, then paste them one per line in Header-Name: value format. In this mode HTTPS is assumed, because there is no URL for the tool to inspect.
Both. frame-ancestors is the modern directive, supports an origin allowlist, and takes precedence in browsers that support it. X-Frame-Options remains as a fallback and costs nothing to keep.
Only once every subdomain reliably serves valid HTTPS. Preload is baked into browser releases and removal takes months, so a subdomain without a working certificate becomes unreachable for anyone whose browser has the entry. Run with a long max-age and includeSubDomains for a while first.
No. It means your HTTP response headers are configured well. Application logic, authentication, authorisation, dependencies, and infrastructure are all outside what a single response can show. Use this as one input among several.
Something between your origin and the browser is almost certainly modifying them — a CDN, reverse proxy, WAF, or platform edge layer can add, override, or strip headers. The analyzer reports what a client actually receives, which is the thing that matters, and flags when the response appears to be Cloudflare-served.
They add a few hundred bytes per response and no measurable latency. There is no direct ranking effect, though HTTPS enforcement and avoiding mixed-content or clickjacking problems help indirectly by keeping pages loading correctly for users and crawlers.
The analysis is performed by fetching the URL you submit and grading the response. Nothing about your site is published or stored for later, and you can avoid submitting a URL at all by using the paste mode.