HTTP security headers checker
Paste the response headers from any website and see which security headers it sends, what each one does, and what to fix. The check runs in your browser and nothing is uploaded.
Get them with curl -sI https://example.com, or from the Network tab of your browser’s developer tools.
Headers we read
What the checker looks at
The grade is based on seven headers that browsers use to protect visitors. Each missing or weak one costs points, and the report explains why. It also flags headers that give away software versions, cookies sent without protective flags, and old headers that browsers no longer support.
| Header | What it does | A sensible value |
|---|---|---|
Strict-Transport-Security | Tells browsers to use HTTPS only, for a set time, so nobody on the network can downgrade a visit to plain HTTP. | max-age=31536000; includeSubDomains |
Content-Security-Policy | Lists where scripts, styles, images and frames may load from. The strongest defence against cross-site scripting (XSS). | default-src 'self'; object-src 'none'; frame-ancestors 'self' |
X-Content-Type-Options | Stops the browser guessing a file’s type, so an uploaded text file can’t be run as a script. | nosniff |
X-Frame-Options | Stops other sites showing your pages in a frame, the trick behind clickjacking. CSP frame-ancestors is the modern version. | SAMEORIGIN |
Referrer-Policy | Controls how much of the page address is sent to other sites when a visitor follows a link. | strict-origin-when-cross-origin |
Permissions-Policy | Switches off browser features the site doesn’t use, such as the camera, microphone or location. | camera=(), microphone=(), geolocation=() |
Cross-Origin-Opener-Policy | Separates your page from windows opened by other sites, which blocks some cross-window attacks. | same-origin |
How the grade works
Every site starts at 100. Missing Strict-Transport-Security or Content-Security-Policy costs 25 points each, and each of the other five headers is worth 5 to 10. A CSP that allows 'unsafe-inline' or 'unsafe-eval' scripts, or an HSTS max-age under six months, loses part of its credit. Version numbers in Server or X-Powered-By, and cookies without Secure, HttpOnly or SameSite, cost a few more. 90 and above is an A, with A+ for a perfect score; under 30 is an F.
A grade is a starting point, not a verdict. A site with no logins or forms gains little from a strict CSP, while a banking site with an A may still have bugs no header can fix. Headers are a cheap, effective layer, so it is worth getting them right.
Why there is no address box
Most header checkers ask for a URL. Behind the scenes their server fetches the page and reports what came back, which means they see every address you check. Browsers do not let a web page read another site’s headers directly, so this tool works the other way round: you fetch the headers yourself, with one terminal command or your browser’s developer tools, and paste them in. Nothing leaves your device, and you can check internal or staging sites that no outside service could reach.
The “Try it on this page” button is the one exception: a page may always read the headers of its own site, so it asks vnunet.com for this page again and grades the reply.
Adding the headers to your own site
On Apache, add Header always set lines to the site configuration or .htaccess. On nginx, use add_header … always; in the server block. Static hosts such as Cloudflare Pages and Netlify read a _headers file, Firebase Hosting uses the headers section of firebase.json, and Vercel uses vercel.json. Add a Content-Security-Policy last, starting with Content-Security-Policy-Report-Only so you can see what it would block before it breaks anything.
Questions
Why can’t I just type a web address?
Browsers deliberately stop a page on one site from reading the response headers of another site, under the same-origin policy and CORS. Any checker that takes a URL is really a server making the request for you. This page has no server, so it never sees what you check: you paste the headers, and the analysis happens in your browser.
How do I get a site’s response headers?
From a terminal, run curl -sI https://example.com (replace the address) and copy everything it prints. In Chrome, Edge or Firefox, open developer tools (F12), go to the Network tab, reload the page, click the first request and copy the Response Headers section. Both methods work for any site.
Which security headers matter most?
Strict-Transport-Security and a Content-Security-Policy do the most, followed by X-Content-Type-Options: nosniff and protection against framing (X-Frame-Options or CSP frame-ancestors). Referrer-Policy and Permissions-Policy are quick wins that protect visitors’ privacy.
Should I still send X-XSS-Protection?
No. It switched on an XSS filter that only old browsers had, and the filter itself could be abused. Modern Chrome, Edge and Firefox ignore it. Remove it, or send X-XSS-Protection: 0, and rely on a Content-Security-Policy instead.
Is it bad to show the Server or X-Powered-By header?
It is not a vulnerability by itself, but a header such as “Server: Apache/2.4.29” or “X-Powered-By: PHP/7.2.1” tells an attacker exactly which old version to look up. Hide version numbers, or drop the header.
Securing logins too? Our password generator and password entropy calculator run in your browser the same way.