Skip to content

HTTP Header Checker

View the raw response headers a URL sends, hop by hop, and see which security, caching and indexing headers are missing or misconfigured.

What response headers tell you

Every HTTP response starts with a status line and a set of headers before the page content. Browsers, CDNs and search engines act on them, but they never appear in the page source, which is why problems in them go unnoticed:

HTTP/2 200
content-type: text/html; charset=utf-8
cache-control: public, max-age=0, must-revalidate
content-encoding: br
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-robots-tag: noindex          ← invisible in the HTML, blocks indexing

Recommended security headers

HeaderTypical valueProtects against
Strict-Transport-Securitymax-age=31536000; includeSubDomainsDowngrade to http:// and cookie theft on public Wi-Fi
Content-Security-PolicySite-specific, e.g. default-src 'self'Cross-site scripting and unwanted third-party code
X-Content-Type-OptionsnosniffBrowsers treating uploads or text as scripts
X-Frame-Options or frame-ancestorsSAMEORIGIN / frame-ancestors 'self'Clickjacking through hidden frames
Referrer-Policystrict-origin-when-cross-originLeaking full URLs and query strings to other sites
Permissions-Policycamera=(), microphone=(), geolocation=()Embedded content using device features

Add HSTS only once the whole site, including subdomains if you use includeSubDomains, works over HTTPS, because browsers will refuse plain HTTP for the full max-age. Roll out a Content-Security-Policy in report-only mode first, since a strict policy can block your own scripts.

Caching and compression headers

  • Cache-Control: max-age=31536000, immutable suits files with a version or hash in the name, such as app.3f9a1.js; they never change at that URL.
  • Cache-Control: no-cache suits HTML: the browser keeps a copy but checks with the server first, which costs little when ETag or Last-Modified lets the server answer 304.
  • no-store is for private or personal pages that must never be saved.
  • Content-Encoding: br or gzip on HTML, CSS, JavaScript and JSON. Brotli is usually smaller than gzip for text.
  • Vary: Accept-Encoding stops a CDN serving compressed content to a client that can't decode it.

The checker requests compressed content the way browsers do, so a missing Content-Encodingon a text file means the server isn't compressing it.

Headers that affect indexing

  • Status code: only 200 pages are indexed. Repeated 5xx or 429 responses make Googlebot slow down crawling.
  • X-Robots-Tag: noindex here works like the robots meta tag, and also applies to PDFs and images. Check it on any page that unexpectedly drops out of search.
  • Link: <…>; rel="canonical": the way to set a canonical for files that have no <head>, such as PDFs.
  • Redirect hops: each one is listed above. For a full redirect audit across many URLs, use the Redirect Checker.

Setting headers on your server

# Apache (.htaccess, needs mod_headers)
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
Header always set X-Content-Type-Options "nosniff"
Header always set Referrer-Policy "strict-origin-when-cross-origin"
Header always set X-Frame-Options "SAMEORIGIN"
Header unset X-Powered-By

# Nginx (server block)
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header X-Frame-Options "SAMEORIGIN" always;
server_tokens off;

In Nginx, add_header inside a location block replaces headers set at the server level, rather than adding to them, a common reason a header appears on some URLs and not others. Hosted platforms such as Vercel, Netlify and Cloudflare have their own header settings; test the live URL here after changing them.

Frequently asked questions

How do I check the HTTP headers of a website?

Enter the URL and click Check headers. The tool requests the page from our server and shows the raw response headers for every hop, including redirects, then explains the security, caching and SEO-related ones. In a browser you can also open DevTools, go to the Network tab, reload, and click the first request.

Which security headers should every site have?

At minimum: Strict-Transport-Security to force HTTPS, X-Content-Type-Options: nosniff, protection against framing with X-Frame-Options or CSP frame-ancestors, and a Content-Security-Policy. Referrer-Policy and Permissions-Policy are useful additions.

Should I still use X-XSS-Protection?

No. Modern browsers have removed the XSS auditor that this header controlled, and in older browsers it could introduce vulnerabilities. OWASP recommends either omitting it or setting X-XSS-Protection: 0, and relying on a Content-Security-Policy instead.

What is the difference between no-cache and no-store?

no-store means the response must not be saved anywhere. no-cache means it can be saved, but must be revalidated with the server before each use, which is cheap when the server supports ETag or Last-Modified and answers 304 Not Modified.

Do HTTP headers affect SEO?

Some do directly. X-Robots-Tag can block indexing, a Link header can declare a canonical URL, and the status code decides whether a page is indexed at all. Caching and compression headers affect page speed, which feeds into Core Web Vitals.

Why do GET and HEAD give different results?

A HEAD request should return the same headers as GET without the body, but some servers, CDNs and frameworks handle HEAD differently or block it. If results differ, trust GET, because that is what browsers and crawlers send.

Related Tools

  • Redirect Checker — Trace 301 and 302 redirect chains hop-by-hop, detect loops, inspect response headers and verify HTTPS migrations.
  • Meta Tag Checker — Check a page's title, meta description, robots directives, canonical, viewport and hreflang tags, with a Google result preview and a fix for each issue.
  • Robots.txt Tester & Generator — Test URLs against a live or pasted robots.
  • llms.txt Generator & Validator — Create an llms.
  • SEO Title Checker — Check a title tag for length, keyword position and truncation, preview it in desktop and mobile results, and get a 0–100 headline score.
  • Schema Markup Generator — Generate valid JSON-LD structured data for 31 schema types — Article, Product, FAQ, Local Business, Organization, Review and more.