Add robots.txt (allow all crawlers)#694
Open
fredericsimard wants to merge 3 commits into
Open
Conversation
Adds docs/en/robots.txt, which the English build copies to the site root (generated/robots.txt -> gtfs.org/robots.txt) — the only location crawlers read, so it is not duplicated per language. Blocks AI-training crawlers (GPTBot, Google-Extended, CCBot, PerplexityBot, Amazonbot, Bytespider, Applebot-Extended, ChatGPT-User) while allowing search/assistant bots (OAI-SearchBot, Claude-Web, ClaudeBot, anthropic-ai), and sets a Content-Signal of ai-train=no, search=yes, ai-input=no for all other agents. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Switch every per-bot rule from Disallow to Allow, so AI-training and assistant/search crawlers (GPTBot, ChatGPT-User, Google-Extended, CCBot, PerplexityBot, Amazonbot, Bytespider, Applebot-Extended, and the already-allowed OAI-SearchBot/Claude-Web/ClaudeBot/anthropic-ai) may all access the site. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Aligns the catch-all Content-Signal with the now allow-all crawler rules: training was previously signalled off (ai-train=no) while every bot was allowed, which was contradictory. Now ai-train=yes, search=yes, ai-input=no. Co-Authored-By: Claude Sonnet 5 <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.
Summary
Adds
docs/en/robots.txt, which the English build copies verbatim to the site root (generated/robots.txt→gtfs.org/robots.txt).Allow: /.User-agent: *withContent-Signal: ai-train=yes, search=yes, ai-input=noandAllow: /.Why here (not per-language)
robots.txt is only honored at the site root. Only the English config builds to
generated/(the root); every other language builds togenerated/<lang>/, where a robots.txt would be ignored by crawlers. So a single file underdocs/en/is the correct and sufficient placement.Verification
Built the English site locally and confirmed:
generated/robots.txtexists at the site root and is byte-for-byte identical to the source.Note for reviewers
The
Content-Signalwas intentionally set toai-train=yesto stay consistent with the allow-all rules (an earlier draft hadai-train=noalongside allow-all, which was contradictory). Confirm the allow-all training posture is the intended policy.