Developer tools
HTTP Headers Checker
Inspect HTTP response headers, redirects and the presence of common security headers.
What is http headers checker?
The checker sends a HEAD request, follows a bounded redirect chain and displays the returned headers. If HEAD is unsupported, it requests GET headers and cancels the body.
How to use this tool
- Enter a website URL and review any options.
- Select Look up to submit your request.
- Read the result, inspect its source and copy or download the response if needed.
Understanding the results
- Security header presence
- Whether six common security headers came back: Strict-Transport-Security, Content-Security-Policy, X-Content-Type-Options, X-Frame-Options, Referrer-Policy and Permissions-Policy.
- Strict-Transport-Security
- Tells browsers to use only HTTPS for the site for a set time (HSTS).
- Content-Security-Policy
- Limits where scripts, styles and other resources can load from, which reduces the damage from cross-site scripting.
- Redirects and final URL
- How many redirects were followed, up to five, and where the request ended.
Supported features and common uses
Only HTTP and HTTPS on standard ports are allowed. Every redirect is revalidated against private and reserved addresses. Header presence is reported without claiming the policy is correctly configured.
Troubleshooting
Check the input format if validation fails. Public data may be missing or redacted, and upstream services can time out or rate limit requests. A failed lookup is not proof that a domain or website is unavailable.
What HTTP headers are
Every response from a web server begins with a status line and a set of headers, sent before the page itself. Headers are name and value pairs that tell the browser what it is receiving and how to treat it: the type of content, how long to cache it, which cookies to store and which security rules to apply.
Visitors never see them, but they shape how a site behaves. Reading them is often the fastest way to learn how a site is set up.
The six security headers this tool looks for
- Strict-Transport-Security: tells browsers to use HTTPS for every future visit, so a visitor is never sent to the unencrypted site.
- Content-Security-Policy: lists the sources a page may load scripts, styles and other resources from. It limits what an injected script can do.
- X-Content-Type-Options: with the value nosniff, stops browsers guessing a file’s type, which closes a route for disguised scripts.
- X-Frame-Options: controls whether other sites may show the page inside a frame, which prevents clickjacking.
- Referrer-Policy: controls how much of the current address is passed on when a visitor follows a link.
- Permissions-Policy: switches off browser features, such as the camera or location, that the site does not use.
Other headers worth reading
- Content-Type: the kind of content and its character set.
- Cache-Control: how long browsers and proxies may keep a copy.
- Server: the web server software, sometimes with a version number.
- Set-Cookie: cookies the site sets. Look for the Secure, HttpOnly and SameSite attributes.
- Location: the address a redirect points to.
- Content-Encoding: whether the response is compressed, for example with gzip or br.
Reading redirects
A redirect is a response with a 3xx status and a Location header. 301 and 308 are permanent, and browsers and search engines remember them. 302 and 307 are temporary. Most sites redirect http to https and settle on one hostname, with or without www. The tool follows up to five redirects and shows the headers of the final response.
Why HEAD and GET can differ
The checker sends a HEAD request, which asks for the headers without the page. Most servers return the same headers they would send with the full page. A few handle HEAD differently or reject it, and in that case the tool makes a normal GET request and discards the body. If a header you expect is missing, check a page request in your browser’s developer tools too.
Adding security headers
Headers are set in the web server’s configuration, at a content delivery network or in the application. Most take one line. Two need care. Introduce a Content-Security-Policy in report-only mode first, using the Content-Security-Policy-Report-Only header, so that you can see what it would block before it blocks anything. And start Strict-Transport-Security with a short max-age, then raise it once you are sure every part of the site works over HTTPS.
What presence does not prove
This tool reports whether each header came back. It does not grade the value. A Content-Security-Policy that allows inline scripts from anywhere is present and does very little. A Strict-Transport-Security header with a max-age of zero switches the protection off. Read the values, not only the list.
A worked example
Check a typical site by its http address. The first response is a 301 with a Location header pointing to the https address. The second response is a 200. Its headers show a Content-Type of text/html, a Cache-Control value, a Strict-Transport-Security header with a max-age of a year, and a Content-Security-Policy. The summary reports one redirect and marks those two security headers as present.
If the summary shows no Strict-Transport-Security on a site that uses HTTPS, that is the first thing to add.
Reading Cache-Control
- max-age: how many seconds a copy may be reused.
- no-cache: a copy may be stored but must be checked with the server before each use.
- no-store: nothing may be stored at all. Used for private pages.
- public and private: whether shared caches, such as content delivery networks, may keep a copy.
- immutable: the file will never change, so the browser need not check again.
Pages usually have a short lifetime or no-cache, and files with a version in their name, such as scripts and styles, have a long one.
Terms used on this page
- Header: a name and value sent with a request or response.
- HEAD request: a request for the headers only.
- Redirect: a response that sends the client to another address.
- HSTS: short for HTTP Strict Transport Security.
- CSP: short for Content Security Policy.
- Clickjacking: tricking a visitor into clicking something on a page hidden inside a frame.
Frequently asked questions
Good questions. Clear answers.Why are some headers missing?
Servers choose which headers to return, and some vary by request method or URL.
Is this a security score?
No. Presence checks are useful context but cannot establish comprehensive security.
How do I view a website’s HTTP headers?
Enter the URL here. You can also open your browser’s developer tools, select the Network tab and click a request, or run curl -I followed by the URL in a terminal.
Which security headers matter most?
Strict-Transport-Security and Content-Security-Policy do the most. X-Content-Type-Options with nosniff is a one-line addition with no downside.
Is X-Frame-Options still needed?
The frame-ancestors directive of Content-Security-Policy has replaced it. Sending both covers older browsers that do not understand the newer directive.
What does the Server header reveal?
The web server software and sometimes its version. Many administrators shorten or remove it so attackers learn less about the setup.
Why do headers differ between pages?
Applications can set headers per page, and content delivery networks treat cached files differently from pages built on request. Check the specific URL you care about.
Does a missing header mean the site is insecure?
Not by itself. Some headers do not apply to every site. A missing header is a prompt to ask whether the site would benefit from it.
What is HSTS preloading?
A list built into browsers of sites that must always use HTTPS, even on the first visit. To join, a site sends Strict-Transport-Security with a max-age of at least a year, includeSubDomains and preload. It is hard to undo, so be sure before you apply.
Can I check a page that needs a login?
The tool sends no cookies or credentials, so it sees what an anonymous visitor would get, which is usually the login page or a redirect to it.
Why does the tool show different headers from my browser?
Servers can vary their response by browser, language, cookies and location. A request from our server with none of those may get a different answer.
Do security headers affect search rankings?
Not directly. They protect visitors, and HTTPS, which HSTS reinforces, is something search engines expect.
How many redirects does the tool follow?
Up to five. After that it stops and reports the chain as too long.
What is the difference between a request header and a response header?
Request headers are sent by the browser and describe what it wants and what it can handle. Response headers are sent by the server and describe what it returned. This tool shows response headers.
Which response does the header list come from?
The last one. The tool reports how many redirects it followed and the final URL, and the headers shown belong to that final response.