CSACyber Security AuditWebbandflow
Transport security & TLS

HTTP Strict Transport Security (HSTS)

A header that forces browsers to only ever connect to a site over secure, encrypted HTTPS.

What it is

HTTP Strict Transport Security is a header that instructs browsers to always use HTTPS for a site and never fall back to unencrypted HTTP, even if a user types a plain address. Once remembered, the browser upgrades connections automatically. This closes a window where an attacker could intercept an initial insecure request.

Why it matters

It prevents attackers from downgrading or intercepting connections before encryption is established, strengthening protection against on-path attacks.

How to fix it

Serve the Strict-Transport-Security header over HTTPS with a suitable duration, and only enable broad settings such as preload once HTTPS is reliably in place everywhere.

Related terms

References

← Back to the glossary