Skip to content
Commitwise
Menu

HSTS

HTTP Strict Transport Security: a header that makes browsers use only HTTPS for a site.

Definition

After seeing Strict-Transport-Security with a max-age, the browser rewrites any http:// URL for that site to https:// before sending anything, for that long, so the first plain request can't be intercepted. includeSubDomains extends it to subdomains; the preload list protects even the first visit.

In practice

Strict-Transport-Security: max-age=31536000; includeSubDomains

Learn it in context

Lessons that use this term.

Related terms

Esc

Type to search the whole site.