Skip to content

Technical pillar / check https-hsts

HTTPS and HSTS: is the site served securely, and do browsers keep it that way?

We request your homepage, follow its redirects and check whether the final address uses HTTPS and its response carries a Strict-Transport-Security header with a positive max-age. Google has used HTTPS as a ranking signal since 2014, and HSTS makes browsers refuse to load your site over plain HTTP.

By , Founder and CEO, Own The Climb · Last updated

This is how we check it

We check that your homepage is served over HTTPS and that it tells browsers to keep using HTTPS.

  • We check the final address our request reached after redirects.
  • We read the HSTS header on that response and check that its max-age is positive.
  • We do not request the HTTP twin just to test its redirect or check every subdomain.

Our reasoning behind this

Google prefers HTTPS when choosing between equivalent pages. HSTS tells a browser that has learned the policy to keep using HTTPS while its max-age remains valid, which helps protect later visits.

“Google prefers HTTPS pages over equivalent HTTP pages as canonical”
Google Search Central, How to specify a canonical URL

How we would fix it on your site

  1. Serve every page over HTTPS with a valid certificate; most hosts and CDNs issue one for free.
  2. Redirect every http:// address to its https:// twin with a permanent redirect.
  3. Update internal links, canonical tags and your sitemap to the https:// addresses.
  4. Set a positive HSTS max-age. Add includeSubDomains only after every subdomain serves HTTPS, and read the full preload requirements below before requesting preload.

Once your change is live, run the audit again and review the new findings alongside the pages it covered.

How to make the change on your platform

What to do on each platform
PlatformWhat to do
WordPressSet the WordPress Address and Site Address to https:// under Settings, General, then add the header at your host or CDN (Cloudflare: SSL/TLS, Edge Certificates, HTTP Strict Transport Security).
Shopify, Squarespace and WixEach serves your domain over HTTPS with a free certificate and redirects HTTP for you. Confirm that SSL is active for the custom domain in the domain settings.
Next.jsVercel serves HTTPS and, by its own documentation, sends Strict-Transport-Security with max-age=63072000 on custom domains by default. On other hosts, add the header in the headers() function of next.config.

What we want you to review

  • Redirect the HTTP address permanently to HTTPS so old links resolve to the secure page.
  • Check the HSTS header across the relevant paths and hosts, including the www and bare-domain versions.
  • Enable includeSubDomains or preload only after every affected subdomain serves HTTPS. Browsers can otherwise refuse those subdomains, and removal from the preload list takes time.
  • Send HSTS over HTTPS; browsers ignore the header on an HTTP response.

The exact rules our audit applies

We wrote this part for your developer or your SEO specialist. It sets out the inputs, scoring rules and confidence limits we publish for this check, together with the full explanation of how we would fix a finding.

The inputs we describe for this check

Two things, once per audit, on your homepage. We request the address you entered with our own plain HTTP request and follow its redirects; the check judges the final address that request landed on and the headers of that final response. The address you entered is kept only as evidence of the redirect, and a browser render of the page does not change which address or headers are judged.

If that request did not complete, we use the address and headers of the read we have. First, whether the final address starts with https://. Second, when it does, whether that response has a Strict-Transport-Security header and whether its max-age is a number of seconds above zero.

We quote the header as we received it. When we read the page through a service that does not pass on response headers, we say so and do not grade the header. We do not test your TLS certificate, older TLS versions or whether every subdomain serves HTTPS.

Our full reasoning

Google announced on 2014-08-07 that it was "starting to use HTTPS as a ranking signal", at the time "a very lightweight signal" affecting "fewer than 1% of global queries". Its canonicalization guide says "Google prefers HTTPS pages over equivalent HTTP pages as canonical", so the HTTPS address is the one that collects your links and appears in results, including the supporting links in AI answers.

HSTS is the browser half: MDN describes it as the header that "informs browsers that the host should only be accessed using HTTPS", after which the browser upgrades http:// links itself and will not let a visitor click through a certificate error.

Browsers ignore the header when it is sent over HTTP, and RFC 6797 says a max-age of zero tells the browser to stop treating the site as an HSTS host, which is why we require a positive max-age. HSTS is a security measure: Google does not list it as a ranking signal, so we score its absence as LOW.

How we score what we find

Measured, once per audit, on the final address our HTTP request for your homepage landed on after redirects, not on the address you entered: a typed http:// address that redirects to https:// is judged as HTTPS. A final address on HTTP is a HIGH technical finding. A page served over HTTPS without a Strict-Transport-Security header, or with one whose max-age is 0 or missing, is a LOW finding.

HTTPS with a positive max-age passes. Headers we could not see are shown as not measured and do not count toward the score.

How sure we are of each result

HIGH. The scheme is read from the final address our HTTP request reached, and the header from that final response. A CDN can send different headers to different visitors, so check the response in your own browser developer tools as well.

How to fix it, in full

First, serve every page over HTTPS with a valid certificate; most hosts and CDNs issue one for free. Second, redirect every http:// address to its https:// twin with a permanent (301 or 308) redirect. Third, update internal links, canonical tags and your sitemap to the https:// addresses.

Fourth, add the header "Strict-Transport-Security: max-age=63072000; includeSubDomains" on HTTPS responses once every subdomain serves HTTPS; start with a short max-age such as 300 seconds if you are unsure, then raise it. Add preload only if you plan to submit the domain at hstspreload.org, which requires a max-age of at least one year and includeSubDomains. Then re-run the audit.

The sources we rely on

What we have changed on this page

  • · Rewritten in plain words: what we check, why it matters and how to fix it come first, and the full rules sit one click down. We corrected the full rules to describe only what we check today.
  • · This page now says the same thing in every section: the check judges the final address our own plain HTTP request for your homepage reached after redirects, with the headers of that final response. The address you entered is kept only as evidence of the redirect, and a browser render of the page does not change the result.
  • · Initial publication. The check now judges the address the page was served from after redirects, so a typed http:// address that redirects to https:// passes, and a header with max-age=0 or no max-age no longer counts as HSTS.