🔒
blog.cat.ssl

HSTS header: forcing HTTPS

12.05.2025
← All articles

HSTS tells browser 'this site is always HTTPS'.

Why

301 redirect isn't enough — first HTTP connection possible (MITM).

Header

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

HSTS Preload List

hstspreload.org — Google list. All browsers know.

Caution

Once enabled — hard to roll back. Test carefully.

Related articles

🔄 Let's Encrypt Certificate Didn't Renew: 7 Common Causes 🛡️ SSL Warranty: What It Really Covers 🐳 Automatic SSL in Docker with Traefik: A Complete Setup 🔑 Lost or leaked SSL private key: what to do
🌐 Language
🇺🇿 O⁠'zbek 🇺🇿 Özbek (yangi) 🇺🇿 Ўзбек 🇷🇺 Русский 🇬🇧 English ✓