HTTP Header Checker
Enter a URL and this tool sends a request to that page and shows the status code and response headers. If the page redirects, each URL along the way is shown in order.
You can also see at a glance whether security headers such as HSTS and CSP are set. Use it to check caching, redirect, and security settings, or before publishing a site.
How to use
- Enter the URL of the page you want to check. You can omit “https://”.
- If needed, choose the method (GET or HEAD) and whether to follow redirects.
- Press “Check” to see the status code, the response headers, and which security headers are set.
- Copy the URL of the result to share the same check with others.
When following redirects, the tool fetches up to 10 redirect targets in order. When not following them, it shows only the first response and its redirect target (Location).
Security headers
The result shows whether the last response includes the following six headers. Whether a value is appropriate depends on the site, so no score is given.
- Strict-Transport-Security (HSTS)
- Tells the browser to connect to the site only over HTTPS from then on. Browsers ignore it on http responses, so it is shown as “not applicable” for http URLs.
- Content-Security-Policy (CSP)
- Restricts where scripts, images, styles, and other resources can be loaded from, limiting the damage of cross-site scripting (XSS). Content-Security-Policy-Report-Only only reports violations and restricts nothing, so it is not counted as “present”.
- X-Content-Type-Options
- With nosniff, the browser does not treat a file as a different type from its Content-Type (MIME sniffing).
- X-Frame-Options
- Prevents the page from being shown inside an iframe on other sites, protecting against clickjacking. The frame-ancestors directive of CSP can do the same.
- Referrer-Policy
- Controls how much of the URL is sent as the referrer (Referer) when moving to another page.
- Permissions-Policy
- Controls whether the page and its iframes can use browser features such as the camera, microphone, and location.
Common response headers
- Content-Type
- The type of the body (such as text/html) and its character encoding.
- Cache-Control
- How long browsers and CDNs may cache the response. max-age is in seconds, and no-store means it must not be cached.
- Location
- The target URL of a redirect (301, 302, and so on).
- Set-Cookie
- Makes the browser store a cookie. Multiple cookies are shown one by one, so you can also check Secure, HttpOnly, and SameSite.
- Content-Encoding
- How the body is compressed (gzip, br, zstd, and so on).
- ETag / Last-Modified
- Values used to check whether the body has changed. Browsers use them to skip downloading it again if nothing has changed.
- Vary
- Shows which request headers change the response, which affects how it is cached.
- X-Robots-Tag
- Tells search engines not to index the page (noindex), not to follow its links (nofollow), and so on. It also works for files other than HTML.
- Server
- The server software (such as nginx or cloudflare). Some sites choose not to show it.
Status code classes
- 2xx (Success)
- The request succeeded. 200 OK is the most common.
- 3xx (Redirection)
- Redirects to another URL. 301 and 308 mean the page has moved permanently; 302 and 307 are temporary redirects. 304 means the cached content has not changed.
- 4xx (Client error)
- There is a problem with the request. 404 means the page does not exist, 403 means access is denied, and 429 means there are too many requests.
- 5xx (Server error)
- Something went wrong on the server. 502, 503, and 504 often mean the server is down, overloaded, or timing out. 520–526 are errors returned by Cloudflare.
How requests are sent
Requests are sent from this site’s servers (Cloudflare Workers) with the same User-Agent as a common browser (Chrome). Some sites may return a different response (such as 403) than they do in a browser, for example because of bot protection. Because requests go through Cloudflare, the server header may show “cloudflare”, and cf-ray, cf-cache-status, and connection headers may be added, even for sites that do not use Cloudflare.
The body is not downloaded; only the status and headers are fetched. Response times are measured from Cloudflare’s servers and differ from how fast the page loads on your connection.
Internal addresses such as localhost and private IP addresses, and URLs that use an IP address directly, cannot be checked. The URLs you enter and the results are not stored.
Frequently asked questions
What are HTTP headers?
They are information sent alongside the body when a browser and a server communicate. The response headers returned by the server include the type of the body, caching instructions, redirect targets, cookies, and security settings.
What is the difference between GET and HEAD?
GET retrieves the page including its body, while HEAD retrieves only the headers. This tool does not download the body either way, but because some servers do not support HEAD or respond differently to it, GET is usually recommended.
What is the difference between 301 and 302 redirects?
301 (and 308) means the page has moved permanently, and search engines treat the target URL as the canonical one. 302 (and 307) is a temporary redirect. Moving a site or redirecting from http to https normally uses 301.
Why is the result different from what I see in my browser?
This tool sends requests from Cloudflare’s servers without cookies. Depending on login status, country or region, and bot detection, the response may differ from what your browser receives. You can check your browser’s response in the Network tab of its developer tools. Also, because requests go through Cloudflare, the server, cf-ray, cf-cache-status, and connection headers may show Cloudflare’s values.
Why are the header names in lowercase?
HTTP header names are case-insensitive, and HTTP/2 and later send them in lowercase. This tool shows them in lowercase, sorted by name.