Skip to content

docs(robots): disallow /cdn-cgi/ (clears Ahrefs email-protection 404 errors)#9

Open
LeonTing1010 wants to merge 1 commit into
mainfrom
fix/robots-disallow-cdn-cgi
Open

docs(robots): disallow /cdn-cgi/ (clears Ahrefs email-protection 404 errors)#9
LeonTing1010 wants to merge 1 commit into
mainfrom
fix/robots-disallow-cdn-cgi

Conversation

@LeonTing1010
Copy link
Copy Markdown
Owner

What

Adds Disallow: /cdn-cgi/ to docs/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 rewriting hello@/support@taprun.dev. Crawlers strip the #fragment and hit the bare URL (404), counted across 14 pages × utm/.html variants ≈ 18 errors. Real users are unaffected (Cloudflare's JS restores the mailto on click) — these are SEO phantom errors.

Fix

  • Root cause already fixed out-of-band: email_obfuscation zone setting set to off (verified — live HTML now serves 0 /cdn-cgi/ links, real mailto: restored).
  • This PR: 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

…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant