Skip to content

Ready

Enter a domain on the left and run the test. Results stream in here.

The part of a page you never see in view-source

Every response your server sends starts with a block of HTTP headers, and crawlers read that block before they read a single line of HTML. A noindex sent as a header, a wrong content-type, or a caching rule added by your CDN can change how a page is handled even when the HTML looks perfect. View source does not show any of it, and DevTools only shows it if you open the Network tab and click the right request.

This HTTP header checker shows the live HTTP headers for any URL. It makes one live request to the URL (a HEAD request first, then a GET if the server refuses HEAD or answers it oddly), follows any redirects, and lists every response header the final URL returns. It sorts them into security, SEO, caching and content groups, and checks six common security headers: Strict-Transport-Security, Content-Security-Policy, X-Content-Type-Options, X-Frame-Options, Referrer-Policy and Permissions-Policy. You see the status code, the redirect hops and the raw values, so you can copy them straight into a ticket.

Headers that change how search engines treat a URL

Only a handful of headers affect indexing directly. X-Robots-Tag carries the same directives as the robots meta tag (noindex, nofollow, nosnippet, unavailable_after and so on) and is the only way to send them on files with no HTML head, such as PDFs and images. Our X-Robots-Tag Checker breaks that one header down per crawler. Link can carry rel="canonical", which is how you canonicalize a PDF that is reachable at two addresses. Content-Type tells the crawler what the body is; HTML served as text/plain or application/octet-stream will not be treated as a web page.

Location is the target of a redirect, and Vary tells caches which request headers change the response. Google asks sites that serve different HTML to phones and desktops from one URL to send Vary: User-Agent, so caches do not hand the wrong version to the wrong visitor. Everything else in the list is useful context rather than a ranking input.

Security headers: what they protect and what they do not do

None of the six security headers is a Google ranking factor. HTTPS is the only security-related signal Google has confirmed, and it is a light one. The headers still matter because they protect your visitors and your brand. HSTS stops browsers from ever making an insecure http:// request to your domain after the first visit. CSP limits which scripts can run, which blunts cross-site scripting. X-Content-Type-Options: nosniff stops browsers guessing file types. X-Frame-Options (or CSP frame-ancestors) stops other sites framing yours for clickjacking. Referrer-Policy controls how much of your URL leaks to other sites, and Permissions-Policy switches off browser features you do not use.

If a header is missing, the report says so. For a deeper read of the two complex ones, use the HSTS Checker for max-age and preload eligibility and the CSP Analyzer for directive-by-directive weaknesses. Our guide to security headers and SEO covers the reasoning in more depth.

A healthy response, line by line

Here is what a well-configured HTML page typically returns. Your values will differ, but each line has a reason to be there: a declared charset, a deliberate cache lifetime, compression, a canonical, and the security set.

HTTP/2 200
content-type: text/html; charset=utf-8
cache-control: public, max-age=300, stale-while-revalidate=60
content-encoding: br
vary: Accept-Encoding
link: <https://www.example.com/guide/>; rel="canonical"
strict-transport-security: max-age=63072000; includeSubDomains
content-security-policy: default-src 'self'; frame-ancestors 'self'
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
referrer-policy: strict-origin-when-cross-origin
permissions-policy: camera=(), microphone=(), geolocation=()

Two things to notice. The Vary line lists only Accept-Encoding because this page sends the same HTML to every device. And the cache lifetime on HTML is short (five minutes here), while hashed CSS and JS files would normally get a year with immutable. The Cache-Control Analyzer grades those caching lines in detail.

Caching headers and crawling, without the myths

A common claim is that Cache-Control max-age tells Googlebot when to come back. It does not. Google decides recrawl timing from its own signals, such as how often the page has changed and how important it looks. What Google does support is conditional requests: if your server sends ETag or Last-Modified and correctly answers If-None-Match or If-Modified-Since with 304 Not Modified, Googlebot can skip re-downloading unchanged pages, which saves your server and crawl capacity on large sites.

Caching headers matter more for visitors and CDNs. A dangerous pattern is a page that sets a login cookie and also sends public, max-age=3600: a shared cache can store one person's logged-in page and serve it to the next visitor. If you see Set-Cookie and a long public lifetime on the same HTML response, look closely.

Content-Type and charset slip-ups

For HTML, the header should read text/html; charset=utf-8. Without a declared charset the browser and the crawler have to guess, and a wrong guess turns curly quotes and accented letters into garbage characters. XML sitemaps should come back as application/xml or text/xml, and robots.txt as text/plain. A sitemap served as text/html because of a catch-all rule is a classic reason Search Console cannot read it. Check those files here too, not just your pages.

Finding which layer set a header

Headers can be added or overwritten by your application, your web server, a reverse proxy, a CDN rule, an edge function, or a hosting platform, and they apply in order. When the report shows a value your developers say they never set, it is usually coming from a layer further out. Clues help: cf-ray means Cloudflare is in front, x-vercel-id means Vercel, x-amz-cf-id means CloudFront. Fix the header in the layer that emits it, then run the check again to confirm nothing downstream overwrote your change.

Sample more than the homepage. Check one URL per template (article, product, category), plus the sitemap, robots.txt and a PDF or image if you publish them. Different rules often apply to each, and that is where surprises like a stray noindex on a whole folder hide.

Adding the missing headers on your platform

Nginx

Add headers in the HTTPS server block. The always flag makes sure they are also sent on error pages. Reload with nginx -t followed by systemctl reload nginx.

# inside server { } for the HTTPS site
add_header X-Content-Type-Options "nosniff" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;

# keep PDFs out of the index without touching the files
location ~* \.pdf$ {
  add_header X-Robots-Tag "noindex" always;
}

Apache

With mod_headers enabled, add lines such as Header always set X-Content-Type-Options "nosniff" to your virtual host or .htaccess. For PDFs, wrap Header set X-Robots-Tag "noindex" in a FilesMatch block for \.pdf$.

Cloudflare

Use Rules, then Transform Rules, then Modify Response Header to add or remove headers at the edge without touching the origin. This is also the first place to look when a header appears that your server never sent.

WordPress and Shopify

On WordPress, a security plugin or your host's control panel can add the security headers, or you can set them in the server config if you have access. Shopify sets its own headers and does not let you change most of them, so on Shopify focus on what you control: the HTML, redirects and the robots.txt.liquid template.

When to re-run the check

Headers change silently during deploys. A framework upgrade, a new middleware or a CDN edit can flip a directive without anyone reviewing the HTTP layer. Re-check a short list of key URLs after every release that touches hosting or routing, and after any CDN change. If the status code itself looks wrong, the HTTP Status Checker shows the first and final status side by side.

How it works

  1. Enter Your URL

    Paste any URL you want to inspect. Works for any public web address.

  2. Capture Response Headers

    We make a live HTTP request and capture all response headers your server sends back.

  3. Review Header Analysis

    See every header categorized: security headers, caching directives, content type, and SEO-relevant headers, with status indicators for missing best practices.

Frequently asked

Which HTTP headers affect SEO directly?

›

X-Robots-Tag (can noindex or nosnippet a URL at server level), Link (can carry rel=canonical, the way to canonicalize PDFs), Content-Type (HTML must be served as text/html), Location (the target of a redirect) and Vary (tells caches which request headers change the response). Most other headers are useful context but not ranking inputs.

How is X-Robots-Tag different from the meta robots tag?

›

They accept the same directives, such as noindex, nofollow, nosnippet and unavailable_after. The meta tag lives in the HTML head, so it only works on HTML pages. X-Robots-Tag is sent as a response header, so it also works on PDFs, images and other files. If both are present, Google applies the most restrictive combination.

Are security headers a Google ranking factor?

›

No. HTTPS is the only security-related signal Google has confirmed, and it is a light one. Headers such as HSTS, CSP, X-Frame-Options and Referrer-Policy protect your visitors and reduce the chance of a hack that could hurt your visibility, but adding them does not raise rankings by itself.

Which security headers does this tool check?

›

Six: Strict-Transport-Security, Content-Security-Policy, X-Content-Type-Options, X-Frame-Options, Referrer-Policy and Permissions-Policy. HSTS is only expected on HTTPS pages, so it is not counted as missing on plain HTTP. A CSP frame-ancestors directive counts as clickjacking protection in place of X-Frame-Options.

Why does the tool sometimes use GET instead of HEAD?

›

It tries a HEAD request first because it is quick. Many servers answer HEAD with 403, 405 or 501, or with a server error, so in those cases the tool repeats the request with GET and reports those headers instead. The report shows which method was used.

Does Cache-Control tell Googlebot when to recrawl?

›

No. Google decides how often to recrawl from its own signals, such as how often the page changes. What helps crawling is supporting conditional requests: send ETag or Last-Modified and answer 304 Not Modified when nothing changed, so Googlebot can skip downloading unchanged pages.

Why do I see headers my server never set?

›

Headers can be added or replaced by a reverse proxy, CDN, edge function or hosting platform before the response reaches the visitor. Clues such as cf-ray (Cloudflare), x-vercel-id (Vercel) or x-amz-cf-id (CloudFront) show which layer is in front. Change the header in the layer that emits it, then re-check.

What Content-Type should my pages, sitemap and robots.txt return?

›

Pages: text/html; charset=utf-8. XML sitemaps: application/xml or text/xml. robots.txt: text/plain. A sitemap served as text/html, often caused by a catch-all route, is a common reason Search Console cannot read it.

Related tools

More Technical SEO tools

See all Technical SEO tools · All free SEO tools

Related guides

↳ full site audit190+ checks · AI fix instructions · yearly plans