Free online tool

HTTP Security Headers Checker

Paste the response headers of any website and get a clear report: which security headers are present, which are weak or missing, and how to fix each one. See a score and grade, check your cookies and Content-Security-Policy in detail, and copy ready-made settings for Nginx, Apache, WordPress, Node, IIS and more. The analysis runs in your browser.

🔒 Pasted headers are analysed on your device and never uploaded.
1. Get the headers
Command line (best)

    
Windows PowerShell

    

No terminal? Open your site, press F12, go to Network, reload, click the first request, find Response Headers, and copy them. Paste the result on the right. Add -L to curl to follow redirects. The tool uses the last response it finds.

2. About your site

These two answers change how some checks are scored.

3. Optional: live grade from MDN Observatory

This sends your site's domain name to Mozilla's MDN HTTP Observatory, which scans the site and returns its own grade. Your pasted headers are never sent.

4. Fix generator

Test every change on a staging copy first. A strict CSP can break scripts, fonts, embeds and ads.

Local analysis in your browserScores are this tool's own guide · Free

The HTTP Security Headers Checker reads the response headers of a website and tells you which security headers are in place, which are weak, and which are missing. Copy the headers of your site, paste them into the tool above, and you get a score, a grade, a plain-English note for every header, and a suggested fix. There is also a generator that writes the settings for Nginx, Apache, WordPress, Node, IIS and more. The pasted headers are analysed in your browser, and they are not uploaded.

What it does

  • Checks HSTS, CSP, framing, nosniff, referrer, permissions, COOP, CORP, CORS, cookies and server leaks
  • Gives a score out of 100, a grade and a "biggest wins first" list
  • Looks inside your CSP and your cookies, not just whether they exist
  • Writes copy-paste settings for six kinds of server

What it doesn't do

  • It doesn't scan your site for bugs or hackers' tricks
  • It only sees the one response you paste
  • It can't tell if a strict policy will break your pages
  • Its score is its own guide, not an official grade

Good for

  • Site owners and WordPress users who want a quick health check
  • Developers reviewing a new deployment
  • Agencies who need a clean report for a client
  • Anyone learning what these headers actually do

What are HTTP security headers?

HTTP security headers are short instructions that a website sends to the browser along with each page. They tell the browser to behave more safely, for example to refuse to be shown inside another site, or to always use HTTPS.

When you open a web page, two things travel to your browser. The page itself, and a block of invisible lines called headers. Most of them are boring, like the type of the file. A handful are about safety. They cost nothing to add, they don't change how your site looks, and they close real doors that attackers like to try.

A web page arrives with headers A browser asks a server for a page. The server answers with two parts: the headers, which hold instructions such as use HTTPS only and do not allow framing, and the page body, which holds the visible page. The browser reads the headers first and follows them. Browserasks for a page The server's answer strict-transport-security: max-age=31536000x-content-type-options: nosniffx-frame-options: SAMEORIGIN HEADERS: instructions BODY: the page you see The browser reads the headers first, and follows them. A site with no security headers leaves all the safe choices to the browser's defaults.

You can see them any time in your browser's developer tools, under Network.

How to check your security headers, step by step

  1. Get your headers. The easiest way is the command curl -sIL https://your-site.com. In the tool, type your address on the left, and the exact command appears. Windows users get a PowerShell version. No terminal? Press F12 in your browser, open Network, reload, click the first request, and copy the Response Headers.
  2. Paste them on the right. You can paste the whole output, with the status line. If there are redirects, the tool uses the last response.
  3. Answer two questions. Is the site served over HTTPS? Is this page private, such as a login or a payment page? These change how a few checks are scored.
  4. Read the report. Start with the "Biggest wins first" list. Each card tells you what was found, what it means, and what to set.
  5. Fix and test again. Use the Fix generator to get the settings for your server. Add them, check your site, and paste the new headers to see the new score.
Try itPress "Load weak sample" and then "Load strong sample". Look at how the score changes, and read the cards that go from red to green.

The headers the tool checks, in plain words

Here's each one, with what it protects you from, and what to set. You don't need to memorise this. The tool tells you the same things on every card.

