VulnerabilityTools
Scanner Tools 98
Security headers checkerGrade HSTS, CSP and moreMalware scannerSpam, miners and blocklistsWordPress scannerCore, plugins and themesIs my site hacked?Warning signs and fixesScan vs pentestWhich one you need
How it works About Contact
Free scan
← Back to scanner

Website Security Headers Checker

Test your website's security headers in seconds. Get a clear grade, see exactly which protections are missing, and fix them with copy-paste examples, free, no signup.

Sends one normal page request (plus one http:// request to test the redirect) and reads the response. Only check sites you own or manage.

What security headers are, in plain language

Every time someone visits your site, your server sends invisible instructions along with the page. Security headers are a set of those instructions that tell the visitor's browser how to behave safely: don't let other sites embed this page, only load scripts from approved sources, always use the encrypted connection, and so on.

Think of them as your site's first line of defense. They cost nothing, they don't slow anything down, and they block entire categories of attacks automatically. Yet a large share of small-business sites are missing most of them, which is exactly why automated attacks check for them first.

The 6 headers that matter most

  • Strict-Transport-Security (HSTS). Tells browsers to only connect over HTTPS, stops attackers downgrading visitors to an unencrypted connection.
  • Content-Security-Policy (CSP). Declares which sources may load scripts and images, the strongest defense against cross-site scripting (XSS).
  • X-Frame-Options. Prevents other sites from embedding your pages in frames, blocks clickjacking attacks.
  • X-Content-Type-Options. Stops browsers guessing file types prevents attackers smuggling code inside innocent-looking files.
  • Referrer-Policy. Controls how much of your page address is shared on outbound clicks, protects visitor privacy.
  • Permissions-Policy. Switches off browser features you don't use (camera, microphone, geolocation), less for attackers to abuse.

How the grading works

Our checker grades your headers from A+ to F. The base score covers the six key headers and whether each one is configured correctly, so a weak header (for example, HSTS with a short max-age) scores lower than a correct one.

We then go deeper than most header checkers:

  • Content-Security-Policy review. Every directive is checked the way Google's CSP Evaluator does it: unsafe-inline, wildcards, plain http sources, missing object-src and base-uri, and allowed hosts with known bypasses. We also find a policy set in a <meta> tag.
  • Cookie flags. Every cookie the page sets is checked for Secure, HttpOnly and SameSite. A login cookie without Secure lowers the grade to B at most.
  • CORS and cross-origin isolation. A wildcard CORS policy with credentials is flagged as dangerous.
  • HSTS preload readiness, including the http to https redirect.

An A+ means all six headers are set correctly, the CSP has no serious weakness, and your cookies are safe. Fixes come ready to paste for nginx, Apache, IIS, Cloudflare Pages, Netlify, Vercel, Express, WordPress and Caddy.

How to add missing headers

Choose the route that matches your setup. After making changes, rescan to confirm the new grade.

Apache (.htaccess), add near the top of the file:

Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
Header always set X-Frame-Options "SAMEORIGIN"
Header always set X-Content-Type-Options "nosniff"
Header always set Referrer-Policy "strict-origin-when-cross-origin"
Header always set Permissions-Policy "camera=(), microphone=(), geolocation=()"

Nginx, add inside your server block:

add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;

WordPress (no server access), a reputable security plugin can send these headers for you; enable its "security headers" feature and verify with a rescan. Start with everything except a strict CSP, which needs tuning per site (see common mistakes below).

Content-Security-Policy deserves care: begin in report-only mode so violations are logged, not blocked, then tighten the policy once you know what your site legitimately loads.

Why headers alone aren't enough

A perfect header grade with an outdated plugin or an exposed database backup is still an exposed site. Headers are one layer, essential, but one layer. They don't patch vulnerable software, close exposed files, or remove malware that's already there.

That's why our free scan checks all seven sections in one run: active vulnerability testing, security headers, technology fingerprinting, malware and blocklist status, technical SEO, on-page SEO and speed. Fix the headers, then let the full report show you everything else.

Common mistakes to avoid

  • CSP too permissive. A policy of default-src * looks like protection but allows everything, barely better than no policy.
  • HSTS without an HTTPS redirect. HSTS only helps visitors who already reached you over HTTPS once. Keep the http→https redirect in place too.
  • Short HSTS max-age. Values under a year offer little lasting protection; 31536000 seconds (one year) is the standard.
  • Forgetting subdomains. Without includeSubDomains, your subdomains stay unprotected.
  • Setting headers on the CDN but not the origin (or vice versa) attackers will find the unprotected path. Verify the final, public response.

Fixed your headers? Run the free full scan, headers plus the other six sections, one plain-language report.

Scan your website free

Frequently asked questions

Do security headers affect SEO?

Indirectly, yes. HTTPS is a confirmed ranking signal and HSTS only works on HTTPS sites. More importantly, a hacked site loses rankings fast, headers are cheap prevention.

Do security headers slow down my site?

No. Headers are a few bytes sent with each response. HSTS can actually make repeat visits slightly faster by skipping the HTTP-to-HTTPS redirect.

How often should I recheck my headers?

After any server, CDN, or hosting change, those are the moments headers silently disappear. Otherwise, include a headers check in your regular monthly security scan.

Can adding security headers break my website?

A strict Content Security Policy can block legitimate scripts, embeds, or fonts if written too tightly, test on a staging site first. The other headers on this page are safe to add as shown.

What is a good security headers grade?

Aim for an A or A+: all six key headers present and correctly configured, plus a strong CSP and safe cookies for A+. A B usually means one header missing or slightly misconfigured, still worth fixing, since attackers automate against exactly these gaps.

Are security headers enough to protect my site?

No, they're one layer. Headers stop entire classes of browser-based attacks, but they don't patch vulnerable software or close exposed files. Run the full scan to check everything else.

Free, private, no signup

Is your website safe right now?

Run the free scan and get a scored report for vulnerabilities, malware, headers, SEO and speed in about a minute.

Scan my website Browse 98 tools
VulnerabilityTools

Free website security scanner plus 98 free tools. One clear report for vulnerabilities, malware, security headers, SEO and speed.

  • No signup
  • Private reports
  • PDF export

Scanner

  • Free website scan
  • How it works
  • SEO audit
  • FAQ

Tools

  • All 98 tools
  • Security & Domain
  • SEO
  • Content & Text
  • Developer

Security guides

  • WordPress scanner
  • Is my site hacked?
  • Headers checker
  • Malware scanner
  • Scan vs pentest

Company

  • About
  • Contact
  • Privacy Policy
  • Terms & Conditions
  • Disclaimer
© 2026 VulnerabilityTools.com. All rights reserved. Only scan websites you own or have permission to test. Back to top