Website and domain checks
HSTS checker for Strict-Transport-Security
This HSTS checker shows the policy a public HTTPS address sends, with each part of it explained.
- max-age explained
- includeSubDomains
- Preload notes
Free, no sign-up. Lookups and results are not saved by this site.
This tool needs JavaScript. Turn JavaScript on and reload the page.
HSTS checker
HSTS tells browsers to use only HTTPS for a website. This check reads the Strict-Transport-Security header from the final secure response and explains each part of it.
What you can do
-
Strict-Transport-Security header parsing
-
Valid, missing, turned off and malformed policies
-
max-age read safely, however large
-
includeSubDomains and preload notes
-
Warnings about the final host name and repeated headers
How to use the HSTS checker
-
Enter the address
Enter a public HTTPS address without a username, password or other private details.
-
Run the test
Start the test. A quick Cloudflare security check runs first, then this site checks the address and its redirects before connecting.
-
Read the result
Read the result, the evidence and the limits. If you change a server or CDN setting, run the test again.
How the HSTS checker works
HTTP Strict Transport Security tells browsers to use only HTTPS for a host name once they have seen a valid policy. This checker reads the first Strict-Transport-Security header from a short GET request and explains its max-age, whether it covers subdomains and the optional preload token.
Know the limits
Browsers only accept HSTS over a verified HTTPS connection and never store it for an IP address. A missing header does not rule out a policy inherited from a parent domain, cached in a browser or on a preload list. max-age=0 asks browsers to forget the host's policy but cannot remove a parent domain's or preload list's protection. The preload token is not proof of being on a browser's preload list, and the lists are not checked.
When the policy is ready, submit the domain at hstspreload.org. To review all security headers, use the HTTP header checker, and to set HSTS on a new server, use the Nginx config generator.
Frequently asked questions
What does HSTS max-age mean?
It is how many seconds a browser should remember the policy after getting it over a verified HTTPS connection. A value of 0 asks the browser to forget the stored policy for that host.
What does includeSubDomains do?
It applies the policy to the host's subdomains as well. Every affected subdomain needs working HTTPS first. This test does not check your subdomains.
Does preload mean the site is on a browser preload list?
No. The preload token is an opt-in signal that preload programs look for. This checker does not look up browser preload lists or confirm that a site can be submitted.
Why can a missing HSTS header still leave a browser protected?
Browsers may already have a stored policy, inherit one from a parent domain or use a preload list. This test looks at one server response and not at any browser's stored state.
Are these results for my origin server or my CDN?
The checker connects to the public URL. A CDN, reverse proxy or load balancer may answer instead, so the result does not show how your origin server itself is set up.
What is sent when I run a test?
Your URL and a fresh Cloudflare Turnstile response are sent to this site. After the security check, our server makes a few limited public requests. Page contents and cookies are not returned or saved.
What max-age should I use?
Start short, for example five minutes, while you confirm every page works over HTTPS, then raise it. One year is 31536000 seconds. The preload list needs at least that, plus includeSubDomains and preload.
How do I add HSTS in Nginx?
Add add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; to the HTTPS server block. Only add preload when you are ready to submit the domain.
Related tools
-
SSL checker
Check a website’s SSL certificate, chain, expiry and TLS versions, with fixes for each problem.
-
HTTP headers
Check a URL’s HTTP response headers and redirect chain.
-
Nginx
Generate an Nginx config for WordPress with TLS, caching, HTTP/2 and HTTP/3.
-
DNS lookup
Look up DNS records and check SPF, DMARC, DKIM and DNSSEC.