Christmas−30 % for 12 months with codeGet the offer →
  1. Home
  2. Free tools
  3. HTTP headers
Free tool, no sign-up

HTTP headers and redirects

Enter a page's address in the HTTP headers checker to see its headers, its status code and every redirect step, with the response time and the protocol version. Six security headers are checked and graded from A to F to show you exactly what is missing.

  • Up to 8 redirects followed
  • Security grade from A to F
  • Every header displayed
HTTP headers checker result: redirect chain 301 then 200, security grade A and HSTS, CSP and nosniff headers validated
One redirect301 to HTTPS
Grade ASix security headers
What the tool checks

From the first code to the final page

The checker queries the server like a browser, follows each redirect and analyses the final response in detail.

Status code

The status code returned at each step: 200, 301, 302, 404, 500 and the others, to spot a missing page, a server error or a poorly chosen redirect.

Redirect chain

Each 301, 302, 303, 307 or 308 redirect is followed, up to eight steps. Loops are detected and flagged before they block your visitors.

Timing and protocol

For each step, the server's IP address, the response time in milliseconds and the protocol version negotiated with the server: HTTP/1.1, HTTP/2 or HTTP/3.

Security headers

HSTS, Content-Security-Policy, X-Content-Type-Options, framing protection, Referrer-Policy and Permissions-Policy, weighted and scored out of 100, with a final grade from A to F and an explanation for each one.

Information disclosed

A Server header that shows a version, an X-Powered-By that reveals the technology or a final page without HTTPS are flagged with advice on how to fix them.

Every header

The full table of headers in the final response: caching, cookies, compression, content type, to check your server configuration in detail.

How to use it

Check HTTP headers in four steps

Enter the address

The page's full address. Start with http:// to test the redirect to HTTPS, otherwise https:// is added automatically.

Run the test

The tool queries the server, follows each redirect to the final page and records the headers of each response in a few seconds.

Read the path and the grade

Check the number of redirects and their codes, then the security grade and the list of headers present or missing.

Fix and test again

Add the missing headers or simplify the redirects in the server configuration, then run the test again to check.

What are HTTP headers?

Every time a browser displays a page, it exchanges messages with the server using the HTTP protocol. The browser sends a request, the server sends back a response. Before the page content, this response contains a status line with a three-digit code, then a series of HTTP headers: “name: value” lines that give instructions to the browser.

HTTP/2 200
content-type: text/html
cache-control: max-age=600
strict-transport-security: max-age=31536000
x-content-type-options: nosniff
referrer-policy: strict-origin-when-cross-origin

These headers are invisible on screen, but they decide a great deal: the type of content, how long it is cached, the cookies set, the new address in case of a redirect and the security rules the browser must apply. A website can appear to work perfectly while sending headers that are incomplete, contradictory or too talkative.

The HTTP headers checker displays this information exactly as the server sends it, follows each redirect to the final page and grades the security headers present. It is the ideal tool for checking a move to HTTPS, a domain name change or the configuration of a new server.

Request headers and response headers

There are two families of headers. Request headers are sent by the browser: the visitor's preferred language, accepted formats, cookies already stored, the software's identity. Response headers are sent by the server, and those are the ones the checker displays, because they are the ones you control. They are set in the web server configuration, in a .htaccess file, in a CDN's settings or directly in the application code. Header names are not case sensitive: Content-Type and content-type refer to the same header, and HTTP/2 always writes them in lower case.

The HTTP status codes you should know

The status code sums up what happened to the request. The first digit gives the family:

  • 2xx, success: 200 means the page is served normally.
  • 3xx, redirect: the resource is somewhere else, at the address given by the Location header. Codes 301 and 308 are permanent, 302, 303 and 307 are temporary.
  • 4xx, client error: 404 for a page not found, 410 for a page permanently deleted, 403 for access denied, 401 when authentication is required.
  • 5xx, server error: 500 for an internal error, 502 when an intermediate server receives an invalid response, 503 for a temporarily unavailable service, for example during maintenance.

For SEO, the right code matters as much as the right content. A deleted page that returns 200 with a “page not found” message is a “soft 404”, which search engines do not like. A moved page that returns 302 instead of 301 suggests that the old address remains the reference. The checker shows the exact code returned at each step.

How to use the HTTP headers checker

Enter a page's address, for example http://example.com or https://www.example.com/contact. If you leave out the protocol, the tool adds https://. To check a redirect from HTTP to HTTPS, you therefore need to enter the address explicitly with http://.

The tool then resolves the name, checks that the resulting address is public, and sends a HEAD request, which asks for the headers without the content. Some servers refuse this type of request and respond with 400, 403, 405 or 501: in that case, the tool repeats the request with GET, reading only a tiny start of the page. If the response is a redirect (301, 302, 303, 307 or 308), it follows the Location header and starts again, up to eight steps.

