HTTP header analyzer
Everything runs in your browser; nothing is sent or stored.
- Paste the output of curl -I, or the headers from the Network tab of your browser's developer tools, into the "Response headers" field.
- The analysis updates as you type, and you can also click "Analyze". The tool only analyzes the pasted text and does not contact the site. The header explanations are short and general.
- In the "Security summary" section, each security header is marked "OK", "Missing", or "Needs review", with an explanation and a recommendation. The check covers the last response in the chain, and the recommendations fit a site served over HTTPS.
- The "Headers by response" section shows the status code and all the headers of each response, and for a redirect response, also the address it redirects to.
- For the Cache-Control header, each directive is explained, and times in seconds are also shown in minutes, hours, or days.
What HTTP response headers are
With every response to a request, the server sends a status line and headers, followed by the content itself. The headers are not shown on the page, but they control how the browser handles the response: the content type and character encoding, compression, caching, cookies, redirection to another address, and security restrictions. The command curl -I https://example.com shows only the response headers, and the command curl -IL also shows every response in the redirect chain, for example from HTTP to HTTPS and from the domain without www to the domain with www. The analyzer shows each response in the chain separately, and the security summary covers the last response, which delivers the page itself.
Security headers
Security headers tell the browser to restrict actions that could be used in an attack. The Strict-Transport-Security (HSTS) header tells the browser to connect to the site over HTTPS only, the Content-Security-Policy header sets which sources scripts and other resources may be loaded from, and the X-Frame-Options header prevents other sites from showing the site inside a frame. A misconfigured content policy can block scripts the site needs, so it is common practice to test the policy first with the Content-Security-Policy-Report-Only header, which reports violations without blocking them. For cookies, the Secure attribute limits sending to encrypted connections, the HttpOnly attribute prevents scripts on the page from reading the cookie, and the SameSite attribute limits sending in requests that come from other sites.
Cache and CDN headers
The Cache-Control header sets whether the response is cached and for how long. The max-age directive applies to the browser and to intermediate servers, and the s-maxage directive overrides it in a shared cache, such as a CDN. CDNs and cache servers add headers of their own to the response, such as cf-cache-status from Cloudflare or x-cache, where the value HIT means the response was served from the cache, and the value MISS means the response came from the server. The Age header shows how many seconds the response has been in the cache. When a change to your site does not show up in the browser, the cache headers show whether the page you received is a cached copy.
Common values in response headers
Cache-Control: no-storethe response must not be stored in any cache, for example on a user account page.Cache-Control: public, max-age=31536000, immutablecached for a year, for files whose name changes with every update, such as CSS files with a version identifier in the file name.Strict-Transport-Security: max-age=31536000; includeSubDomainsHTTPS-only connections for a year, to the domain and all its subdomains.X-Content-Type-Options: nosniffthe browser treats the file only as the type declared in the Content-Type header.X-Frame-Options: SAMEORIGINthe page may be shown inside a frame only on pages of the same site.Referrer-Policy: strict-origin-when-cross-originwhen a visitor moves to another site, only the domain of the linking page is sent, without the path, and when moving from HTTPS to HTTP, nothing is sent.Set-Cookie: session=abc; Secure; HttpOnly; SameSite=Laxa login cookie with all three security attributes.
With our Cloudflare services, static files, such as images, CSS files, and JavaScript files, are cached on the Cloudflare network and served to visitors from a location near them.
HTTP header analyzer FAQ
How do I copy the response headers from the browser?
In your browser's developer tools, which open with the F12 key, open the Network tab, reload the page, select the first request in the list, and copy the Response Headers section. Turn on the Raw view before copying, so each header is copied on a single line, in the "Name: value" format.
Can I paste the output of curl -v?
Yes. You can paste the full output. Request lines, which start with the > sign, and info lines, which start with the * sign, are skipped, and the < sign at the start of response lines is removed before the analysis.
Does the analyzer contact the site and check it?
No. The analyzer does not contact the site, and it analyzes only the text pasted into the field. To get the current headers of a site, run the curl -I command with the site's address, or copy the headers from your browser's developer tools.
Why are the Server and X-Powered-By headers marked "Needs review"?
The X-Powered-By header, and a Server header that includes a version number, reveal the software behind the site and its version. Version information makes it easier to look up known vulnerabilities in a specific version, so it is common practice to remove the X-Powered-By header and show only the software name in the Server header. A Server header that includes only a name, with no digits, is not marked.
Why is HSTS marked "Needs review" even when the header is present?
When the max-age value is shorter than six months (15552000 seconds), the header is marked "Needs review", because a short period gives less protection to visitors who return to the site. A header without a valid max-age value is also marked "Needs review", because the browser ignores it. Before you add includeSubDomains, make sure all your subdomains work over HTTPS, because the browser will not connect to them over HTTP for the whole period.
How many HTTP headers can I analyze at once?
You can analyze up to 300 headers at once, with input of up to 64 KB, and when the input includes more headers, only the first 300 headers are shown. Lines that are not headers are skipped, and the number of skipped lines is shown below the field, with the first skipped line as an example.