Links from an HTTPS page to an http:// destination
A link that drops the visitor to plain HTTP hands their next request to the network. squirrel flags every explicit http:// link on an HTTPS page.
What an HTTPS downgrade link is
A downgrade link is an <a href="http://..."> on a page that was itself served over HTTPS. Unless something upgrades it first, following it takes the visitor to an unencrypted connection where the request and the response can be read and modified in transit. HSTS on the destination host, or a browser in HTTPS-only mode, will rewrite or block it, which is protection you do not control from your own markup.
This is separate from mixed content. Mixed content is about subresources the page loads itself, which the browser blocks or upgrades on its own. A navigation link gets no such treatment from the page: whether it is upgraded depends on the destination’s policy and the visitor’s browser settings.
What squirrel checks
The rule runs on every crawled page. Cloudflare’s email address obfuscation links (/cdn-cgi/l/email-protection) are never counted as http:// links: a browser turns them into mailto: addresses. It emits a single check named https-downgrade:
- Info when the page itself is not HTTPS, since there is nothing to downgrade from. Message:
Page is not HTTPS, downgrade check not applicable. - Warn when any
a[href]has an href that literally starts withhttp://. Message:4 link(s) downgrade to HTTP, with each href listed. Severity warning, weight 5. - Pass otherwise. Message:
No HTTPS to HTTP downgrades.
The test is on the raw attribute text, so protocol-relative hrefs such as //example.org/page are not flagged, and neither is a relative link. The check does not distinguish internal from external destinations.
When the page’s links carry a link section (see Page Classifier), each item says where its link sits and carries the counts in meta.sections, for example http://other.example/x, linked in the footer. A link the page markup and the classifier could not place, and a crawl whose links carry no section, keep the plain item. A placed item also carries regions, one page per section, so a downgrading link in the site footer of most pages is reported once for the footer. See findings in a shared page region.
How to fix it
<a href="https://example.org/reference">Reference</a>Change the scheme where the link is authored. For internal links this is always the right fix, since your own site serves HTTPS. For an external destination, check that the target actually supports HTTPS before rewriting, and reconsider linking there at all if it does not.
| Rule ID | links/https-downgrade |
| Category | Links |
| Scope | Per-page |
| Severity | warning |
| Weight | 5/10 |
Enable / disable
Disable this rule
[rules]
disable = ["links/https-downgrade"]Disable all Links rules
[rules]
disable = ["links/*"]Enable only this rule
[rules]
enable = ["links/https-downgrade"]enable replaces the default ["*"], so this is the only rule selected. Leave disable out: a rule that matches any disable pattern is skipped even when enable names it. Only an enabled setting under a rule’s own [rule_options] table overrides both lists.
Check names by outcome
Each check name this rule can emit, by what it means to a tool comparing two audits. A problem check is a finding. A clean check says the rule ran over what it covers and found nothing; it clears the problem checks listed beside it, so a finding is fixed when the rule ran over the same scope and a clean check took its place. A not checked check says the rule did not evaluate, and never clears a finding.
| Check name | Outcome | Clears |
|---|---|---|
https-downgrade | Problem | |
https-downgrade | Clean | https-downgrade |
Related rules
- security/mixed-content: subresources loaded over HTTP, which browsers do block.
- security/https: whether the page itself is served over HTTPS.
- security/http-to-https: whether the HTTP forms of your own URLs redirect.
- links/external-links: the outbound links this rule reads.
Links findings ship in every audit next to the SEO, performance and agent experience rules. See Fix SEO issues with AI for how an agent works through a report.
Glossary: HTTPS.
References
Check your site
Run squirrel audit https://nutshop.squirrelscan.com and open the Links section of the report. Every downgrading link is listed with its href. Signed-out local audits need no account and cost nothing. Signed-in audits spend credits.