docs(robots): disallow /cdn-cgi/ (clears Ahrefs email-protection 404 errors)#9
Open
LeonTing1010 wants to merge 1 commit into
Open
docs(robots): disallow /cdn-cgi/ (clears Ahrefs email-protection 404 errors)#9LeonTing1010 wants to merge 1 commit into
LeonTing1010 wants to merge 1 commit into
Conversation
…mail-protection 404s Cloudflare Email Address Obfuscation rewrites contact emails into /cdn-cgi/l/email-protection#<hex> links. Crawlers strip the fragment and hit the bare URL (404), which Ahrefs Site Audit reported as ~18 broken-link errors across page variants. Root cause already fixed by disabling email_obfuscation on the zone; this Disallow is belt-and-suspenders hygiene (everything under /cdn-cgi/ is Cloudflare-internal). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
Disallow: /cdn-cgi/todocs/robots.txt.Why
Ahrefs Site Audit reported ~18 "errors" for taprun.dev. A full self-crawl of all 268 internal URLs showed the site is HTTP-clean (266/268 → 200); the only 404 is
/cdn-cgi/l/email-protection, injected by Cloudflare Email Address Obfuscation rewritinghello@/support@taprun.dev. Crawlers strip the#fragmentand hit the bare URL (404), counted across 14 pages × utm/.htmlvariants ≈ 18 errors. Real users are unaffected (Cloudflare's JS restores the mailto on click) — these are SEO phantom errors.Fix
email_obfuscationzone setting set tooff(verified — live HTML now serves 0/cdn-cgi/links, realmailto:restored).Disallow: /cdn-cgi/is standard hygiene — everything under/cdn-cgi/is Cloudflare-internal and shouldn't be crawled regardless.Merge to deploy via GitHub Pages.
🤖 Generated with Claude Code