You installed an SSL certificate, your site loads over HTTPS, and the padlock shows. That should be the end of the story — but it isn't. The first time a visitor types your domain, their browser still starts with plain HTTP, and an attacker sitting on the same network can intercept that first request and keep the visitor on an insecure connection. This is called an SSL stripping attack, and your certificate does nothing to stop it.
HTTP Strict Transport Security, or HSTS, closes that gap. It is a single response header — Strict-Transport-Security — that tells browsers to only ever connect to your site over HTTPS, for a period you set. Once a browser has seen the header, it will refuse to load your site over HTTP at all, even if the visitor types http:// or clicks an old insecure link. The downgrade attack simply stops working.
Setting it up takes minutes.…