# How HSTS Changes Future Visits to a Website

https://ferkesh.net/zh/knowledgebase/article/website-hsts-effects

![Diagram linking Check accessible hosts, Test HTTPS coverage, Set conservative scope and Review future effects.](https://ferkesh.net/kb-media/ferkesh-guide-diagrams-batch-07.svg#website-hsts-effects)

HTTP Strict Transport Security tells supporting browsers to use HTTPS for future requests to a host for a defined period. If the HTTPS certificate later fails, the browser normally prevents bypassing the error for a known HSTS host. The policy can optionally include subdomains.

## Review the impact first

1. Verify valid certificates and HTTPS responses for any hosts that the proposed policy covers. Include old names, proxies, webmail and nested subdomains where appropriate.
2. Check the response header on the actual HTTPS endpoint. Agree a conservative initial duration and deployment scope before considering includeSubDomains.
3. Confirm normal navigation, renewals and rollback plans. A browser may keep an already learned policy until it sees a valid update or the configured duration passes.

Treat preload as a separate long-lived decision with its own requirements. A working homepage alone does not verify that every dependent subdomain can use HTTPS.

## Related guides

- [Why an HTTPS Redirect Needs a Certificate on the Old Hostname](https://ferkesh.net/knowledgebase/article/tls-for-redirect-source-hostnames)
- [When a Wildcard Certificate Covers Your Subdomains](https://ferkesh.net/knowledgebase/article/wildcard-certificate-coverage)
- [How to Diagnose an HTTPS Certificate Warning](https://ferkesh.net/knowledgebase/article/https-certificate-warning)
- [SSL and Website Security category](https://ferkesh.net/knowledgebase/category/ssl-and-website-security)

## Official references

- [MDN HTTP Strict Transport Security](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Strict-Transport-Security)
- [RFC 9525 on service identity in TLS](https://www.rfc-editor.org/rfc/rfc9525)

Ferkesh Hosting. Last reviewed November 26, 2026.