The security headers, grouped by what they protect Four groups. Connection: Strict-Transport-Security. Page content: Content-Security-Policy, X-Content-Type-Options. Embedding and sharing: X-Frame-Options, Referrer-Policy, Permissions-Policy, Cross-Origin policies, CORS. Cookies and leaks: Set-Cookie flags and server version headers. The connectionThe page contentEmbedding, sharingCookies, leaks HSTSalways use HTTPS CSPwhich scripts may runnosniffdo not guess file types X-Frame-Optionsno framing by othersReferrer-Policywhat links revealPermissions-Policycamera, mic, locationCOOP, CORP, CORSwho may reach you Set-Cookie flagsSecure, HttpOnly,SameSiteServer, X-Powered-Byhide the version
HeaderWhat it stopsA good value
Strict-Transport-SecurityVisitors being pushed onto the insecure http:// version of your sitemax-age=31536000; includeSubDomains
Content-Security-PolicyInjected scripts running on your pages (XSS)A policy that names the places scripts may load from, with object-src 'none'
X-Frame-OptionsClickjacking: your page hidden inside another site's frameSAMEORIGIN or DENY
X-Content-Type-OptionsBrowsers treating a file as the wrong type, such as a scriptnosniff
Referrer-PolicyFull page addresses leaking to other sites in the Referer headerstrict-origin-when-cross-origin
Permissions-PolicyCamera, microphone and location being used by injected codecamera=(), microphone=(), geolocation=()
Cross-Origin-Opener-PolicyPop-up windows from other sites reaching your windowsame-origin-allow-popups
Cross-Origin-Resource-PolicyOther sites loading your files directlysame-site
Set-Cookie flagsCookies stolen over plain HTTP or by scripts, or sent in cross-site requestsSecure; HttpOnly; SameSite=Lax

How is the score worked out?

Every header gets a number of points. The more it protects you, the more it's worth. Together the points make 100. Partly good settings get part of the points. For example, a short HSTS time gets about half.

How the 100 points are shared Content-Security-Policy 25 points. Strict-Transport-Security 15. Cookies 12. Clickjacking protection 8. X-Content-Type-Options 8. Referrer-Policy 6. Permissions-Policy 6. Technology disclosure 6. CORS 6. Cross-Origin-Opener-Policy 5. Cross-Origin-Resource-Policy 3. Content-Security-PolicyStrict-Transport-SecurityCookiesClickjacking protectionX-Content-Type-OptionsReferrer-PolicyPermissions-PolicyTechnology disclosureCORSCross-Origin-Opener-PolicyCross-Origin-Resource-Policy 25151288666653

The Content-Security-Policy is worth the most, because it protects against the most common web attack.

GradeScore
A+95 to 100
A85 to 94
B75 to 84
C60 to 74
D45 to 59
FBelow 45

This is my own scoring. Other checkers use different rules, so the same site can get a different grade in a different tool. Treat the score as a way to see progress, and read the cards for the real details. An A+ doesn't mean a site is secure. It means the headers are in good shape.

A worked example: a weak site and a strong site

The tool has two samples you can load. Here's what happens with each, so you can see how the points add up.

The weak sample and the strong sample The weak sample scores 12 out of 100, an F. It earns 3 points for the referrer policy default, 6 for the cookies and 3 for open CORS, and nothing for HSTS, CSP, framing, nosniff, permissions, opener, resource policy or server disclosure. The strong sample scores an A plus. Weak sampleF · 12/100 ❌ No HSTS, no CSP, no frame protection❌ Server: Apache/2.4.41, X-Powered-By: PHP/7.4.3❌ PHPSESSID cookie without Secure or HttpOnly⚠️ CORS open to every site (*)⚠️ Old X-XSS-Protection: 1; mode=block✅ A second cookie with Secure and SameSite⚠️ No Referrer-Policy (browser default) Strong sampleA+ ✅ HSTS: 2 years, subdomains, preload✅ CSP with a nonce and object-src 'none'✅ X-Frame-Options DENY, nosniff✅ Strict referrer and permissions policies✅ COOP same-origin, CORP same-site✅ __Host- cookie with Secure, HttpOnly, Strict✅ No server or PHP version shown

