Skip to content
CitedByAudit a site

Checks / Links, canonical and speed

No HSTS header

Strict-Transport-Security makes browsers always use HTTPS, which prevents downgrade attacks.

hsts_missing · Links, canonical and speed · Notice

What triggers it

On a site that works over https, your home page's response has no Strict-Transport-Security header.

What to change

Send Strict-Transport-Security: max-age=31536000; includeSubDomains on HTTPS responses.

Example

Response headers to add on your server or CDN:

Strict-Transport-Security: max-age=31536000; includeSubDomains

How to confirm the fix

  1. Run curl -I https://example.com/ | grep -i strict-transport
  2. Run a new crawl

How common it is

We have not measured how common this is on a sample of sites. Counts appear here when a study covers it.

About this check

Check IDhsts_missing
Report sectionLinks, canonical and speed
SeverityNotice
How it is decidedMeasured: read directly from the page or the server's response.
AddedBefore 19 Oct 2026 (versions 1 and 2), or a site-wide check with no version date yet
StatusMeasured in every report
Report gives the codeYes, one block for the site

Settings by platform

Where the setting lives on a few platforms, from each platform's own help page, read on 26 October 2026. On any other server, apply the fix box above.

Cloudflare

In Cloudflare: Edge Certificates → Enable HSTS → Max Age Header, Apply HSTS policy to subdomains. (Cloudflare help page)

Cloudflare warns: if you remove HTTPS before turning HSTS off, or before the Max Age Header has run out, your site is unreachable for visitors until one of those happens.

Netlify

Netlify: put this in _headers. (Netlify help page)

/*
  Strict-Transport-Security: max-age=31536000; includeSubDomains

Vercel

Vercel: put this in vercel.json. (Vercel help page)

{
  "headers": [
    {
      "source": "/(.*)",
      "headers": [
        {
          "key": "Strict-Transport-Security",
          "value": "max-age=31536000; includeSubDomains"
        }
      ]
    }
  ]
}

Related checks

See whether it applies to your site

Paste your address and we crawl up to 10 pages and show every issue we find, with its fix. No account, no card.

Every plan crawls up to its page limit and lists these checks with the fix: plans.

How an audit works: method