There are a few limits to be aware of. Only ports 80, 443, 8080 and 8443 are accepted. Private network addresses are refused. Each request has a few seconds to complete. Finally, the HTTPS certificate is verified: a certificate that has expired or does not cover the name makes the connection fail. In that case, check it with our SSL certificate checker.

Reading a redirect chain

The result starts with the path followed, with the number of redirects. Each step shows the address requested, the status code, the server's IP address, the response time in milliseconds and the protocol version (HTTP/1.1, HTTP/2 or HTTP/3). Here is a typical chain to avoid:

http://example.com          301  to https://example.com/
https://example.com/        301  to https://www.example.com/
https://www.example.com/    200

Two successive redirects where one would do. Each step adds a connection and a network round trip, which slows down the first visit, especially on mobile. The ideal is a single redirect, straight to the final address:

http://example.com          301  to https://www.example.com/
https://www.example.com/    200

301, 302, 307 or 308: which one should you choose?

For a permanent move, such as switching to HTTPS or changing domain, use 301 or 308. Browsers can remember the redirect and search engines gradually transfer the ranking value to the new address. For a temporary redirect, such as a maintenance page or a seasonal campaign, use 302 or 307. The difference between the pairs lies in the method: 307 and 308 require the request method to be kept, so a form sent with POST stays a POST. Code 303 deliberately sends the client to a page to be viewed with GET, typically after a form has been submitted.

If the chain goes round in circles, the tool stops and shows “Redirect loop”. Beyond eight steps, it also stops: a chain that long is a problem to fix in any case.

Security headers and the A to F grade

On the final response, the checker looks for six security headers. Each one earns points, for a total of 100. The grade follows from that: A from 90 points, B from 75, C from 55, D from 35, E from 15 and F below.

  • Strict-Transport-Security (HSTS), 25 points: forces the browser to use only HTTPS for your domain for the max-age duration. It only counts if the final page is served over HTTPS.
  • Content-Security-Policy (CSP), 25 points: lists the allowed sources for scripts, styles, images and frames. It greatly limits the effect of code injection.
  • X-Content-Type-Options, 15 points: the value nosniff prevents the browser from guessing a file's type, which stops a text file from being run as a script.
  • Framing protection, 15 points: the X-Frame-Options header or the CSP frame-ancestors directive prevents your pages from being displayed in a frame on another website, a technique used for clickjacking.
  • Referrer-Policy, 10 points: limits the originating address passed to the websites your links point to.
  • Permissions-Policy, 10 points: disables browser features the website does not need, such as the camera, the microphone or geolocation.

Example Apache configuration

On an Apache server with the headers module, a few lines in the website configuration or in the .htaccess file are enough to get started:

Header always set Strict-Transport-Security "max-age=31536000"
Header always set X-Content-Type-Options "nosniff"
Header always set X-Frame-Options "SAMEORIGIN"
Header always set Referrer-Policy "strict-origin-when-cross-origin"
Header always set Permissions-Policy "camera=(), microphone=(), geolocation=()"

The CSP policy needs more care, because it must list every source your pages actually use: fonts, analytics tools, embedded videos. Start with the Content-Security-Policy-Report-Only header, which reports violations without blocking anything, then switch to active mode once the list is stable.

Additional remarks

Below the grade, the tool adds remarks when it spots unnecessary information. A Server header that contains a version number, such as Apache/2.4.57, or an X-Powered-By header that reveals the language or software used, helps an attacker target known vulnerabilities: it is better to hide them. A remark also flags a final page that is not served over HTTPS. Finally, the full table of headers in the final response lets you check everything else: Cache-Control, Set-Cookie, Content-Encoding and the rest.

Common errors and solutions

  • Temporary redirect instead of permanent: a 302 left in place after a move to HTTPS or a domain change. Replace it with a 301 in the server or CMS configuration.
  • Too many steps: switching to HTTPS and adding www are handled by two separate rules. Write a single rule that sends every variant straight to the final address.
  • Redirect loop: often an HTTPS setting in the CMS combined with a proxy or CDN that contacts the server over HTTP. Check that the server recognises the original connection as secure.
  • HSTS enabled too soon: adding the includeSubDomains directive before all subdomains are on HTTPS makes them unreachable. Start with a short duration, then extend it.
  • Headers missing on some pages: they are added by a single rule that does not cover every address, or removed by a cache. Test several pages, not just the home page.
  • Connection failed: invalid certificate, port not allowed or a firewall that blocks bots. The tool identifies itself as an analysis tool, and some web application firewalls respond to it differently from a browser.
  • Name not found: the domain does not point to any address. Check its A and AAAA records with the DNS lookup.

