← All checks
HTTPS and HSTS header checker
Group E2 pointsrubric r1
We check that the final URL after redirects uses https, and that the response has a Strict-Transport-Security header with max-age above zero.
Why it matters
An agent that follows a link to your site over HTTP can be served altered content on the way, and many agents refuse to act on pages like that. HSTS tells the client to use HTTPS only for the stated period. HTTPS is worth 1 point and the HSTS header the second.
How to fix it
- Install a valid certificate and redirect all
http://URLs tohttps://with a 301. - Add the header
Strict-Transport-Security: max-age=31536000; includeSubDomains. - Set the header at the web server or CDN, so every response has it.
- Start with a short
max-agewhile you test, then raise it.
How to verify
Run curl -sI https://example.com/ | grep -i strict-transport and expect a max-age value.