Strict-Transport-Security
Response header, security
Tells browsers to use only HTTPS for this host for a given time.
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
After a browser has seen this header over HTTPS, it rewrites every http:// link to the host into https:// before sending anything. That closes the window in which an attacker on the network could intercept the first plain HTTP request.
includeSubDomains extends the rule to all subdomains, so make sure every subdomain actually has a valid certificate first. preload allows submission to the browser preload list, which is hard to undo.
Browsers ignore the header when it arrives over plain HTTP.
Recommended value
max-age=31536000; includeSubDomains
Check it on a live site
The security header check grades this header together with the others that protect visitors.
Specification: RFC 6797