HTTP Header Checker |
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.
| Header | What it says |
|---|---|
content-type | What the page is (HTML, JSON, image) and its character set |
cache-control | How long browsers and CDNs may keep a copy |
location | Where a redirect points |
content-encoding | Compression used (gzip, br) |
set-cookie | Cookies, with their security flags (check them with the cookie test) |
server, x-powered-by | The 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.
| Code | Meaning | Use it for |
|---|---|---|
| 301 Moved Permanently | Permanent; browsers may cache it; search engines move the ranking | http → https, old page → new page, non-www ↔ www |
| 308 Permanent Redirect | Like 301, but keeps the method (POST stays POST) | Permanent moves of forms or APIs |
| 302 Found | Temporary; the old address stays the one that counts | Short campaigns, A/B tests, maintenance |
| 307 Temporary Redirect | Like 302, but keeps the method | Temporary moves of forms or APIs |
| 303 See Other | Go and GET another page | After 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.
| Header | Stops | Starting 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.
| Grade | Rule |
|---|---|
| A | All six checks pass |
| B | Score 5 or more (a pass counts 1, a weak value 0.5) |
| C | Score 3.5 or more |
| D | Score 2 or more |
| F | Score 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
| Item | Detail |
|---|---|
| Request | From our server (AWS, N. Virginia, USA). HEAD first; GET when the server refuses HEAD (the page body isn't read). Browser-like User-Agent. |
| Start | A 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. |
| Redirects | Followed one by one, up to 5, each checked so it can't lead to a private or internal address. Loops are detected. |
| Security checks | Six headers with simple value rules; grade rules above. |
| Storage | Results aren't saved. Links with ?url= rerun the check and aren't indexed by search engines. |
| Last verified | 10 November 2026 |
Frequently Asked Questions
How do I check a website's HTTP headers?
curl -I https://example.com prints the headers.How do I check redirects?
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?
Which security headers should every site have?
What is a CSP header?
Why are some headers missing from the result?
Next steps