Skip to content

HTTP headers checker. Paste, audit, fix.

Paste HTTP response headers from curl -I https://example.com or browser DevTools (Network tab, response headers). The tool classifies every header, audits caching + security + compression + server-fingerprint groups, and surfaces what's missing. Browser-only.

How do I get my response headers?
  1. curl: curl -I https://example.com (or curl -ILv https://example.com to follow redirects + see verbose)
  2. Browser DevTools: open the page, F12 → Network tab → click the document request → Headers panel → copy the Response Headers block
  3. Postman / Insomnia: send a HEAD or GET request, copy the response headers from the headers tab

Pasting the entire curl -v output also works, we extract the response-header block automatically.

0 headers
overall grade
-

Privacy: header parsing happens in your browser. Nothing is sent or logged.

§ · written guide

How to use the HTTP Headers Checker

This checker audits HTTP response headers that you paste in. It looks for 12 headers in four groups, security, caching, compression and server fingerprint, marks each one as a pass, warning or fail, and turns the results into a score out of 100 and a letter grade. It is for developers and site owners checking a server or CDN setup before launch or after a change.

Step by step

  1. Get the headers

    Run curl -I https://example.com in a terminal, or open your browser's developer tools, select the page request in the Network tab and copy its response headers. In Chrome, tick Raw first so each header is copied as one name: value line. The How do I get my response headers? panel above the box lists these options.

  2. Paste them in

    Paste into Response headers. The counter beside the label shows how many headers were read, and the audit updates as you type. Each header must sit on its own name: value line. Output from curl -v alone is not recognized, because every response line starts with a < mark. Use curl -I, or delete the < marks before you paste.

  3. Or try a sample first

    Press load sample (well-configured) to see a full score, or load minimal sample to see a bare server response. Press clear to empty the box.

  4. Read the grade

    The overall grade panel shows a letter and a score, for example A (100/100), followed by the status line from your paste and a one line summary of what the grade means.

  5. Work through the groups

    Below the grade, the Security, Caching, Compression and Fingerprint groups list each header with the value found and a note on what to change. Fix the fails first, then the warnings, and paste the new headers to confirm.

Reading the score

  • Security is worth 50 points over six headers: HSTS, Content-Security-Policy, X-Content-Type-Options, X-Frame-Options, Referrer-Policy and Permissions-Policy. Caching is worth 20 over Cache-Control, ETag and Vary. Compression is worth 20 for Content-Encoding, and Fingerprint 10 over Server and X-Powered-By. Only passes earn points.
  • Grades are A at 90 or more, B at 80, C at 70, D at 60 and F below that. The well-configured sample scores A (100/100) and the minimal sample scores F (0/100).
  • A fail means the header is missing. A warning means it is present but weak: HSTS with a max-age under 31536000 seconds (one year), Cache-Control without max-age, no-cache or no-store, X-Content-Type-Options other than nosniff, X-Frame-Options other than DENY or SAMEORIGIN, or Content-Encoding other than br, zstd or gzip.
  • Fingerprint works the other way round. A Server or X-Powered-By header is a warning because it reveals your software, and leaving it out is a pass.

Tips and common mistakes

  • Keep the status line, such as HTTP/2 200, at the top of the paste. Without it the checker reads every name: value line on its own and skips any line containing //, so a policy that lists https:// hosts can be missed.
  • If you followed redirects with curl -L, only the first response in the paste is audited, and that is often the redirect. Paste just the final response block.
  • Content-Security-Policy, Referrer-Policy and Permissions-Policy pass with any value. A policy full of wildcards still scores, so review its contents separately.
  • Servers and CDNs can send different headers for the HTML page and for images or scripts. Paste the headers of the main document unless you mean to audit an asset.

Privacy and limits

Parsing and scoring happen in your browser. The checker never contacts your site; it only reads what you paste, and nothing is sent or saved. That makes it safe for headers from staging or internal servers.

Back to the tool

§ 02 · modern security headers

Six headers. Two are non-negotiable.

