HTTP Header Checker

Response headers, redirects and security headers of any URL, live.

What Are HTTP Response Headers?

HTTP headers are the extra lines a server sends with every page: status code, caching rules, redirects and security settings such as HSTS and Content-Security-Policy. Enter a URL to see them, follow its redirects (where a link really goes) and get a security grade from a security headers check.

They're metadata the server sends before the page: what it is, how long to cache it, where to redirect and which browser protections to apply.

Diagram: a browser sends a request with headers and the website answers with response headers such as status 200 OK, content type, caching and security rules, before the page
Headers are the label on the parcel; this tool shows the response headers.
HeaderWhat it says
content-typeWhat the page is (HTML, JSON, image) and its character set
cache-controlHow long browsers and CDNs may keep a copy
locationWhere a redirect points
content-encodingCompression used (gzip, br)
set-cookieCookies, with their security flags (check them with the cookie test)
server, x-powered-byThe software; versions here help attackers, so many sites hide them

How to Check Redirects (301, 302, 307, 308)

A 301/308 is a permanent move (it passes SEO value), 302/307 temporary; keep chains to one hop and always end on HTTPS.

CodeMeaningUse it for
301 Moved PermanentlyPermanent; browsers may cache it; search engines move the rankinghttp → https, old page → new page, non-www ↔ www
308 Permanent RedirectLike 301, but keeps the method (POST stays POST)Permanent moves of forms or APIs
302 FoundTemporary; the old address stays the one that countsShort campaigns, A/B tests, maintenance
307 Temporary RedirectLike 302, but keeps the methodTemporary moves of forms or APIs
303 See OtherGo and GET another pageAfter a form is submitted

Enter the exact address you want to test, with its path (http://example.com/old-page), to see where it ends. Common problems the result flags: chains of three or more redirects, http that doesn't go to https, temporary redirects used for permanent moves, and loops.

Security Headers: What to Set

Six headers block common attacks: HSTS, Content-Security-Policy, X-Frame-Options (or frame-ancestors), X-Content-Type-Options, Referrer-Policy and Permissions-Policy.

Diagram of four security headers and the attacks they stop: HSTS, Content-Security-Policy, X-Frame-Options and X-Content-Type-Options
Each header turns on a protection in the browser.
HeaderStopsStarting value
Strict-Transport-Security Downgrade to HTTP and cookie theft on public Wi-Fi max-age=31536000; includeSubDomains
Content-Security-Policy Injected scripts (cross-site scripting) default-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self'
X-Frame-Options Clickjacking: your page inside another site's frame SAMEORIGIN
X-Content-Type-Options Files run as a different type than declared nosniff
Referrer-Policy Full addresses (with tokens) leaking to other sites strict-origin-when-cross-origin
Permissions-Policy Embedded content using camera, microphone or location camera=(), microphone=(), geolocation=()

In Nginx: add_header Name "value" always; in the server block. In Apache: Header always set Name "value" (mod_headers). On Cloudflare: Rules › Transform Rules, a response header rule. Most site builders and CDNs have a similar setting.

What Our Grade Means

A means all six protections are present with safe values; each missing one lowers the grade.

GradeRule
AAll six checks pass
BScore 5 or more (a pass counts 1, a weak value 0.5)
CScore 3.5 or more
DScore 2 or more
FScore below 2, or the final page isn't on HTTPS

"Weak" means present with a risky value: HSTS shorter than 180 days, a CSP that allows 'unsafe-inline' without a nonce or 'strict-dynamic', an unusual X-Frame-Options value, or Referrer-Policy unsafe-url. A CSP sent only as Content-Security-Policy-Report-Only counts as missing: it only monitors violations and blocks nothing. The grade covers headers only: check the certificate with the SSL checker and cookies with the cookie test.

Do it yourself

How to See Headers Yourself

curl -I https://example.com shows headers; add -L to follow redirects; in a browser use DevTools › Network.

Any platform curl

curl -sIL http://example.com

-I asks for headers only, -L follows redirects and prints each step, -s hides the progress bar. curl is built into Windows 10 and 11, macOS and Linux.

Windows PowerShell

(Invoke-WebRequest https://example.com -Method Head).Headers

Browser DevTools

Press F12, open the Network tab, reload, click the first request and look at Response Headers. Tick "Preserve log" to keep the redirect steps.

How This Checker Works

ItemDetail
RequestFrom our server (AWS, N. Virginia, USA). HEAD first; GET when the server refuses HEAD (the page body isn't read). Browser-like User-Agent.
StartA domain starts at https://domain/ (then http:// if HTTPS doesn't answer) and we also check where http://domain/ leads; a full address starts exactly there.
RedirectsFollowed one by one, up to 5, each checked so it can't lead to a private or internal address. Loops are detected.
Security checksSix headers with simple value rules; grade rules above.
StorageResults aren't saved. Links with ?url= rerun the check and aren't indexed by search engines.
Last verified10 November 2026

Frequently Asked Questions

How do I check a website's HTTP headers?
Enter the address above: we request it from our server and show every response header, the redirects and a security grade. In a terminal, curl -I https://example.com prints the headers.
How do I check redirects?
Enter the starting address, for example http://example.com/old-page: we follow every redirect (up to 5) and show each step with its status code and time, and warn about loops, long chains and temporary redirects.
What is the difference between a 301 and a 302 redirect?
A 301 is permanent: browsers may cache it and search engines move the old page's ranking to the new address. A 302 is temporary: the old address stays the one that counts. 308 and 307 are the same pair but keep the request method (a form POST stays a POST).
Which security headers should every site have?
Strict-Transport-Security (HSTS), Content-Security-Policy, X-Content-Type-Options, protection against framing (X-Frame-Options or CSP frame-ancestors), Referrer-Policy and Permissions-Policy. The result gives a ready line for Nginx and Apache for each missing one.
What is a CSP header?
Content-Security-Policy tells the browser which sources of scripts, styles, images and frames the page may use, so a script injected by an attacker doesn't run. Start in report-only mode: a strict policy can block your own scripts.
Why are some headers missing from the result?
The server didn't send them to our request, or a CDN or proxy removed or added them on the way. Some servers also answer a HEAD request with fewer headers; we retry with GET when HEAD is refused. The result shows what reached our server.

Next steps

Related Tools

SSL Certificate Checker
Expiry, issuer and chain of a site's certificate.
Secure Cookie Test
Secure, HttpOnly and SameSite flags of a site's cookies.
HTTP/2 Test
Check whether a website supports HTTP/2.
Brotli Test
Does a website compress its pages with Brotli?
Website to IP Lookup
Every IPv4 and IPv6 address of a website, and who runs it.