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.
You can see them any time in your browser's developer tools, under Network.
How to check your security headers, step by step
- 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. - 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.
- 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.
- Read the report. Start with the "Biggest wins first" list. Each card tells you what was found, what it means, and what to set.
- 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.
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.
| Header | What it stops | A good value |
|---|---|---|
| Strict-Transport-Security | Visitors being pushed onto the insecure http:// version of your site | max-age=31536000; includeSubDomains |
| Content-Security-Policy | Injected scripts running on your pages (XSS) | A policy that names the places scripts may load from, with object-src 'none' |
| X-Frame-Options | Clickjacking: your page hidden inside another site's frame | SAMEORIGIN or DENY |
| X-Content-Type-Options | Browsers treating a file as the wrong type, such as a script | nosniff |
| Referrer-Policy | Full page addresses leaking to other sites in the Referer header | strict-origin-when-cross-origin |
| Permissions-Policy | Camera, microphone and location being used by injected code | camera=(), microphone=(), geolocation=() |
| Cross-Origin-Opener-Policy | Pop-up windows from other sites reaching your window | same-origin-allow-popups |
| Cross-Origin-Resource-Policy | Other sites loading your files directly | same-site |
| Set-Cookie flags | Cookies stolen over plain HTTP or by scripts, or sent in cross-site requests | Secure; 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.
The Content-Security-Policy is worth the most, because it protects against the most common web attack.
| Grade | Score |
|---|---|
| A+ | 95 to 100 |
| A | 85 to 94 |
| B | 75 to 84 |
| C | 60 to 74 |
| D | 45 to 59 |
| F | Below 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.
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.
| The tool checks | Why 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 scripts | It 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-action | Small 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.
SameSite=None must come with 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 use | Choose | Where it goes |
|---|---|---|
| WordPress | WordPress (PHP) | The theme's functions.php, or a small plugin, as a send_headers action. Or choose Apache and use .htaccess. |
| Apache | Apache / .htaccess | Your .htaccess file or the site's Apache config. |
| Nginx | Nginx | Inside the server { } block, then reload Nginx. |
| Netlify or Cloudflare Pages | _headers | A file named _headers in your publish folder. |
| Node or Express | Node / Express | A small middleware near the top of your app. |
| Windows server | IIS web.config | The 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 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.
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?