Strict-Transport-Security (HSTS). The single most-impactful header. Without it, an attacker on the network (public WiFi, malicious ISP, compromised router) can intercept the first HTTP request to your domain and downgrade the connection to plain HTTP. With HSTS, the browser refuses any non-HTTPS connection to your domain for the duration of the max-age. Modern best practice: max-age=63072000; includeSubDomains; preload. Submit to hstspreload.org for inclusion in the browser-built-in preload list.

Content-Security-Policy (CSP). The strongest XSS protection layer. Even if an attacker injects a script tag into your HTML (via stored XSS, third-party JS compromise), the browser refuses to execute it unless your CSP allows that origin. The catch: CSP is hard to author correctly, every third-party script, every inline style, every embedded video must be explicitly allowed. For a simple marketing site, start with default-src 'self' and add exceptions as you find broken pages. For a complex app, use a build-time CSP with nonces or hashes per Google's CSP guide.

X-Content-Type-Options. One value, always: nosniff. Prevents browsers from MIME-sniffing, guessing the content type of a response. Without nosniff, a server that returns an image as text/plain may have its content executed as script if the bytes look script-shaped. Modern threat surface, easy fix.

X-Frame-Options or CSP frame-ancestors. Clickjacking protection. Prevents your site from being framed inside a malicious page that overlays invisible iframes over real buttons. SAMEORIGIN for most sites; DENY for sites that should never be framed (banking, account management). The CSP frame-ancestors directive supersedes X-Frame-Options when both are present.

Referrer-Policy. Controls how much URL data leaks in the Referer header on outbound clicks. Default browser behavior leaks the full URL on cross-origin links, a privacy and security gap. Modern recommendation: strict-origin-when-cross-origin (sends just the origin to cross-origin destinations).

Permissions-Policy. Restricts browser-feature access on your page. geolocation=(), camera=(), microphone=() denies all three to all scripts on the page including third-party. Critical for sites that embed third-party widgets where you don't want those widgets requesting hardware access.

§ 03 · when to use this

Four jobs this tool covers.

Job 1: Security audit before launch. Before flipping a new site live, run curl -I https://staging.example.com, paste the headers here. Address every FAIL in the security category before the marketing-team launch announcement, not after. The fix is usually a few lines in your CDN / load-balancer / nginx config.

Job 2: Vendor / third-party diligence. Evaluating a SaaS vendor or partner integration? Run their public site through the checker. A well-configured vendor signals operational maturity; a vendor with default-server headers and missing security posture is a yellow flag for your security review process. Vetting a software firm for an enterprise build? Our enterprise software vendor ranking lists the evidence worth asking for.

Job 3: CDN configuration verification. After spinning up a new CDN (Cloudflare, Vercel, Netlify, AWS CloudFront), verify the headers it ships. Most CDNs add several headers automatically (cf-ray, server-timing); make sure your origin's intended headers are also present and not stripped. Pair with our Web Server Detector for the server-fingerprint side.

Job 4: Incident-response forensics. When a security incident happens, header configuration is part of the post-mortem evidence. Snapshot the headers before and after the fix; the difference shows exactly what changed and confirms the fix landed. Pair with our SSL Certificate Inspector for the cert side of the security stack.

§ 04 · questions

Six questions users ask.

Why paste headers instead of fetching the URL?

Browser CORS policy blocks reading response headers from cross-origin URLs without explicit Access-Control-Expose-Headers cooperation from the target server. Most sites do not send that header, so a browser-side fetch tool would fail on most sites. Paste mode works on any site, get the headers from curl -I or browser DevTools and paste them here. This is the same pattern used by Mozilla Observatory and other reputable header analyzers; we just don't host a backend proxy.

How do I get my headers from curl?

Run curl -I https://example.com, the -I flag fetches headers only (HEAD request). For full request + response headers including following redirects, use curl -ILv https://example.com (the v adds verbose output, including the cert chain). Paste the response-header block. We accept either single-response or curl-verbose-output paste; the parser extracts the response headers automatically.

Which headers does the audit check?

