HTTP Security Headers & TLS Checker
Grade any site A+ to F on HSTS, CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy and Permissions-Policy — plus the TLS version, cipher and certificate expiry that Mozilla Observatory dropped. Free, no signup, with a free JSON API.
| Header | Status | Value / notes |
|---|
Warnings
Free fix — copy into your server config
Free JSON API (drop-in for the retired SecurityHeaders.com API)
The SecurityHeaders.com API was shut down in April 2026. This endpoint returns the same summary.grade shape plus per-header directives and TLS data. CORS is open (*). Fair use: 20 requests/minute and 100/day per IP.
curl -s "https://shipbastion.com/api/v1/headers?url=https://example.com" | jq '.summary.grade, .missingHeaders, .tls.protocol'
{
"summary": { "url": "https://example.com/", "grade": "B", "reportTime": "2026-11-29T00:00:00.000Z" },
"grade": "B", "score": 75,
"headers": { "strict-transport-security": { "present": true, "status": "good", "directives": { "maxAge": 31536000 } }, … },
"missingHeaders": ["Content-Security-Policy"],
"tls": { "protocol": "TLSv1.3", "cipher": "TLS_AES_256_GCM_SHA384", "certDaysRemaining": 61, "grade": "A+" },
"reportUrl": "https://shipbastion.com/tools/headers?url=https%3A%2F%2Fexample.com%2F"
}
FAQ
Is this a replacement for the SecurityHeaders.com API?
Yes. The SecurityHeaders.com API stopped in April 2026. GET /api/v1/headers?url= returns a compatible summary.grade field plus per-header details, TLS data and a report URL — free, no key, CORS enabled.
How is the grade calculated?
Six headers are weighted (HSTS 25, CSP 25, X-Frame-Options or CSP frame-ancestors 20, X-Content-Type-Options 20, Referrer-Policy 5, Permissions-Policy 5). 100 points with no warnings is A+, 90+ is A, 70+ B, 50+ C, 30+ D, 15+ E, below that F. A Report-Only CSP does not count.
Do you check TLS?
Yes — the negotiated TLS version and cipher, whether the certificate chain is trusted, the issuer, and how many days are left before expiry. Mozilla Observatory removed its TLS checks; this tool keeps them.
Is the check safe for my site?
It sends one ordinary GET request (plus redirects) with a clearly identified user-agent. Nothing is stored except an anonymous in-memory cache for 10 minutes.