F4 · security-headers
Tell browsers to always use HTTPS
- What it means
- An HSTS header sends browsers straight to https://, even when a visitor types your address without it, so after the first visit, every return visit goes straight to an encrypted connection. Adding your site to the HSTS preload list covers the very first visit too.
- Evidence
Strict-Transport-Security: (header absent)- Expected
Strict-Transport-Security: max-age=31536000; includeSubDomains- Fix
- Send Strict-Transport-Security: max-age=31536000; includeSubDomains once every subdomain works over HTTPS.