Five categories. (1) Caching, Cache-Control, ETag, Last-Modified, Expires; whether the policy supports CDN caching and browser revalidation. (2) Security, HSTS (Strict-Transport-Security), CSP (Content-Security-Policy), X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy; the modern security-header set per OWASP guidance. (3) Compression, Content-Encoding gzip / br / zstd; what's being shipped. (4) Server fingerprint, Server, X-Powered-By; what your stack reveals. (5) Modern features, Server-Timing for performance debugging, Early-Hints / 103, Speculation-Rules. Each gets a verdict and rationale.

What's HSTS and why does it matter?

HTTP Strict Transport Security tells browsers 'always connect to this domain over HTTPS for the next N seconds, even if the user types http:// or clicks an http link.' Prevents downgrade attacks where a network attacker swaps an HTTPS link for HTTP and intercepts the unencrypted traffic. Modern best practice: max-age=63072000 (2 years), includeSubDomains, preload (for inclusion in the browser-built-in preload list at hstspreload.org). Missing HSTS is the most common security-header gap on production sites.

What's CSP and is it worth setting?

Content Security Policy tells the browser which origins are allowed to load scripts, styles, images, fonts, frames, etc. The strongest XSS protection layer available, even if an attacker injects a script tag into your HTML, the browser refuses to execute it unless your CSP allows that origin. The trade-off: CSP is hard to author correctly; even one missed third-party domain breaks pages. For lower-stakes sites (marketing pages, blogs), the default permissive Content-Security-Policy: default-src 'self' is a reasonable starting baseline. For high-stakes apps (banking, healthcare), invest in a proper CSP with nonces or hashes.

Is the data I paste sent anywhere?

No. Header parsing happens entirely in your browser. The page is static HTML; the only network request is the initial page load. Safe for headers from internal staging environments, dev servers, or production environments you don't want to share, paste them here and the data never leaves the browser tab.

§ 06 · common mistakes + when to use this tool

Three mistakes we see most.

Security headers are the one production hardening step that costs nothing and gets skipped most often. OWASP's Secure Headers Project tracks roughly 80% of the Alexa top-1M as either missing HSTS entirely or shipping it without preload, and the equivalent number for a fully-locked-down CSP is closer to 95%.

Mistake 1, HSTS without preload: a Strict-Transport-Security header with max-age=31536000 looks complete, but the first request from a new browser still goes over HTTP and is interceptable. web.dev's security-headers guide recommends adding includeSubDomains; preload and submitting the domain to hstspreload.org, which ships the entry into Chromium and Firefox source. The preload submission is irreversible for 12-18 months, so verify subdomains first, then preload.

Mistake 2, wildcards in CSP defeat the point: a Content-Security-Policy that includes default-src *, script-src 'unsafe-inline', or img-src https: provides no real protection. MDN's CSP documentation is explicit that allowlisting must be specific. Use nonces or hashes for inline scripts, name your CDN hosts, and lock down connect-src to your actual API origins. Run the policy in Report-Only mode for two weeks against production traffic before enforcement; the report-uri data tells you exactly which legitimate resources the strict policy would have killed.

Mistake 3, X-Frame-Options vs frame-ancestors confusion: teams ship X-Frame-Options: SAMEORIGIN and a CSP with frame-ancestors 'none' simultaneously, then wonder why the two disagree. Per MDN's X-Frame-Options reference, when CSP frame-ancestors is set, modern browsers ignore X-Frame-Options entirely. Pick one (frame-ancestors is the future-proof choice), drop the other, and verify in the checker.

When to actually use this: after every deployment that touches headers (web.config, nginx.conf, Cloudflare Transform Rules, Vercel headers), before any pen-test, during compliance prep (SOC 2, PCI), and as part of a quarterly security audit. Our Web development engagements include header-hardening as a day-one task on every new build.

Related Digital Heroes services + reading: See our Web development service for production-grade security architecture, plus our CSP Validator and CORS Checker. Sibling tools: Cookie Analyzer and HTTPS SSL Checker.

Published · Last updated .

Priya sent you a message Online now

Talk to a Developer Now

Share your name and email to reply.

Reply