HSTS (HTTP Strict Transport Security)
HTTP Strict Transport Security tells browsers to only ever connect to your site over HTTPS, even if the user types http://. Without HSTS, attackers can intercept the first plain-HTTP request and downgrade the user to an unencrypted session (SSL stripping).
How HSTS works
HTTP Strict Transport Security (HSTS, RFC 6797) closes a small but important gap: the first plain-HTTP request from a user who types example.com instead of https://example.com. Without HSTS, that request goes out unencrypted; an attacker on the network path can intercept the redirect to HTTPS, strip it, and serve the site over HTTP indefinitely. HSTS tells the browser to remember a domain as HTTPS-only for a configurable period, so subsequent visits skip the plaintext step entirely.
Deployment has three components. max-age sets how long the browser remembers (in seconds; 63072000 = two years is the modern recommendation). includeSubDomains extends the policy to every subdomain — important, but only safe to enable if every subdomain genuinely supports HTTPS. preload requests inclusion in the HSTS Preload List, which ships with Chrome, Firefox, Safari, and Edge — meaning even the very first visit to your domain gets HSTS protection without ever having visited.
Preload is one-way: once your domain is on the list, removing it is slow (months) and reaching every browser version is impossible. Before submitting to hstspreload.org, make absolutely sure every subdomain works over HTTPS, your renewal process is solid, and you don't plan to ever revert. For most production domains this is fine; for development or experimental subdomains it can be a footgun.
A common HSTS configuration error is sending the header only after a redirect from http://. Browsers respect HSTS only when received over HTTPS — so the header on the post-redirect HTTPS response works, but if the user's plain-HTTP request hits a server that doesn't redirect (or that serves the header on the HTTP response and not the HTTPS response), the policy never lands. Verify with curl -I https://<domain> that the header appears on the HTTPS response itself.
How to fix it
Send Strict-Transport-Security: max-age=63072000; includeSubDomains; preload and submit your domain to hstspreload.org.
The 4 HSTS checks Vendor Audit runs
Each check has a fixed set of results, and each result has one rating. These are the exact words the report uses.
HSTS
Standard: RFC 6797
- PASSHSTS set; domain is preloaded
- PASSHSTS set
- HighHTTP Strict Transport Security (HSTS) not set
HSTS max-age
Standard: RFC 6797 §6.1.1
What it checks. max-age tells browsers how many seconds to keep using HTTPS only for the site.
Why it matters. A short value lapses between visits, and the first visit after it lapses can be intercepted before the header is seen again. 180 days is the common minimum, and the preload list asks for a year.
How to fix it. Set max-age=31536000 (one year).
- PASSHSTS max-age is 180 days or longer
- LowHSTS max-age is under 180 days
HSTS includeSubDomains
Standard: RFC 6797 §6.1.2
What it checks. includeSubDomains applies the HSTS policy to every subdomain as well.
Why it matters. Without it, an attacker on the network can use a plain-HTTP subdomain to plant cookies for the main site, and the domain can't join the preload list.
How to fix it. Add includeSubDomains once every subdomain, including internal and legacy names, works over HTTPS.
- PASSHSTS includeSubDomains set
- LowHSTS is missing the includeSubDomains directive
HSTS preload
Standard: hstspreload.org
What it checks. The HSTS preload list is built into Chrome, Firefox, Safari and Edge: a domain on it is HTTPS-only from a browser's very first visit.
Why it matters. Without it, the first visit, and any visit after the HSTS header has expired, can be intercepted before the header is ever seen.
How to fix it. First make sure every subdomain, including internal and legacy names, works over HTTPS. Then send Strict-Transport-Security: max-age=31536000 or more; includeSubDomains; preload, redirect http:// to https:// on the same host, and submit at hstspreload.org. Leaving the list takes months, so don't submit while any subdomain still needs plain HTTP.
- LowHSTS preload directive present but the domain has not been submitted to hstspreload.org
- LowDomain is not on the HSTS preload list — a browser's first visit is not protected
- InfoHSTS preload submission pending — accepted by hstspreload.org, waiting for the next Chrome release
- InfoNot on the HSTS preload list; the HSTS header needs fixing first