Website security headers check
Security headers protect your visitors from clickjacking, traffic interception and other attacks. Enter a website address and get a grade from A+ to F with an explanation of what is missing.
Which security headers are checked
The checker requests the page and reads six HTTP response headers that browsers use to protect visitors: Strict-Transport-Security (forces HTTPS), Content-Security-Policy (limits where scripts and other resources may load from), X-Frame-Options or the CSP frame-ancestors directive (stops the site from being framed for clickjacking), X-Content-Type-Options (stops browsers from guessing file types), Referrer-Policy (controls which address is passed to other sites) and Permissions-Policy (limits access to the camera, microphone, location and similar features).
The grade depends on how many of the six are present: all six give A+, five give A, four give B, and so on down to F. The result also shows the full CSP text with its directives, plus the HSTS details: max-age, includeSubDomains and whether the header meets the preload list requirements.
How to read the grade
- A+ or A: the basics are in place. Next, review the CSP itself, because a policy that allows everything still counts as present.
- B or C: two or three headers are missing, and the hints under the result explain what each missing header does.
- D to F: the server sends almost no protective headers. On Apache most of them can be added with a few lines in .htaccess.
- HSTS preload eligible: the header has a max-age of at least one year, includeSubDomains and the preload flag.
Further reading
- How to add security headers in .htaccess
- What is Content-Security-Policy
- What is HSTS
- Refused to display in a frame: X-Frame-Options
- HSTS preload submission rejected
Frequently asked questions
- Can adding headers break my site?
- HSTS and CSP can. For the whole max-age period HSTS makes browsers connect only over HTTPS, so first make sure every subdomain works on HTTPS. A strict CSP blocks any script it does not list, so start with Content-Security-Policy-Report-Only and tighten the policy step by step.
- Does the grade check that my CSP is good?
- No, the grade only counts which headers are present. The full CSP text is shown so you can review it yourself and decide whether the policy is strict enough.
- Why do I get a different grade on another page?
- Headers can differ by path or file type, especially when they are set by the application instead of the web server. The check tests the exact address you enter.