Skip to main content

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
Free performance toolHow it works

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

HeaderProtects againstWeight
Strict-Transport-SecurityProtocol downgrade, MITMHigh
Content-Security-PolicyXSS, injection, data exfiltrationHigh
X-Frame-OptionsClickjackingMedium
X-Content-Type-OptionsMIME-type sniffingMedium
Referrer-PolicyReferrer data leakageLow
Permissions-PolicyUnwanted feature accessLow

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:

  1. Scan your current headers with the tool above to see what's present, missing, or weak.
  2. Enforce HTTPS, then add HSTS. Once every page works over HTTPS, add Strict-Transport-Security: max-age=31536000; includeSubDomains.
  3. 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.
  4. Add the supporting headers: X-Frame-Options, X-Content-Type-Options: nosniff, Referrer-Policy, and a Permissions-Policy.
  5. 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

Security headers checklist
HeaderRecommended valuePriority
Strict-Transport-Securitymax-age=31536000; includeSubDomainsCritical
Content-Security-PolicyStart report-only, then enforceCritical
X-Frame-OptionsSAMEORIGINHigh
X-Content-Type-OptionsnosniffHigh
Referrer-Policystrict-origin-when-cross-originMedium
Permissions-PolicyRestrict camera, mic, geolocationMedium

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.

FAQ

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?
HTTP security headers are response headers your server sends that instruct the browser how to behave securely - enforcing HTTPS, blocking clickjacking, and preventing content-type sniffing and script injection. They harden your site against common attacks with a few lines of server or CDN configuration.
Which security headers are most important?
Strict-Transport-Security (HSTS) and Content-Security-Policy (CSP) have the biggest impact, followed by X-Frame-Options and X-Content-Type-Options. Referrer-Policy and Permissions-Policy are valuable lower-priority additions.
What does HSTS do?
HTTP Strict Transport Security tells browsers to only ever connect to your site over HTTPS, even if a user types http:// or clicks an insecure link. This prevents protocol-downgrade and man-in-the-middle attacks. Set it only once HTTPS works across your whole site.
Will adding these headers break my site?
Content-Security-Policy can block legitimate resources if it's too strict, so roll it out in report-only mode first and review what it would block before enforcing. The other headers (HSTS, X-Frame-Options, X-Content-Type-Options, Referrer-Policy) are generally safe to add directly.
Does HTTPS alone make my site secure?
No. HTTPS encrypts traffic in transit, but it doesn't stop clickjacking, cross-site scripting, MIME sniffing, or referrer leakage. Security headers add those browser-level protections on top of HTTPS - both layers matter.
Is this security headers checker free?
Yes. It is completely free with no signup and no usage limits. The scan is passive and read-only - it reads the HTTP response headers your server already sends and stores nothing.
What is a good security headers score?
90-100 (A) means a strong posture with only minor hardening left. 80-89 (B) is good but missing a key header or two, usually CSP or HSTS. 65-79 (C) has several gaps, and below 65 (D/F) means core protections are missing - start with HTTPS, HSTS, and CSP.
How do I add security headers to my site?
Set them at your server or CDN. On Nginx use add_header, on Apache use Header set, and on platforms like Cloudflare, Netlify, or Vercel you can define them in a headers configuration file or transform rules. Add HSTS and CSP first, test, then layer in the rest.
How often should I check my security headers?
Re-check after any deployment, server migration, or CDN change, and at least quarterly otherwise. Headers can silently disappear during a redesign or infrastructure change, so a quick re-scan keeps your protections in place.
Is this checker free?
Yes - free, no signup, no limits. The scan is passive and read-only and stores nothing.
What is a good score?
90-100 (A) is strong; 80-89 (B) is good; 65-79 (C) has gaps; below 65 means core protections are missing.
How do I add security headers?
Set them at your server or CDN - Nginx add_header, Apache Header set, or a headers config on Cloudflare/Netlify/Vercel. Add HSTS and CSP first.
How often should I check?
After any deployment, migration, or CDN change, and at least quarterly - headers can silently disappear during a redesign.

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
Browse all performance tools