- Home
- Free Security Tools
- HSTS Checker
Index
- List of tools
SSL certificate tools
- Check SSL Installation
- Decode SSL Certificate
- Decode CSR
- Generate CSR & Private Key
- Download SSL Certificate
- Check CAA Record
- Certificate Key Matcher
- SSL Converter
- Revocation Checker (OCSP / CRL)
- Self-Signed Certificate Generator
Web server tools
- SSL Config Generator
- HSTS Checker
- HTTP/2 Checker
- HTTP/3 Checker
DNS and e-mail tools
- Check Domain Blacklist
- DNS Lookup & Propagation Checker
- SPF, DKIM & DMARC Checker
- DNSSEC Validator
- MTA-STS & TLS-RPT Checker
- WHOIS & Domain Expiry Lookup
HSTS Checker
Enter a domain and see whether it tells browsers to use HTTPS only: the Strict-Transport-Security header, its settings, the redirect from HTTP and the status on the browser preload list.
What HSTS protects against
A redirect from HTTP to HTTPS has one weak moment: the first request still travels unencrypted. On a public Wi-Fi an attacker can catch it and keep the visitor on a fake HTTP copy of your website. With HSTS the browser remembers that the domain is HTTPS only and never sends that first unencrypted request again.
The header, part by part
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
- max-age: how many seconds the browser remembers the rule. One year (31536000) is the usual value.
- includeSubDomains: the rule covers every subdomain as well. Add it only when all of them have HTTPS.
- preload: you ask browser makers to build the domain into the browser, so even the very first visit is protected.
How to switch it on
Nginx: add_header Strict-Transport-Security "max-age=31536000" always;
Apache: Header always set Strict-Transport-Security "max-age=31536000"
Start with a short max-age such as 300 to test, then raise it. The SSL config generator on this site writes the complete configuration.
Questions and answers
- What is the HSTS preload list?
- A list of domains that Chrome, Firefox, Safari and Edge ship with. For these domains the browser uses HTTPS from the first visit. You submit a domain at hstspreload.org once the header has max-age of a year, includeSubDomains and preload.
- Can I undo HSTS?
- Send the header with max-age=0 and browsers forget the rule on their next visit. Removal from the preload list takes months, so add preload only when you are sure.
- Why does the header on the bare domain matter when I redirect to www?
- Browsers store HSTS per host name. If example.com redirects to www.example.com without sending the header itself, a visitor who types example.com is unprotected every time.