Well-tuned cache headers also speed up your website: measure the effect of your settings with the website speed test. And if the table reveals many Set-Cookie headers, check their compliance with the GDPR cookie scanner.

Checking HTTP headers from the command line

The curl tool, available on Linux, macOS and Windows, shows the same information from your own computer. The -I option sends a HEAD request and shows the response headers:

curl -I https://www.example.com

To follow the whole redirect chain, add the -L option. The -s option hides the progress bar:

curl -sIL http://example.com

In a browser, the Network tab of the developer tools, opened with the F12 key, shows the headers of every resource loaded by the page. This is useful for checking images, scripts and stylesheets, which the online checker does not test since it stops at the page requested.

What about your email headers?

An email also carries headers, often even more revealing: each server it passes through adds a Received line, and the results of the SPF, DKIM and DMARC checks are written there. Paste those of a suspicious message into our email header analyzer to find out where it really came from.

Encryption of your email exchanges is also set through dedicated records, which the MTA-STS, TLS-RPT and BIMI checker verifies. To protect your domain name against spoofing, start with the SPF, DKIM and DMARC checker.

A well-configured website inspires trust, and protected email preserves it. Passmundi checks the authentication of every incoming email and filters spam, viruses and phishing before they reach your inboxes. Discover the Passmundi protection plans.

Key points

The most common HTTP status codes

CodeMeaningWhen you see it
200SuccessPage served normally
301Moved permanentlySwitch to HTTPS, new domain
302Moved temporarilyMaintenance, temporary campaign
307 and 308Redirect, method keptForms and APIs
404Not foundDeleted page or broken link
410Gone permanentlyContent deliberately removed
503UnavailableOverload or maintenance
Frequently asked questions

HTTP headers: all your questions

How do I check a website's HTTP headers?

Enter the page's address in the HTTP headers checker: it shows the status code, every header in the final response and each redirect followed. You can also use the curl -I command followed by the address, or the Network tab in your browser's developer tools, opened with the F12 key.

What is the difference between a 301 and a 302 redirect?

A 301 announces a permanent move: browsers can remember it and search engines gradually carry the ranking value of the old address over to the new one. A 302 is temporary: the old address remains the reference. For a move to HTTPS or a domain change, use a 301. Keep the 302 for a redirect that really is temporary.

When should I use 307 or 308 instead of 302 or 301?

When the request method must be kept, for example for a form sent with POST or an API. With 301 and 302, some clients turn the POST into a GET. The 307 is the temporary equivalent and the 308 the permanent equivalent. For a simple web page viewed with GET, 301 and 308 have the same effect.

How do I test an HTTP to HTTPS redirect?

Enter the address explicitly starting with http://, for example http://example.com. Without a protocol, the checker adds https:// and would not test the redirect. The path followed then shows each step. The ideal is a single 301 redirect that leads straight to the final HTTPS address, with or without www as you prefer.

What is the HSTS header?

Strict-Transport-Security tells the browser to use only HTTPS for your domain for the duration given by max-age, in seconds. It protects against being forced back to HTTP on an unsafe network. Start with a short duration, then move to one year once everything works. Only add includeSubDomains if all your subdomains are on HTTPS.

How is the security grade calculated?

The checker looks for six headers on the final response: HSTS and Content-Security-Policy are worth 25 points each, X-Content-Type-Options and framing protection 15 points each, Referrer-Policy and Permissions-Policy 10 points each. The grade goes from A, from 90 points, to F, below 15. HSTS only counts if the page is served over HTTPS.

Is X-Frame-Options still needed?

The frame-ancestors directive in Content-Security-Policy replaces it in modern browsers and offers more flexibility. Keeping both causes no problem and also protects older browsers. The checker accepts either one to award the framing protection points, which prevent your pages from being displayed in a frame on another website.

Why should I hide the Server or X-Powered-By header?

These headers can reveal the software and its exact version, such as Apache/2.4.57 or PHP/8.1. An attacker can use them to look for known vulnerabilities matching that version. Hiding them fixes no vulnerability, but makes reconnaissance harder. On Apache, the ServerTokens Prod directive reduces the Server header to the bare minimum.

Why does the checker show “Connection failed”?

There are several possible causes: the server does not respond within the time allowed, the HTTPS certificate is invalid or expired, the port is not one of the allowed ports (80, 443, 8080 or 8443), or a firewall blocks analysis tools. First check the certificate with an SSL checker, then test the address with curl from your own computer.

Do redirects affect SEO?

A well-placed 301 redirect preserves most of a moved page's ranking. On the other hand, chains of several redirects slow down crawling by bots and page display for visitors, and loops make the page unreachable. Aim for a single step to the final address and update your internal links to point straight to it.

