HSTS Preload Readiness
HSTS preload ensures browsers always use HTTPS for your domain by hardcoding it into browser source code via the HSTS preload list.
63% of the 101 most-visited sites we scan fail this check. See the full data.
Results in 1–3 minutes · Free · No signup required
Want the result for your own site? Free HSTS Checker — paste your domain, get the report.
Why It Matters
Even with HSTS headers, the first visit to your site is vulnerable to downgrade attacks. Preloading eliminates this window by ensuring browsers never make an HTTP request to your domain.
How We Check
We verify the HSTS header has max-age of at least 31536000 (1 year), includes the 'includeSubDomains' directive, and has the 'preload' directive for preload list eligibility.
Good vs Bad Values
| Value | Verdict | Why |
|---|---|---|
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload | Good | Two years, subdomains and the preload token. This is the form the hstspreload.org submission page itself recommends. |
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload | Good | Exactly the minimum: one year. It passes, but leaves no margin if you ever lower it by mistake. |
Strict-Transport-Security: max-age=31536000; includeSubDomains | Weak | Strong HSTS but not opted into preloading. Add the preload token only after you have read the removal warning. |
Strict-Transport-Security: max-age=31536000; preload | Bad | includeSubDomains is missing. The list requires it, so a submission would be rejected. |
Strict-Transport-Security: max-age=86400; includeSubDomains; preload | Bad | One day is far below the 31536000 seconds the list requires. |
Strict-Transport-Security: max-age=0 | Bad | Zero tells browsers to forget HSTS for the host. It is the standard way to switch HSTS off, not a value to ship by accident. |
No Strict-Transport-Security header | Bad | Nothing for the preload list to build on. Fix HSTS first, then consider the list. |
How to Fix
Set the HSTS header to: 'Strict-Transport-Security: max-age=31536000; includeSubDomains; preload'. Then submit your domain at hstspreload.org. Ensure all subdomains support HTTPS first.
Nginx — the header must be sent on every HTTPS response, errors included:
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
Apache:
Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
Cloudflare: SSL/TLS → Edge Certificates → HSTS → enable, set Max Age to 12 months or more, turn on Apply HSTS policy to subdomains and Preload.
Roll out in steps so that a missed subdomain does not become an outage: start with max-age=300, raise to a day, then a week, then a month, then a year or more, and only then add includeSubDomains, and finally preload. At each step list the hostnames that still need HTTPS:
# every name in your zones should answer over HTTPS before includeSubDomains
curl -sI https://sub.example.com | head -n 1
curl -sI https://example.com | grep -i strict-transport-security
Submit and check status at hstspreload.org. The site checks the header, the redirect and the certificate, and shows your status in the list afterwards.
Common Mistakes
- Adding `preload` before every subdomain serves valid HTTPS. With `includeSubDomains` and preload, an `intranet.example.com`, an old `ftp.` host or a staging box over HTTP all become unreachable in browsers.
- Submitting a domain you may want to give up. Removal is possible through hstspreload.org but takes months to propagate through browser release cycles, so treat it as permanent.
- Setting the header only on the www host. The list entry is for the registrable domain, and the bare domain must serve the header on its own HTTPS response.
- Sending HSTS on HTTP responses. Browsers ignore the header unless it arrives over a valid HTTPS connection, so adding it to the port-80 server does nothing.
- Forgetting the redirect requirement. The submission page also requires that port 80 redirects to HTTPS on the same host, and the redirect cannot go to a different host first.
- Using the header with a certificate that only covers the bare domain. Subdomains such as `www` must present valid certificates too.
Frequently Asked Questions
What is HSTS Preload Readiness?
HSTS preload ensures browsers always use HTTPS for your domain by hardcoding it into browser source code via the HSTS preload list.
Why does HSTS Preload Readiness matter for website security?
Even with HSTS headers, the first visit to your site is vulnerable to downgrade attacks. Preloading eliminates this window by ensuring browsers never make an HTTP request to your domain.
How do I fix HSTS Preload Readiness issues?
Set the HSTS header to: 'Strict-Transport-Security: max-age=31536000; includeSubDomains; preload'. Then submit your domain at hstspreload.org. Ensure all subdomains support HTTPS first.
Related Security Checks
Related Tool
HSTS Checker
Run all 6 related checks with our free hsts checker
Check Your Website Now
Run a free security scan to check for HSTS Preload Readiness issues and 61 other security checks.
Scan Your Website Free