Look at the weak one. It scores 12 points: 3 for the referrer default, 6 for cookies (one cookie is fine and one is not), and 3 for the open CORS. Everything else is zero. The tool puts the CSP, HSTS and the missing frame protection at the top of the "Biggest wins first" list, because they're worth the most.

It's also a good lesson in small leaks. The server says Apache/2.4.41 and PHP/7.4.3. An attacker can look up the known bugs for exactly those versions. Hiding the version numbers costs one line in your server settings.

What does the tool look for inside a CSP?

A Content-Security-Policy is a list of rules, and having one isn't enough. A weak policy can be nearly useless. So the tool reads each rule and scores the quality.

Parts of a Content-Security-Policy A policy line split into directives. default-src self sets the base rule. script-src self limits scripts. object-src none blocks plugins. base-uri self stops base tag tricks. frame-ancestors self controls who can frame the page. Each directive has a job. default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'self' default-srcscript-srcobject-srcbase-uriframe-ancestors the fallback foreverything elsewhere scripts maycome fromblocks old plug-incontentstops a fake basetag redirecting linkswho may put yourpage in a frame
The tool checksWhy it matters
Is it enforced, or Report-Only?Report-Only only sends reports. It blocks nothing. The tool gives it a small part of the points.
Are scripts restricted?A policy with no script-src or default-src leaves scripts open.
'unsafe-inline' in scriptsIt allows any inline script, which is what an attacker injects. A nonce or a hash makes it safe, so the tool accepts those.
'unsafe-eval'It allows code made from text, a known risk.
Broad sources: *, https:, http:, data:They let scripts come from almost anywhere.
object-src, base-uri, frame-ancestors, form-actionSmall rules that close side doors. Missing ones are listed as tips.

Don't paste a strict CSP onto a live site and hope. It can block your own scripts, fonts, ads, maps and embeds, and your site can look broken. Start with the Report-Only choice in the Fix generator, watch the reports, then switch to the enforced header.

What about cookies?

If your response sets cookies, the tool reads each one. It looks for three flags.

SecureThe cookie is sent only over HTTPS. Without it, it can leak on a plain connection.
HttpOnlyScripts can't read the cookie. The tool expects it on cookies that look like sessions, logins, tokens or CSRF values. A cookie such as an analytics ID doesn't need it.
SameSiteControls when the cookie travels in requests from other sites. Lax or Strict is the usual choice. SameSite=None must come with Secure.
__Host- and __Secure- namesThese special prefixes make browsers enforce the rules. The tool counts them as Secure.

If a response sets no cookies, the tool says so and marks the check as not applicable. Cookies set on other pages aren't checked, so test your login page too.

How do I add the headers to my site?

Open "Fix generator" on the left. Pick your server, choose a few options, and copy the result. The tool makes the exact syntax for each kind of server.

You useChooseWhere it goes
WordPressWordPress (PHP)The theme's functions.php, or a small plugin, as a send_headers action. Or choose Apache and use .htaccess.
ApacheApache / .htaccessYour .htaccess file or the site's Apache config.
NginxNginxInside the server { } block, then reload Nginx.
Netlify or Cloudflare Pages_headersA file named _headers in your publish folder.
Node or ExpressNode / ExpressA small middleware near the top of your app.
Windows serverIIS web.configThe customHeaders section of web.config.

Here is a small example of what the generator makes for Nginx:

# Put these inside your server { } block
add_header X-Content-Type-Options "nosniff" always;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header Content-Security-Policy-Report-Only "default-src 'self'; ..." always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
server_tokens off;

When I run the headers the generator makes through the checker, they score 75 (a B) with the safe Report-Only policy. With an enforced basic or strict CSP, they score 96 (an A+). That gap is the CSP, and it's the part worth doing carefully.

A safe rollout in five steps Step one: check your headers. Step two: add the easy ones, nosniff, referrer policy, framing and a short HSTS. Step three: add the CSP in report-only mode. Step four: fix what the reports show, then enforce the CSP and raise HSTS. Step five: check again. 12345 CheckEasy winsCSP testTightenCheck again see whereyou standnosniff, referrer,framing, short HSTSreport-only first,watch for errorsenforce CSP, raiseHSTS to 1 yearpaste the newheaders, compare Go slowly with CSP and HSTS. Those two are the ones that can break a site.

