HSTS Checker — Verify HTTP Strict Transport Security Headers Online

CodexFuse Team · 2026-10-13T21:26:23.954Z · 6 min read min read

Check whether your own site sends the HSTS header that forces browsers to use HTTPS only.

An HSTS checker is an online tool that inspects a website's HTTP response headers and reports whether HTTP Strict Transport Security (HSTS) is configured. HSTS is a security header that tells browsers to load a site over HTTPS only, which closes the door on downgrade tricks where an attacker tries to push a visitor back onto plain HTTP. It is one of several headers worth setting: a Content-Security-Policy generator builds the strictest of the others, blocking injected scripts at the browser.

Many site owners assume that installing an SSL certificate finishes the job. It does not. HTTPS encrypts the connection, but without HSTS a browser will still accept a plain HTTP request if something redirects it there. You can check your own site in seconds with the HSTS Checker.

What Does HSTS Actually Do?

HSTS is a response header that instructs a browser to use HTTPS for every future visit to a domain for a set period. Once the browser has seen the header, it refuses to load the site over plain HTTP, even if a link, a redirect, or a typed address asks for the insecure version.

This matters because the first request to a site is the vulnerable one. A visitor who types example.com without https starts on plain HTTP. With HSTS, the browser upgrades the request to HTTPS before anything is sent, so the insecure version never loads.

What the checker looks at

The checker reads the strict-transport-security header from your own site and reports the values it finds: whether the header is present, how long the max-age period lasts, whether includeSubDomains is set so subdomains are covered too, and whether preload is requested. It flags common indicators such as a missing header or a very short max-age, but a clean result does not certify that a site is safe. It only confirms that this one header is present and readable.

How Do You Read an HSTS Checker Result?

Read the result in three parts: presence, max-age, and scope. A missing header means HSTS is not active at all. A short max-age means the protection expires quickly. Missing includeSubDomains means subdomains are not covered, so a subdomain served over plain HTTP stays exposed.

Start with presence. If the header is absent, no browser will enforce HTTPS-only loading for your domain. Next, look at max-age, measured in seconds: a short value is useful while testing, because a mistake expires quickly, and a longer value is what you want once the setup is stable.

Then check scope. includeSubDomains extends the rule to every subdomain, which matters if you run a blog, a shop, or a login page on subdomains. If any subdomain still serves content over plain HTTP, fix it first, because turning on includeSubDomains before that can break it. Preload asks browser makers to bake your domain into their built-in HTTPS-only lists, and it should only be requested once the setup is stable.

How Do You Set Up HSTS on Your Own Site?

Set up HSTS by confirming every page and subdomain works over HTTPS, adding the header with a short max-age for testing, then raising the max-age once the setup proves stable. Move slowly, because a long max-age with a broken HTTPS setup locks visitors out of the plain HTTP fallback you might need.

Begin with a full HTTPS check. Every page, image, script, and subdomain must load over HTTPS without warnings, because mixed content turns into real outages once HSTS is enforced. Fix certificate errors, redirect old HTTP URLs to HTTPS, and confirm your hosting serves the header on every response.

A fictional worked example

Fictional example: a small consultancy, Northline Advisors, runs its main site plus a client portal on a subdomain. The owner first enables HTTPS everywhere, then adds the HSTS header with a short max-age and includeSubDomains, and tests the site and the portal on two browsers over several days. With no errors showing, the owner raises the max-age to a longer value.

What Mistakes Should You Avoid With HSTS?

Avoid enabling HSTS before every subdomain works over HTTPS, avoid requesting preload on a new setup, and avoid treating the header as a complete security plan. HSTS protects the transport layer only, so it sits beside other protections rather than replacing them.

The most common mistake is turning on includeSubDomains while a forgotten subdomain still serves plain HTTP. That subdomain stops loading for visitors whose browsers have seen the header. List every subdomain, confirm HTTPS on each one, and only then extend the scope.

The second mistake is requesting preload too early. Preload lists are hard to leave once a domain is included, so keep preload off until the setup has run cleanly for a while. Finally, remember that HSTS does not fix a hacked site, a weak password, or an outdated plugin. If your site was compromised, follow a recovery plan such as the guide on what to do when a website is hacked, and treat HSTS as one layer in a wider review covered by a small business cybersecurity guide.

CodexFuse steps for checking your own site

Open the HSTS Checker, enter your own domain, and review the header values it reports. Fix a missing header or a short max-age at the server level, then recheck. If you would rather not manage headers, certificates, and server settings yourself, CodexFuse runs the whole stack as a fully managed platform on credits.

