HSTS: tell browsers to keep using HTTPS

HTTP Strict Transport Security (HSTS) tells a browser to use HTTPS for a hostname for a specified period. Once the browser has learned the policy, it upgrades HTTP attempts before sending them. HSTS relies on reliable HTTPS and deserves a deliberate rollout.

A saved instruction for future visits

After your first verified visit, a receptionist gives you a standing instruction to use the secure entrance for the next year. Your browser similarly remembers HSTS for the stated lifetime. A first-time visitor may still need to discover the instruction unless a preload entry applies.

Trusted HTTPS response
Browser stores HSTS lifetime
Future HTTP attempt upgrades locally
The normal policy is learned over HTTPS. The scanner observes the header, not each browser's remembered state.

How it works

The server sends Strict-Transport-Security over HTTPS. The max-age value tells the browser how long to remember the rule; later valid responses refresh that period.

While the policy is active, the browser upgrades HTTP requests and treats certificate errors more strictly. A missing header on one later response does not immediately erase an existing remembered policy.

includeSubDomains extends the rule to child hostnames. Preloading is a separate process for supported browsers. Both extend the operational commitment and require review of all affected services.

What our check observes

We read the HSTS header on the final authenticated HTTPS response reached within the approved host pair. The response must be representative of a successful page.

The baseline gives full credit for a recognised max-age of at least 31,536,000 seconds, or one year. A shorter positive value receives a warning. This threshold is a baseline choice, not proof of deployment maturity.

Where the observation stops

We do not inspect a visitor's stored HSTS state or browser preload lists. We do not require or validate includeSubDomains or preload for this check.

A pass at the final hostname does not prove every other hostname is covered. A first visit can still begin over HTTP before the browser has learned HSTS, unless a relevant preload policy applies.

How to read your result

pass

The observed final HTTPS response contains recognised max-age of at least one year. Scope beyond that response is untested.

warning

The observed max-age is positive but below one year. A short value may be part of a controlled rollout.

fail

The response lacks recognised active HSTS, or max-age is zero. A browser's existing cached policy is outside this observation.

Not determined

The final trusted HTTPS response could not be assessed, so policy presence remains unconfirmed.

A safe next step

1

Web platform owner

Verify HTTPS and certificate renewal first. Start with a controlled lifetime and monitor critical journeys before extending it.

Verify: Inspect live HTTPS responses and browser behaviour. Maintain a recovery plan that accounts for clients retaining the policy.

2

Domain and application service owners

Inventory affected subdomains before considering includeSubDomains or preload. Review third-party services and long-lived hostnames.

Verify: Confirm each affected service supports reliable HTTPS. Treat preloading as a separate decision with its own removal timing.

Go to the source

These primary references explain the standards and behavior behind this guide. Product observations remain limited to the scope above.

  1. MDN: HSTS lifetime, subdomains and preload
  2. RFC 6797: HTTP Strict Transport Security

Understand what applies to your domain.

Start with the public assessment or discuss a configuration change with the Logic V team.

Check a domainTalk through a finding