Skip to content
Security · free, no sign-up

HSTS Checker

Looks for the Strict-Transport-Security header and how long it lasts.

Why it matters

HSTS tells browsers to use only HTTPS on your site, even if someone types or clicks an http address. This closes a gap where a first, insecure request could be intercepted.

How to fix it

  • Add the header Strict-Transport-Security: max-age=31536000.
  • Add includeSubDomains only when all your subdomains work on HTTPS.
  • Start with a short time, then raise it once you are sure.

What a good result looks like

A Strict-Transport-Security header with a max-age of at least 6 months. A year or more is needed for preloading.

Common mistakes

  • Turning on includeSubDomains before every subdomain has https.
  • Starting with a long max-age, which is hard to undo if something breaks.

Questions about the HSTS Checker

What does HSTS protect against?

It tells browsers to use only https for your site, closing the gap where an attacker could catch a visitor's first insecure request.

Should I submit my site for preload?

Only if you are sure every subdomain will stay on https for good. Removal from the preload list is slow.

Check everything at once

Run our other instant checks on your site in one report.

Full SEO check-up

More security tools