Security headers checker: grade your site's HTTP headers
A few response headers tell browsers to stick to https, which scripts to trust and who may frame your page. Paste a page and we’ll check them, grade the result and give you the header lines to add.
We read the page once, as AppFinderBot, and store nothing.
The checks and how the grade works
Strict-Transport-Security. Tells browsers to use https only. A max-age of a year (365 days) or more is good, six months is worth a look, less needs fixing. includeSubDomains and preload are noted. (20 points, 10 for six months to a year.)
Content-Security-Policy. Limits where scripts load from. We flag 'unsafe-inline' (unless a nonce, hash or 'strict-dynamic' makes browsers ignore it), 'unsafe-eval', wildcard sources, and a missing object-src 'none' or base-uri. A Report-Only policy counts as not enforced. (25 points; 20 without object-src or base-uri, 10 with weak script rules, 5 for Report-Only.)
Framing. CSP frame-ancestors, or X-Frame-Options DENY or SAMEORIGIN, so other sites can't frame the page to trick clicks. (10 points.)
X-Content-Type-Options. nosniff, so browsers don't guess file types. (10 points.)
Referrer-Policy. Set, and not unsafe-url or no-referrer-when-downgrade, which send full addresses to other sites. (10 points, 5 when not set (browsers have a safe default).)
http to https redirect. Plain http://your-domain/ should redirect to https. We request it once and follow http-only redirects until the first https address. (10 points, 5 for an odd answer; left out when we can't reach it.)
Permissions-Policy. Turns off browser features the site doesn't use. Optional. (5 points.)
Cross-Origin-Opener-Policy. Keeps other sites' windows from reaching into this one. Optional. (5 points.)
Cookies. Every cookie the page sets should have Secure and SameSite, and HttpOnly unless your JavaScript must read it. We show names only, never values. (5 points, 2 when only SameSite or HttpOnly is missing; left out when there are no cookies.)
Software versions. Server with a version number, X-Powered-By, X-AspNet-Version and X-AspNetMvc-Version: worth removing. (listed, not scored.)
X-XSS-Protection. No longer needed: best left out or set to 0. (listed, not scored.)
“Worth a look” earns the partial points shown, “Fix this” earns none. The grade is your share of the points that could be measured: A+ from 90%, A from 85%, B from 70%, C from 55%, D from 40%, F below that. An A+ also needs every core check (HSTS, CSP, framing, nosniff, Referrer-Policy and, when we can reach it, the https redirect) to be good.
We see only the headers of the one page you name, as they reach us. Headers set on other pages, policies added by JavaScript or in a meta tag, and anything a CDN or proxy adds or strips for browsers but not for us aren’t seen. The grade is a quick read on these headers, not a security audit.
Security headers: common questions
- What is HSTS preload, and should I add it?
- Browsers ship with a list of domains that are only ever loaded over https, even on the first visit. To join it, your Strict-Transport-Security header needs a max-age of at least one year, includeSubDomains and preload, and you submit the domain at hstspreload.org. It's a commitment: every subdomain must serve https, and getting off the list takes months. If you're not sure, leave preload out; HSTS works without it.
- Will a Content-Security-Policy break my site?
- It can, if it blocks scripts, styles or fonts the site needs. That's why it's best to start with Content-Security-Policy-Report-Only: the browser reports what it would block and blocks nothing. Fix or allow what shows up, then send the same policy as Content-Security-Policy. Frameworks such as Next.js can add a nonce to their own scripts, which lets you avoid 'unsafe-inline'.
- Do I still need X-XSS-Protection?
- No. Current browsers have removed the filter it controlled, and in older ones the filter could be abused to leak or hide parts of a page. OWASP and MDN suggest leaving it out or setting it to 0, and using a Content-Security-Policy instead.
- Does a better grade help my search rankings?
- Not directly: search engines don't rank pages by these headers. https itself is a light ranking signal, and a hacked site loses visitors and trust quickly, so the headers protect your search traffic indirectly. Set them for your visitors' safety, not for SEO.
- Why does my grade differ from another scanner's?
- Every scanner weighs headers differently, and the page lists exactly how this one does. Results can also differ because a CDN or proxy adds or removes headers, because some headers are set only on certain pages, or because a site answers bots differently from browsers.
- Is anything about my page stored?
- No. We read the page once, as AppFinderBot, show you the result and keep nothing.
More free tools: Tech stack checker · Email setup checker · Dofollow link checker · OG image generator · All tools