Skip to main content

HSTS

ssl

HTTP Strict Transport Security tells browsers to use HTTPS only for your domain and to refuse plain HTTP, even for the first request. It closes downgrade and cookie-injection attacks.

Enable HSTS once you are certain every subdomain serves valid HTTPS — the policy is cached by browsers and hard to retract.

After enabling HSTS, typing example.co.ke without https:// is upgraded to HTTPS locally by the browser.

Related topics

Frequently asked question

What is HSTS?

HTTP Strict Transport Security tells browsers to use HTTPS only for your domain and to refuse plain HTTP, even for the first request. It closes downgrade and cookie-injection attacks. Enable HSTS once you are certain every subdomain serves valid HTTPS — the policy is cached by browsers and hard to retract.

Read the full answer