chore: add robots.txt with AI crawler policy - #14
Open
fredericsimard wants to merge 1 commit 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.
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.txtis only honored at the site root. Only the English config builds togenerated/(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.Note for reviewers
The
Content-Signalwas intentionally set toai-train=yesto stay consistent with the allow-all rules. Confirm the allow-all training posture is the intended policy.