Security

HTTP headers explainer

Paste a response's headers to see what each one does and which security headers are missing or risky.

Runs in your browserNothing you paste is sent anywhere

Paste them exactly as you copied them. One header per line.

0 B of 64 KB

Paste some headers to start.

Or press Try an example and I’ll fill it in for you.

How to copy your headers

curl -sI https://example.com

This asks for the headers only. I never open the URL myself: you paste what you got.

Add -L to follow redirects; I read the last response.

What it does

It reads the response headers you paste and explains every one of them in plain English. Headers it doesn't know get an honest "I don't know this one" instead of a guess. Then it checks the security headers and marks each one good, missing or risky: Strict-Transport-Security, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, Cross-Origin-Opener-Policy and X-Frame-Options. It takes the Content-Security-Policy apart directive by directive, flags 'unsafe-inline', 'unsafe-eval' and wildcards, and says which important directives are missing. It looks at each cookie's flags and at CORS, and tells you what a browser and what a shared cache such as a CDN will do with the response. There is no letter grade, because a score hides the one thing you actually need to fix.

How to use it

Copy the headers from a terminal with curl -sI https://example.com, or from the Network tab of your browser's developer tools, and paste them into the box. Press Try an example if you just want to see it work. Read the risky findings first, then the missing ones. I never open the URL myself: you paste what you got, so it works just as well on a staging site behind a login.

How I built it

The parser is a small piece of plain TypeScript. It accepts the status line or no status line, keeps repeated headers like Set-Cookie in order, matches names without caring about case, and copes with what curl and browsers actually produce, redirect chains included. Each check is a pure function with tests that run on real-looking pastes, this site's own headers among them, and yes, my own policy gets a risky mark for inline scripts. A test also scans the tool's code for anything that could send your paste away, which is how "Nothing you paste is sent anywhere" stays true.