HTTP Strict Transport Security (HSTS) is a web security mechanism, defined in RFC 6797 in 2012, by which a website tells browsers to reach it only over HTTPS. The site sends a response header naming how long the rule should last and, optionally, whether it covers subdomains. Once a browser has seen the header, it rewrites any plain HTTP address for that site to HTTPS and refuses to continue if the certificate is invalid.
The policy defends against attacks that strip encryption from a connection, a form of man-in-the-middle attack common on public Wi-Fi, and against theft of session cookies sent over unencrypted links. For that reason it is standard practice on online banking sites and payment checkout pages. Because the first visit could still be intercepted, major browsers ship a preload list of domains that are always treated as HTTPS-only. HSTS complements, rather than replaces, TLS itself.
Ref 1300000388