Skip to content

Cloudflare email-protection links: tel-mailto, nofollow-internal and https-downgrade read them as page links, and the crawl queues them from sitemaps and cached parses #838

Closed

Description

@nc9

Cloudflare's email address obfuscation rewrites mailto: links to /cdn-cgi/l/email-protection#<hex>. The original report (a 404 under links/broken-links) is fixed on main by #829 (pub#811): the link is not a broken link and is counted as an obfuscated contact link.

What is still wrong

Other code paths still treat the link as an internal page:

  • links/tel-mailto does not count it as a mailto link and does not check the decoded address.
  • links/nofollow-internal and links/https-downgrade judge it as a page link.
  • The crawler can still queue it from a sitemap or from a finding carried from an earlier audit, and from a cached page's stored links.
  • An older stored crawl that fetched the path as a page of its own still lists it. This one has no criterion below and is out of scope: once the crawl stops queueing the path (third criterion), the next crawl no longer fetches it.

Acceptance Criteria

  • links/tel-mailto counts a Cloudflare email-protection link as a mailto link and checks the decoded address; an address that does not decode is never reported as invalid or mismatched
  • links/nofollow-internal and links/https-downgrade never report a Cloudflare email-protection link
  • The crawler never enqueues the path from a sitemap or a carried finding, and drops it from a cached page's links before queueing
  • /cdn-cgi/image/... URLs are still checked as images
  • Regression tests cover the parser, the crawler queue and each rule above

Status

Draft #926 meets all five criteria: commit 211dcd9 on nc9/link-section-findings-rebased, with regression tests in packages/rules/tests/email-protection-838.test.ts, packages/crawler/tests/email-protection-838.test.ts and packages/crawler/tests/email-protection-838-sources.test.ts, next to main's parser and /cdn-cgi/image/ tests from #829. It is held for the combined Treetop merge, so the boxes stay unticked until it lands on main.

Activity

  1. added
    bug
    size: S
    rules
    on Oct 15, 2026
  2. changed the title [-]links/broken-links reports Cloudflare email obfuscation links (/cdn-cgi/l/email-protection) as 404s[/-] [+]Cloudflare email-protection links: tel-mailto, nofollow-internal and https-downgrade read them as page links, and the crawl queues them from sitemaps and cached parses[/+] on Oct 16, 2026
  3. nc9 commented on Oct 16, 2026

    @nc9
    ContributorAuthor

    Retitled and the acceptance criteria rewritten to the residual: the broken-links 404 was fixed by #829 (pub#811), found when the branch was rebased on current main. The remaining paths above still fail on main.

  4. nc9 commented on Oct 17, 2026

    @nc9
    ContributorAuthor

    The title and criteria still describe what is left on main, so they stay as they are and the issue stays open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrulessize: S

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions