Network Tools

HTTP Headers

Inspect HTTP response headers and server details.

Every answer from a web server begins with a status code and a set of headers, sent before any page content. The headers describe the response: what kind of content it is, how long it may be cached, which software produced it and which security rules the browser should apply. This tool requests a web address from the IP Tracker server and lists the headers that come back.

It sends a HEAD request, which asks the server for the headers alone, without the page body. Redirects are reported and not followed, so you see the answer of the exact address you entered.

How to check the headers of a page

  1. Type a web address into the field, for example https://example.com/pricing. If you leave out http:// or https://, the tool assumes HTTPS.
  2. Click Lookup. The server sends one HEAD request and allows 8 seconds in total for the answer.
  3. Read the four rows at the top: URL, Status code, Response time and Redirects to.
  4. Go through the Response headers table. Each row is one header with its name and its value.

Headers belong to one address, not to a whole site. The home page, an image and a script can each carry different caching and content headers, so enter the address of the exact file you want to know about.

Under the result the page notes: "HEAD request. Redirects are reported, not followed." The same data is available as JSON under "View as JSON".

How to read the result

URL is the address that was requested, written out in full with its scheme. Status code is the three-digit number the server answered with, such as 200 for success or 301 for a permanent redirect. HTTP Status explains the codes one by one. Response time is how long the server took to answer, measured from the IP Tracker server.

Redirects to shows the target when the server sends visitors elsewhere, and "No redirect" otherwise. The tool does not go to the target. To see the headers of the page a redirect leads to, run a second lookup with the target address.

In the Response headers table, the Header column holds the name and the Value column holds the content. Header names are not case sensitive, so Content-Type and content-type are the same header. One header can appear several times. The usual case is set-cookie, which is sent once per cookie.

Common response headers

HeaderWhat it tells youExample value
content-typeThe kind of content and its character encodingtext/html; charset=utf-8
content-lengthThe size of the body in bytes5120
cache-controlWhether and for how long browsers and caches may keep the responsepublic, max-age=3600
etagA version tag that lets a browser ask whether its stored copy is still current"5f2c-61a8"
serverThe web server software or the network that answerednginx
locationThe address a redirect points tohttps://www.example.com/
set-cookieA cookie the browser is asked to storesession=abc123; Secure; HttpOnly
strict-transport-securityThat browsers must use HTTPS for this site for a set timemax-age=31536000; includeSubDomains
content-security-policyWhich sources of scripts, styles and other resources the page may loaddefault-src 'self'
x-frame-optionsWhether other sites may show the page inside a frameSAMEORIGIN
content-encodingThe compression applied to the bodygzip

No server sends all of these, and most send others as well. Names that begin with x- started as additions outside the HTTP standard. Software vendors and network providers define many of them for their own use, so their meaning depends on who added them.

Checking how a page is cached

The cache-control header is a list of directives separated by commas. Each one gives browsers and intermediate caches a rule.

DirectiveMeaning
max-age=3600The response may be reused for 3,600 seconds (one hour) without asking the server again
no-cacheThe response may be stored, but the browser must check with the server before each reuse
no-storeThe response must not be stored at all. Pages with personal data often use this
privateOnly the visitor's own browser may store it. Shared caches must not
publicShared caches, such as a content delivery network, may store it
immutableThe file will not change during its lifetime, which suits files with a version or hash in their name

A typical setup gives HTML pages a short lifetime or no-cache, so that changes show up soon, and gives images, stylesheets and scripts a long max-age. If visitors keep seeing an old version of a file after an update, read its cache-control value first.

When a content delivery network or another cache stands in front of a site, extra headers often show it. age gives the number of seconds the response has spent in a cache. via names an intermediate server. Many networks also add a header such as x-cache with a value like HIT or MISS. That last kind is specific to each provider, so names and values vary.

Checking security headers

