You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(rules): a link to a reserved or invalid domain suffix is reported as "not requested", and the pass message says all links work when some were not verified #1740
Corrected 2026-11-11 after a second test: the first version of this issue said an ordinary non-resolving domain is treated this way. It is not. A non-resolving name on a real TLD is reported as broken ("domain does not exist"). The problem is narrower, and described below.
Reproduced on the public demo site nutshop.squirrelscan.com (repo squirrelscan/nut-shop) with three of its external-link faults on. A cloud audit's links/broken-external-links result had these checks:
warnbroken-external-links: "1 broken external link(s): 1 failed", listing https://gone.nutshop-fault.squirrelscan.com/ with the error "domain does not exist". Correct.
inforefused-external-links: "1 external link(s) point at a private, link-local or cloud metadata address, or a name public DNS does not resolve, so they were not requested and their status was not checked", listing https://nut-supplier.invalid/.
With only the .invalid link on the site, the main check passes with "All 18 external link(s) are working".
Two problems:
A link to a reserved or non-existent suffix (.invalid, .test, .example, or a suffix that is not a TLD at all) is dead for every visitor. It is reported in a check written for addresses the audit refuses to request for safety (private, loopback, link-local, cloud metadata), whose status really is unknown. The reader is told the link "was not checked", not that it cannot work. The audit separately flags it as a development host reference, which is right, but the link result should say it is broken too.
The pass message says all external links are working while some links were refused, are awaiting confirmation or could not be verified. It should state what was verified.
Expected: a link whose host can never resolve is reported as broken with a reason that says so; the refused check covers only addresses refused for safety; the pass message counts only what was verified.
Acceptance Criteria
A link to a host under a reserved or invalid suffix is reported as broken by links/broken-external-links, with a reason such as "no such domain suffix", and is not listed under refused-external-links.
refused-external-links covers only private, loopback, link-local and metadata addresses, and its message no longer mentions DNS.
A non-resolving name on a real TLD is still reported as broken with "domain does not exist" (a regression test for today's behaviour).
A resolver failure (SERVFAIL or timeout) is "could not verify", not broken.
The main check's pass message states how many links were verified working out of how many were found, and never says all links are working when any were refused, unverified or awaiting confirmation.
The rule's solution text for a dead domain says that a lapsed domain can be re-registered by a third party.
Tests cover: a reserved suffix, a non-TLD suffix, NXDOMAIN on a real TLD, a resolver timeout, and a private address.
changed the title [-]fix(rules): a link to a host that does not resolve is reported as "not requested", not as broken[/-][+]fix(rules): a link to a reserved or invalid domain suffix is reported as "not requested", and the pass message says all links work when some were not verified[/+]on Nov 11, 2026
Activity
[-]fix(rules): a link to a host that does not resolve is reported as "not requested", not as broken[/-][+]fix(rules): a link to a reserved or invalid domain suffix is reported as "not requested", and the pass message says all links work when some were not verified[/+]feat(rules,engine): external links: confirmed broken fails (404, 410,…
nc9 commentedon Nov 12, 2026
Shipped in v0.0.179: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.179
Acceptance criteria checked against the tag; the change is 2ab28c8.
nik