Is the HTTP headers checker free?

Yes, it is free and requires no sign-up. To keep the service running smoothly, the number of tests is limited to about twenty per ten-minute period from the same connection, which is more than enough to check all the important pages of a website. Passmundi's other free tools work on the same principle.

Are the addresses tested stored?

A test result is cached for two minutes, to avoid repeating the same requests, then it is deleted. It is not linked to any account. Only a technical counter, in which your IP address is hashed, is kept briefly to apply the usage limit. The tool only reads the headers and, if needed, a tiny start of the page.

The complete toolbox

All our free tools, in one place

25 free tools, no sign-up needed, to check your email, your domain and your website. Each one gives a clear result and the steps to follow.

Email and deliverability 10

SPF, DKIM and DMARC checkerEmail authentication
Free

An A to F grade for your domain, with the exact fix to publish for each issue.

  • SPF, DKIM and DMARC read and explained
  • DMARC policy and alignment
  • Fixes ready to copy
Open the tool
Domain security auditDomain security
Free

Free domain security check: SPF, DKIM, DMARC, MTA-STS, blacklists, certificate and lookalike domains. Get an A to F grade and fixes ready to copy.

  • A to F grade in 20 to 40 seconds
  • Fixes ready to copy
  • Free weekly monitoring
Open the tool
Email spam testDeliverability
Free

Send a message to a test address and get a score out of 100: authentication, reputation, content.

Open the tool
MX lookupReceiving
Free

Where your mail arrives, in what order, and whether it goes through a filter before your inbox.

Open the tool
DMARC generatorAuthentication
Free

Your DMARC record in one minute, with the right policy to get started safely.

Open the tool
SPF generatorAuthentication
Free

A correct SPF built from your sending services, without exceeding the ten lookup limit.

Open the tool
Email header analyzerInvestigation
Free

Paste a message's headers: route, delays and authentication checks translated into plain English.

Open the tool
MTA-STS, TLS-RPT and BIMIAdvanced security
Free

Encryption enforced between servers, TLS reports, brand logo and DNSSEC in a single test.

Open the tool
Blacklist checkerReputation
Free

Is your IP address or domain on anti-spam lists? Thirteen lists checked.

Open the tool
Email signature generatorBrand image
Free

A professional signature in six steps, compatible with every mail app.

Open the tool

Domains and DNS 6

DNS lookupRecords
Free

All of a domain's records, A, MX, TXT, NS, CAA and the rest, on the resolver of your choice.

  • Every record type
  • A choice of seven public resolvers
  • Explanations for each value
Open the tool
DNS propagationDNS changes
Free

Is a change already visible everywhere? The answer from nineteen resolvers around the world.

Open the tool
Reverse DNS lookup (PTR)IP address
Free

The name associated with an IP address, checked in both directions, just as mail servers do.

Open the tool
Whois and RDAP lookupOwnership
Free

Registrar, creation and expiry dates, name servers and status of a domain or an IP.

Open the tool
Lookalike domain finderSpoofing
Free

Names close to yours that are already registered, which fraudsters could use against your customers.

Open the tool
Punycode converterAccented names
Free

Accented domains and the xn-- form, in both directions, with detection of misleading characters.

Open the tool

Websites and security 8

Speed testPerformance
Free

An A to F grade, Core Web Vitals, image-by-image loading and advice, on mobile and desktop.

  • Google metrics and server analysis
  • Request waterfall and page weight
  • PDF report to share
Open the tool
Cookie scannerGDPR
Free

Cookies before and after consent, banner, providers and a GDPR register ready to publish.

Open the tool
SSL certificate checkerEncryption
Free

Validity, issuer, chain, names covered and expiry date of a certificate, on any port.

Open the tool
HTTP headers and redirectsWeb server
You are here

The redirect chain of an address and the grade of its security headers.

What is my IPNetwork
Free

Your public IP address, IPv4 and IPv6, its name, its operator and its country.

Open the tool
Internet speed testConnection
Free

Download and upload speed, latency and jitter of your connection, measured live in your browser.

Open the tool
IP and CIDR subnet calculatorNetwork
Free

Ranges, masks, subnets and number of addresses of an IPv4 or IPv6 network.

Open the tool
Password generatorSecurity
Free

Strong passwords and passphrases, created in your browser, never sent.

Open the tool

Migration and handy tools 1

Email migrationChanging host
Free

Copy all the messages from one mailbox to another, folders and dates included, without deleting anything.

Open the tool

A well-tuned website, and well-tuned email too

You take care of your website's HTTP headers. Passmundi does the same for your emails: SPF, DKIM and DMARC checks, anti-spam, antivirus and anti-phishing before your inbox.