A note about the HSTS preload option. Preload puts your domain on a list built into browsers, and it's hard to undo. Only use it when your whole site and all subdomains work on HTTPS for good. The tool adds it only if you tick it, and only with includeSubDomains and at least one year.

What is the optional MDN Observatory scan?

There's an extra box, "Live grade from MDN Observatory". It asks Mozilla's HTTP Observatory service to scan your site by its domain name, and shows the grade and score that service returns, with a link to the full details. It's a nice second opinion.

The difference matters, so I'll be plain about it. When you paste headers, nothing leaves your device. When you press the scan button, the domain name is sent to Mozilla's service. Your pasted headers are never sent. If the scan can't run from your browser, the tool tells you, and your paste check still works.

What this checker can't do

  • It is not a security scan. It only checks headers. It can't find broken code, weak passwords, old plugins or open ports. A good header score is one layer of protection.
  • It sees one response. Headers can differ between pages, folders, images, error pages and redirects. Check your home page, a login page and an API route if you have them.
  • It depends on what you paste. If a CDN adds headers on the way, you need to copy the headers from the final response, as a visitor gets them.
  • It can't test if a policy breaks your site. A strict CSP, a strict opener policy or a strict resource policy can break scripts, logins and embeds. Test on a copy first.
  • The score is its own guide. It will not match Mozilla's grade or any other tool exactly.
  • It doesn't know your preload status. It can see the preload word in the header, but it can't tell you whether the domain is on the preload list.
  • Careful with secrets. Pasted headers can contain cookie values and tokens. The tool doesn't upload them, but remove the values before you share a report with anyone.

I tested the parts of this tool in a real browser: reading headers, the weak and strong samples, the generator, and the scan box with a stand-in service. I can't promise how every server and every header format will behave, so please read each result with your own site in mind.

Is my data private?

Yes, for the main check. The analysis runs in your browser tab, and the headers you paste are not sent anywhere. The only network call the tool can make is the optional Observatory scan, and it only happens when you press that button, and it sends only the domain. Your options, such as the server type, are saved in your own browser.

Questions people ask

Is the HTTP Security Headers Checker free?

Yes. There's no signup and no limit. The site may show ads to cover its costs.

Are the headers I paste uploaded?

No. The check runs in your browser, and your pasted headers stay on your device. Only the optional Observatory scan sends something, which is the domain name, and only when you press its button.

How do I get my website's headers?

Run curl -sIL with your address in a terminal, or use the PowerShell command the tool shows. Or open your browser's developer tools, go to Network, reload, click the first request, and copy the Response Headers.

What is the most important security header?

The Content-Security-Policy protects the most, which is why it's worth 25 of the 100 points. Strict-Transport-Security is next. The CSP is also the hardest to set up, so start it in report-only mode.

What is HSTS?

HSTS, or Strict-Transport-Security, tells browsers to always use HTTPS for your site. After a visitor has seen it once, the browser won't even try the insecure version for the time you set.

Do I still need X-Frame-Options if I have a CSP?

The CSP rule frame-ancestors does the same job and is more flexible, so the tool accepts it. X-Frame-Options is still useful for very old browsers, and it's easy to add.

Should I remove X-XSS-Protection?

Yes, or set it to 0. The old filter was removed from modern browsers, and in older ones it could cause problems. Use a Content-Security-Policy instead.

Why does my WordPress site score low?

Most WordPress hosts add few or no security headers. Add them with the WordPress (PHP) snippet from the generator, or with an .htaccess block. Start with the easy headers and keep the CSP in report-only mode until you're sure it doesn't break your theme or plugins.

Is an A+ the same as a secure website?

No. It means your headers are in good shape. A site can have perfect headers and still have bugs, weak passwords or an outdated plugin. Think of headers as one lock on the door, not the whole house.

Does it work on a phone?

Yes. The layout fits small screens. It's easier on a computer, because getting the headers needs a terminal or browser developer tools.

Waqas Amjad

Hi, I'm Waqas, the person behind Brivonto. I started this site because I wanted online tools that simply work, without sign-ups or watermarks. I build each tool myself and keep improving them based on your feedback. Questions or feedback?

Get in touch.