Security headers checker: is your site hardened?
Check your HTTPS setup and HTTP security headers (HSTS, CSP, X-Frame-Options) and get a graded report with fixes.
- No signup required
- We read response headers. No data is stored.
- Results in seconds
We read your site's response headers. No data is stored.
How the security score works
A security headers checker reads the HTTP response headers your server sends. It then grades how well your site is hardened against common web attacks. Four headers matter most. HSTS forces HTTPS. Content-Security-Policy blocks injected code. X-Frame-Options stops clickjacking. X-Content-Type-Options stops MIME sniffing.
What each header protects against
| Header | Protects against | Weight |
|---|---|---|
| Strict-Transport-Security | Protocol downgrade, MITM | High |
| Content-Security-Policy | XSS, injection, data exfiltration | High |
| X-Frame-Options | Clickjacking | Medium |
| X-Content-Type-Options | MIME-type sniffing | Medium |
| Referrer-Policy | Referrer data leakage | Low |
| Permissions-Policy | Unwanted feature access | Low |
How to add security headers (step by step)
Security headers are set at your web server or CDN, not in your page HTML. The exact syntax varies by platform, but the order of operations is the same everywhere:
- Scan your current headers with the tool above to see what's present, missing, or weak.
- Enforce HTTPS, then add HSTS. Once every page works over HTTPS, add
Strict-Transport-Security: max-age=31536000; includeSubDomains. - Add a Content-Security-Policy in report-only mode. Watch the reports it sends. Fix anything real that it would block. Then switch it on for good.
- Add the supporting headers:
X-Frame-Options,X-Content-Type-Options: nosniff,Referrer-Policy, and aPermissions-Policy. - Re-scan to confirm the headers are live and your grade improved.
On Nginx use add_header, on Apache use Header set, and on Cloudflare, Netlify, or Vercel define them in a headers config file or transform rule. See the OWASP Secure Headers Project and MDN's HTTP headers reference for exact directives.
Why security headers matter for trust and SEO
The website breaches that do real damage rarely use a clever zero-day. They use basic settings left wrong. A missing Content-Security-Policy lets an injected script run and steal data. Cookies with no flags on them get hijacked.
A site that can be framed is open to clickjacking. Security headers shut down whole classes of attack for the cost of a few lines of config. Few things you can do for a site pay back as well.
There is an SEO and trust side to this too. HTTPS is a confirmed Google ranking signal. A site that gets hacked or blacklisted can be dropped from search results until it is cleaned up.
More and more visitors notice browser security warnings. A "Not Secure" label, right at the moment of choice, quietly kills sales. Hardening your headers guards rankings, trust, and revenue at once.
Security headers checklist
| Header | Recommended value | Priority |
|---|---|---|
| Strict-Transport-Security | max-age=31536000; includeSubDomains | Critical |
| Content-Security-Policy | Start report-only, then enforce | Critical |
| X-Frame-Options | SAMEORIGIN | High |
| X-Content-Type-Options | nosniff | High |
| Referrer-Policy | strict-origin-when-cross-origin | Medium |
| Permissions-Policy | Restrict camera, mic, geolocation | Medium |
How to read your security grade
90-100 (A): Strong posture. Keep an eye out for regressions after deployments.
80-89 (B): Good - usually a missing CSP or HSTS away from an A.
65-79 (C): Several headers missing; work the prioritized fixes in the report.
Below 65 (D/F): Under-hardened. Start with HTTPS, HSTS, and a Content-Security-Policy.
For developers and agencies
If you build or maintain sites for clients, this checker is a fast pre-launch and audit step. Run it before every go-live, and after any change to hosting.
It is free with no usage limits, so you can fold it into QA checklists and client reports. A clean set of headers is also an easy win you can show a client early on.
Need headers baked into your stack, a hardened CSP that doesn't break third-party scripts, or a full security and code-health review? Talk to our engineers.
Security headers are cheap insurance
Most security headers are one line in your server or CDN config. Yet they block whole classes of attack: clickjacking, downgrades, MIME mix-ups, and many cross-site scripting routes. They cost nothing to add, and they raise the bar for anyone attacking you.
Start with HSTS and CSP
If you only do two things, enable HSTS to lock visitors onto HTTPS, and add a Content-Security-Policy to control what scripts and resources can load. Roll CSP out in report-only mode first so you can see what it would block before enforcing it.
Try these next
Browse all performance tools- Website Security ScannerIs your website safe?
- Tracker & Cookie ScannerWhat trackers does your site run?
- Website Tech Stack CheckerWhat is this site built with?
- Website Down CheckerIs it down for everyone, or just you?
- Free Website GraderScore your whole site in seconds
- Responsive Design CheckerPreview any site at every screen size
Guides on this topic
Your questions, answered
Have a question about your project? Ask us on a free call, and we'll give you a straight answer.
What are HTTP security headers?
Which security headers are most important?
What does HSTS do?
Will adding these headers break my site?
Does HTTPS alone make my site secure?
Is this security headers checker free?
What is a good security headers score?
How do I add security headers to my site?
How often should I check my security headers?
Is this checker free?
What is a good score?
How do I add security headers?
How often should I check?
Tell us about your project
Tell us what you're building, when you need it, and what's in the way. A senior engineer will reply within one business day with honest next steps, even if that means we're not the right fit.
- Your project is led by a senior engineer, not a junior and not AI on its own
- AI speeds up the build. Every change is reviewed and tested before it ships
- Best for MVPs, SaaS products, automation, and fixing apps that keep breaking