Stop leaving your HTTPS protection half-finished

CodexFuse gives you a fully managed platform on credits, so your hosting, certificates, and security headers are handled for you without server babysitting or surprise bills.

Get Started with CodexFuse

What Other Headers Should You Check Alongside HSTS?

HSTS is only one of seven headers a full scan checks. Run your domain through the free security headers scanner to see the rest: Content-Security-Policy, which blocks injected scripts; X-Frame-Options, which stops clickjacking; X-Content-Type-Options, which blocks MIME sniffing; plus Referrer-Policy, Permissions-Policy, and the legacy X-XSS-Protection. Most sites that pass an HSTS check still fail two or three of the others, so run the full scan before calling the job done. And since HSTS is worthless on a broken certificate, run a free SSL certificate check on the same domain first — enabling HSTS while the certificate is expired or mismatched locks visitors out of both HTTP and HTTPS. For a staging site that must stay private while you test, a basic auth generator builds the HTTP Basic Authentication header in seconds.

How Do You Run an HSTS Check? Four Reliable Ways

To run an HSTS check, read the Strict-Transport-Security response header of the site you want to verify. Any of these four methods works — pick the one closest to your tools:

  1. curl. curl -s -D- https://yoursite.com | grep -i strict prints the header straight from the server, for example Strict-Transport-Security: max-age=31536000; includeSubDomains.
  2. Browser DevTools. Open the site, press F12, go to the Network tab, reload, click the first request, and read the Response Headers for strict-transport-security.
  3. chrome://net-internals. In Chrome or Edge, open chrome://net-internals/#hsts, enter the domain under "Query HSTS/PKP domain", and click Query to see the browser's cached policy and expiry.
  4. An online HSTS checker. Enter your own domain in the HSTS Checker and read presence, max-age, subdomain scope, and preload in one place.

What you want to see: the header present, a long max-age once your setup is stable (one year — 31,536,000 seconds — is the common production value), includeSubDomains once every subdomain works over HTTPS, and preload only when the setup has run cleanly for a while. Preload-list eligibility needs all three: a max-age of at least one year, includeSubDomains, and the preload directive.

Frequently Asked Questions

Does HSTS replace my SSL certificate?

No. HSTS only tells browsers to use HTTPS, and HTTPS needs a valid certificate to work. Without a certificate, the browser has no secure connection to upgrade to, so the header alone protects nothing.

Can I use an HSTS checker on someone else's site?

Only check sites you own or have permission to test. Reading a public header is a lightweight request, but permissioned testing keeps you on safe ground, and only the site owner can act on the result anyway.

What happens if I set a long max-age and then break HTTPS?

Visitors whose browsers have cached the header will be unable to reach the plain HTTP version, and the browser will show an error until the header expires or HTTPS is fixed. That is why testing with a short max-age comes first.

Does HSTS protect every page on my site?

It protects the domain and, with includeSubDomains, its subdomains, but only for browsers that have already seen the header. A first-time visitor on a fresh browser gets protection only after the first HTTPS response carries the header.

Does a passing HSTS check mean my site is fully secure?

No. A passing check confirms that one header is present and readable. It does not certify that a site is safe, and it says nothing about passwords, plugins, or server patching. If you need help choosing support, see this guide on how to choose cybersecurity help when you are not technical.

How do I run an HSTS check on my own website?

Run curl -s -D- https://yoursite.com | grep -i strict and read the Strict-Transport-Security header, or enter your domain in the free HSTS Checker to read presence, max-age, subdomain scope, and preload in one place. Only check sites you own or have permission to test.

What is a good max-age for HSTS?

One year — 31,536,000 seconds — is the common production value, and it is also the minimum for preload-list eligibility. Test with a short max-age first: a mistake with a long max-age locks visitors out of the plain-HTTP fallback until the header expires.

Featured on Twelve Tools Hunt for Tools Featured on LaunchBuff Launch Llama Tools Launch your MCP Top Web Development Companies in the US - OnToplist.com Designer Listings Listed on SeeWhatNewAI Featured on SubmitMySaas Featured on AI Agents Directory Product Wing SaaS Wheel Featured on Stremit Featured on Thank John We Are Founders SubmitMySaas ShinyLaunch SaaS Tools Dir Featured on SaasHunt Product List Dir Featured on ShowMeBestAI Listed on Best-AI.org Featured on SaaSCity Listed on LaunchPact CodexFuse Solution on goodSaaS Featured on IndieLaunch Featured on BestAIApps AI X Collection Featured on SemiLaunch Listed on AlterBase We Like Tools codexfuse.dev LaunchClash Featured on Next Launch