Website security check: test your security headers for free
Security headers are HTTP response headers through which the server tells the browser what a page may load and how it should behave, for example CSP, HSTS or X-Frame-Options. WebMeter checks them for free, with no sign-up. In the overall website score they carry a weight of 13 out of 100.
What HTTP security headers are
With every page the server sends HTTP headers. Six of them form the core of protection in the browser: Content-Security-Policy (CSP), Strict-Transport-Security (HSTS), X-Frame-Options, X-Content-Type-Options, Referrer-Policy and Permissions-Policy. They protect visitors from injected scripts, tricked clicks and unencrypted connections.
| Header | What it does | Recommended value |
|---|---|---|
| Content-Security-Policy (CSP) | Defines where a page may load scripts, styles and other resources from. It limits the damage if foreign code gets into the page. | Only the sources you need, for example default-src 'self'; object-src 'none'; base-uri 'self', without 'unsafe-inline' and 'unsafe-eval' for scripts. |
| Strict-Transport-Security (HSTS) | Tells the browser to open the website only over HTTPS. It only makes sense with a valid certificate, so also check your SSL certificate and HTTPS. | max-age=31536000 (1 year). WebMeter rates a validity shorter than 180 days as short. Add includeSubDomains only once all subdomains run on HTTPS. |
| X-Frame-Options or CSP frame-ancestors | Prevents the website from being embedded in someone else’s page to trick visitors into clicking (clickjacking). When an enforced CSP from the header contains frame-ancestors, the browser ignores X-Frame-Options. | X-Frame-Options: DENY or SAMEORIGIN, in CSP frame-ancestors 'self' or 'none'. |
| X-Content-Type-Options | Stops the browser from guessing the file type. | nosniff |
| Referrer-Policy | Controls how much of the page address is passed to other websites. | strict-origin-when-cross-origin |
| Permissions-Policy | Switches off features the website doesn’t need, such as the camera, microphone or location. | For example camera=(), microphone=(), geolocation=() |
Alongside them comes the security.txt file at /.well-known/security.txt (RFC 9116) with a contact for reporting security issues and an expiry date.
Why security headers matter for a small business
Small websites often run on a CMS with many plugins, and when one of them is vulnerable, headers limit what an attacker can do to visitors. Missing headers are also visible to anyone who checks the website, for example a contracting authority in a tender or an insurer.
For the cleaning company OAZAPAP, the original website scored 30 out of 100 for security headers; the new one scores 100. Eight out of ten competitor websites have no security headers at all, or only some (case study).
Common mistakes in security headers
- CSP with 'unsafe-inline' and 'unsafe-eval' for scripts, or only upgrade-insecure-requests, which doesn’t restrict scripts.
- HSTS valid for only a few minutes or days.
- X-Frame-Options in a meta tag, where the browser does not apply this protection.
- Server or X-Powered-By headers revealing the exact software version. What else your website gives away is shown by the website exposure check, and outdated versions by the CMS, WordPress and PHP check.
- A security.txt file with an expired Expires date.
Security headers check: what is covered
WebMeter reads the headers the server sends with the home page: CSP, HSTS, framing protection, X-Content-Type-Options, Referrer-Policy and Permissions-Policy. It also assesses cookie attributes (cookie consent is covered on the cookies and GDPR page), SRI for scripts from other domains, CORS, revealed software versions and the security.txt file.
Security headers carry a weight of 13 out of 100 in the overall score. If HSTS, an effective CSP and framing protection are all missing, the area scores at most 39 points. The report also shows indicative grades based on the public methodologies of Mozilla HTTP Observatory and securityheaders.com. They are not official results of those services and do not count towards the score. How the score is calculated is described in the methodology.
It evaluates only the home page, not the API or other parts of the website, and it doesn’t test anything. Good headers won’t fix bugs in the application or outdated software.
Website security: headers and other areas
Headers protect visitors in the browser. Overall website security depends on more areas, and WebMeter measures them all at once:
- Security headers and security.txt, the subject of this page.
- A valid SSL certificate and HTTPS.
- An up-to-date CMS and PHP.
- What the website reveals to the outside, such as subdomain names or DNS records.
- A reliable domain and DNS.
It is a passive check from the outside, not a penetration test. If the EU cybersecurity rules apply to you or your customers, read what NIS2 means for your website.
Check your security headers for free
Enter a domain and see which headers the website sends, together with the other areas.
Not sure what to make of the result? We offer a no-obligation consultation — just write to kontakt@webmeter.eu.
Website design with security headers set up
Headers are easiest to set up while a new website is being built, when it is clear where its pages load scripts and styles from. We build the new website from scratch, including security headers and a security.txt file. Before handover we check them with the same tool as here.
How website design works → Case study: from 73 to 97 points →
Frequently asked questions about security headers
How do I check my website’s security headers?
Enter your website address in WebMeter at the top of this page; the check is free and needs no sign-up. You can also see the headers the server sends in your browser’s developer tools (F12, Network tab) on the request for the page itself.
Can headers break a website?
Yes, mainly CSP, and with HSTS the includeSubDomains option. They should be introduced carefully and gradually, so they don’t block necessary scripts or access over HTTPS.
What is security.txt and does a small business need it?
A text file at /.well-known/security.txt (RFC 9116) with a contact for reporting security issues and an expiry date. It costs nothing, and anyone who finds a flaw on the website knows whom to report it to.
Does a good grade for headers mean the website is safe?
No. Headers are one layer of protection in the visitor’s browser. They don’t fix bugs in the application, an outdated CMS or weak passwords. A good grade only means this layer is in place.
How is WebMeter different from securityheaders.com or HTTP Observatory?
The report also shows indicative grades based on the public methodologies of securityheaders.com and Mozilla HTTP Observatory. They are not official results of those services and do not count towards the score. Besides headers, WebMeter measures other areas of the website, such as the SSL certificate, SPF, DKIM and DMARC, cookies, speed or SEO, and explains the result in plain language for business owners.
Other areas checked
- SEO checker
- What is SEO
- SSL certificate check
- SPF, DKIM and DMARC check
- Website speed
- Cookies and GDPR on your website
- NIS2 and your website
- Competitor comparison
- Domain and DNS check
- Website accessibility
- CMS and technology
- Website exposure check
- AI search engines
- Company and e-shop
- Search engines beyond Google
- Third parties on your website
- Overview of everything WebMeter checks
How the check treats your website is described on the page about the WebMeterBot robot; what is stored and for how long is in the data processing policy.