Glossary

What is HSTS?

HSTS tells browsers to only ever use HTTPS for your site. The benefit, and why you should only switch it on once HTTPS works everywhere.

1 min readBy Wiredeo

Definition

HSTS (also HTTP Strict Transport Security)

HTTP Strict Transport Security: a setting that tells browsers to only ever connect to your site over HTTPS, for a set period.

In plain English

Once a browser has seen HSTS from your site, it refuses to load it over plain HTTP until the period ends, even if someone types http://.

Example

Squarespace offers an “HSTS secure” option in its SSL settings alongside “Secure”.

Our own site sends Strict-Transport-Security: max-age=31536000: browsers that visit wiredeo.com use HTTPS for it for the next year. We left out includeSubDomains on purpose, so other subdomains aren’t forced onto HTTPS.

Why it matters to your business

It closes a small gap that redirects leave open. But because browsers remember it, switching back to HTTP later can lock past visitors out. Turn it on once everything, including subdomains if you include them, works over HTTPS.

← All website terms A to Z

Filed under Security

Next step

See how your own site does

Our free check looks at HTTPS, phones, software, speed basics and more in a few seconds.

Check your site Request an audit