A few response headers switch on protections in the browser. Their presence does not make a site secure, and their absence is not a breach, but one request from outside is enough to see whether they are set.

  • strict-transport-security, known as HSTS, tells the browser to use HTTPS for every later visit during the max-age period, even if the visitor types http://. Browsers accept it only on a response received over HTTPS.
  • content-security-policy lists the sources a page may load scripts, styles, images and frames from. It limits the damage a script injected by an attacker can do. Policies tend to be long and specific to one site.
  • x-content-type-options with the value nosniff stops the browser from treating a file as a different type than the server declared.
  • x-frame-options with DENY or SAMEORIGIN stops other sites from embedding the page in a frame. This defends against clickjacking, where a hidden frame tricks a visitor into clicking something. The frame-ancestors directive of content-security-policy is the newer way to do the same.
  • referrer-policy controls how much of the current address the browser passes on when the visitor follows a link.
  • On set-cookie lines, look for Secure (sent over HTTPS only), HttpOnly (hidden from page scripts) and SameSite (limits sending the cookie along with requests that come from other sites).

To test the redirect from HTTP to HTTPS, enter the address with http:// written out. A site set up for HTTPS answers with a redirect status such as 301 and a location value that starts with https://.

Finding out which software or network answers

The server header names the software that produced the response, for example nginx or Apache, sometimes with a version number. Site owners can shorten, change or remove it, so treat the value as a hint. x-powered-by, when present, names the application platform behind the web server.

A site behind a content delivery network or a reverse proxy shows that network's headers, not those of the origin server where the site really runs. The server value may then be the name of the network. To see which network operates the IP address behind a site, use Hosting Checker.

What this tool does not show

The request is HEAD, not the GET request a browser sends for a page. A server is expected to return the same headers for both. Some servers answer a HEAD request differently, leave headers out or refuse it. If a result looks wrong, compare it with the Network panel of your browser's developer tools.

The tool reads headers only. It does not download the page, so it cannot show the HTML, the title or anything that is set inside the page.

A server compresses a response only for a client that asks for it, and a HEAD answer has no body to compress. A missing content-encoding header in this result therefore does not prove that the site sends its pages uncompressed.

The request comes from the IP Tracker server and carries none of your cookies. A page behind a login answers with a redirect or an error, and a site that varies its response by visitor location or device may send you different headers. Some sites block automated requests altogether.

A site whose certificate is invalid fails with a general error instead of a header list. SSL Checker shows the certificate and the reason it is not trusted.

Only public addresses are accepted. Each visitor can run 15 lookups a minute, and IP Tracker does not keep a history of the addresses you check.

Frequently asked questions

What is the difference between a HEAD request and a GET request?

GET asks for a resource and receives the headers followed by the body, which is the page or file itself. HEAD asks for the same response without the body. The server is expected to send the headers it would have sent for GET.

HEAD is enough to read headers and uses very little data. Its weakness is that some applications do not implement it properly.

Why do I see a redirect instead of the headers of the final page?

The tool shows the answer to the address you entered and stops there. If that answer is a redirect, you get the redirect status, the location header and the target in the Redirects to row.

Enter the target address and run the lookup again to see the next response. Repeat until the status is no longer a redirect.

Why are the headers here different from the ones in my browser?

Your browser sends a GET request with cookies, a language preference, a list of compression methods it accepts and its own user-agent string. Servers use all of these to shape the response. This tool sends a plain HEAD request from another place on the internet.

Differences in set-cookie, content-encoding, vary and cache headers are the usual result. Headers such as strict-transport-security and server are normally the same.

How do I know whether a page is being cached?

Read cache-control. A max-age above zero, without no-store, allows browsers to reuse the response for that many seconds. no-store forbids caching.

For a cache in front of the site, look for an age header or a provider header that reports HIT or MISS. Running the lookup twice and seeing age grow shows that a stored copy is being served.

Which security headers should a website send?

For a site served over HTTPS, strict-transport-security is the usual starting point. Most sites also benefit from x-content-type-options: nosniff, a referrer-policy, and protection against framing through x-frame-options or frame-ancestors.

A content-security-policy gives the strongest protection against injected scripts. It also takes the most care to set up, because a policy that is too strict breaks parts of the page.

Why did the check fail with an error and no headers?

The server did not return a usable answer. The common causes are a hostname that does not resolve, a server that did not answer within 8 seconds, and an HTTPS certificate that is not valid.

For a certificate problem, run SSL Checker on the hostname. For a name problem, check the records with DNS Lookup.

Can I see the request headers that my own browser sends?

Not with this tool. It lists response headers, the ones a server sends back. Your browser's developer tools show both directions for every request in the Network panel.

One request header, the user-agent string, has its own tool: User-Agent Parser shows the string your browser sends and what it says.