What Is HSTS?
Learn how HTTP Strict Transport Security works, when to enable it, and what to check before using HSTS across subdomains.
Problem Summary
HTTP Strict Transport Security tells supporting browsers to use HTTPS for a site after seeing a valid HSTS header. It helps reduce downgrade risk, but it should be enabled only after HTTPS is ready for the intended hostnames.
Why It Matters
- HSTS helps browsers avoid returning to HTTP after the first valid HTTPS visit.
- includeSubDomains can affect every subdomain, including legacy and vendor-managed hosts.
- Preload is a long-lived browser-list commitment and should be treated as an operational decision.
How Qourby Checks It
- Checks HTTPS responses for the Strict-Transport-Security header.
- Reports max-age, includeSubDomains, and preload directives when present.
- Flags missing HSTS on sites that otherwise appear intended for HTTPS-only operation.
- This check does not replace manual inventory of every subdomain before includeSubDomains or preload decisions.
Common Failures
- Strict-Transport-Security missing from HTTPS responses.
- max-age set too low for the team intent.
- includeSubDomains enabled before all subdomains support HTTPS.
- HSTS sent inconsistently across app routes or edge locations.
- Preload directive added without a rollback plan.
How To Fix
- Confirm HTTPS works for the canonical hostname and important aliases.
- Start with a conservative max-age and increase after observing stable behavior.
- Use includeSubDomains only after validating subdomain readiness.
- Treat preload as a separate launch decision, not a default header option.
- Set HSTS at the edge or reverse proxy when that layer reliably handles HTTPS.
Related Checks and Guides
Scanner check
SSL Checker
Review a website TLS certificate and HTTPS configuration for common issues such as expiry, hostname mismatch, redirects, and weak transport setup.
Scanner check
Security Header Checker
Check whether a website exposes important HTTP security headers and get practical remediation notes for missing or weak header configuration.
Security guide
What Is Content Security Policy?
Learn what Content Security Policy does, where it helps, where it does not, and how to approach CSP rollout on a website.