HTTP Strict Transport Security (HSTS) tells browsers to only connect to a site over HTTPS, preventing plaintext-HTTP downgrade attacks.
Explanation
When a browser visits an HSTS-enabled site for the first time, the server sends an HSTS header that the browser remembers for a specified duration (often a year). During that window, the browser refuses to connect to that site over plain HTTP — it either upgrades to HTTPS or shows an error. HSTS Preload takes this further: browsers ship with a hardcoded list of HSTS-enabled sites (anyproxy.site is on that list) so even the first connection is HTTPS-only. HSTS defeats a class of downgrade attacks where a MITM strips the initial HTTP redirect to HTTPS. It does not defeat SNI-based blocking or DPI, but it does close a real attack path.
Related terms