Home / Blog / How to Check Website Security Headers
Guides โ€ข 7 min read โ€ข Updated October 2026

How to Check Website Security Headers Online for Free (2026 Guide)

When your browser loads a website, the visible page is only half the conversation. Behind the scenes, the server also sends HTTP security headers โ€” invisible instructions that tell the browser how to behave: only use encrypted connections, don't let this page be framed by other sites, block unexpected script sources. They're one of the cheapest, most effective defenses a site owner can deploy, and they're completely invisible to visitors. This guide shows you how to audit any site's headers with our free Security Headers Checker, what each header means in plain English, and what to do with the results.

What are security headers?

Every web response carries headers โ€” small key/value metadata lines sent before the page content. Most are mundane (content type, caching). Security headers are the subset that harden the browser's behavior for that site. They cost nothing to send, require no user action, and mitigate entire classes of attacks: eavesdropping, clickjacking, cross-site scripting, and content-type confusion. A site missing them isn't necessarily "hacked" โ€” but it's leaving free protection on the table.

Step 1: Enter the website's URL

Open the Security Headers Checker and type a website address โ€” example.com works fine as a test. You can check any public site: your own, your employer's, or one you're just curious about. Checking headers is a normal, harmless diagnostic โ€” you're only reading the same public response headers any browser receives.

Step 2: Run the check

Click Check Headers. The tool fetches the site's response headers and evaluates the important security ones. Within seconds you get a per-header report.

One caveat: a few sites block cross-origin header checks, so occasionally a site can't be scanned from a browser-based tool. If that happens, the tool will tell you โ€” and for a deeper scan you can also try the well-known securityheaders.com service.

Step 3: Read the results โ€” green means present, red means missing

Each header gets a simple verdict: green means the header is present, red means it's missing. Don't panic at red โ€” treat the report as a to-do list, not a breach alert. Below is what each header actually does.

Header by header, in plain English

Strict-Transport-Security (HSTS)

Tells the browser: "only ever talk to this site over HTTPS, even if someone tries to downgrade the connection." This defeats sslstrip-style attacks that try to silently strip encryption. Any site handling logins or payments should send it.

Content-Security-Policy (CSP)

A whitelist declaring where the page may load scripts, styles, and other resources from. It's the strongest available mitigation against cross-site scripting (XSS): even if an attacker injects a script tag, the browser refuses to run it unless the source is allowed. It's also the trickiest header to configure correctly, which is why many sites lack it.

X-Frame-Options

Controls whether the page may be embedded in a frame or iframe on another site. Set to DENY or SAMEORIGIN, it blocks clickjacking โ€” attacks that layer an invisible malicious page over (or under) a legitimate one to hijack clicks. (Modern sites may use CSP's frame-ancestors directive instead, which supersedes it.)

X-Content-Type-Options

With the value nosniff, it stops browsers from second-guessing a file's declared content type. Without it, a browser might "sniff" an uploaded file, decide it's actually HTML/JavaScript, and execute it โ€” a classic vector for attacks via file uploads.

Referrer-Policy

Controls how much of the page's URL is sent as the HTTP Referer when navigating away. A strict policy (like strict-origin-when-cross-origin or no-referrer) prevents leaking internal URLs, session tokens in query strings, or private paths to third-party sites.

If it's your site: what to do with missing headers

  1. Prioritize HSTS and X-Content-Type-Options โ€” they're one-line additions on virtually every server and web framework.
  2. Add X-Frame-Options (or CSP frame-ancestors) unless you have a specific reason to allow framing.
  3. Plan Content-Security-Policy carefully. Start with a report-only policy to discover what your pages legitimately load, then enforce. A misconfigured CSP breaks your site visibly, so test in staging first.
  4. Re-scan after each change with the checker to confirm the headers are actually being sent.

Headers are set at the server or application level (web server config, framework middleware, or a CDN's edge rules) โ€” the exact steps depend on your stack, but every major platform documents them.

If it's someone else's site: how to interpret red

A missing header on a site you merely visit is worth noting, not worth panicking over. Security headers are defense-in-depth: their absence doesn't mean the site is compromised or that your data there is exposed. It means the site's operators haven't enabled a layer of free protection. For sites where you enter sensitive information, you might reasonably prefer competitors that take hardening seriously โ€” but don't treat a red row as evidence of wrongdoing.

What header checks can't tell you

Honesty matters here too. A header scan checks configuration, not vulnerabilities: it can't find SQL injection, broken authentication, leaked secrets, or outdated software. A site can score perfectly on headers and still be insecure underneath โ€” and a site missing a few headers can otherwise be well-engineered. Think of it as checking whether a house has deadbolts: useful information, not a full security audit.

Frequently asked questions

Is it legal to check a website's headers?

Yes. You're requesting the site's public homepage and reading the standard response metadata every browser receives. It's the same category of activity as viewing page source.

Why can't some sites be checked?

A few sites block cross-origin requests, which prevents browser-based tools from reading their headers. For those, a server-side scanner like securityheaders.com usually works.

Do security headers slow down a website?

No measurable effect โ€” they're a few extra bytes in the response. There's no performance reason to skip them.

Will adding headers break my site?

Most headers are safe to add outright. Content-Security-Policy is the exception: test it in report-only mode first, because an overly strict policy blocks legitimate scripts and breaks functionality.

Audit a site now: Free Security Headers Checker ยท Free IP Lookup ยท Free Phishing URL Checker