Skip to content

chore: add robots.txt with AI crawler policy - #14

Open
fredericsimard wants to merge 1 commit into
mainfrom
chore/add-robots-txt/2026-07-27
Open

chore: add robots.txt with AI crawler policy#14
fredericsimard wants to merge 1 commit into
mainfrom
chore/add-robots-txt/2026-07-27

Conversation

@fredericsimard

Copy link
Copy Markdown
Contributor

Summary

Adds docs/en/robots.txt, which the English build copies verbatim to the site root (generated/robots.txtgtfs.org/robots.txt).

  • Lists the major AI/search crawlers (GPTBot, OAI-SearchBot, ChatGPT-User, Google-Extended, Claude-Web, ClaudeBot, anthropic-ai, CCBot, PerplexityBot, Amazonbot, Bytespider, Applebot-Extended) each with Allow: /.
  • Catch-all User-agent: * with Content-Signal: ai-train=yes, search=yes, ai-input=no and Allow: /.

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 to generated/<lang>/, where a robots.txt would be ignored by crawlers. So a single file under docs/en/ is the correct and sufficient placement.

Note for reviewers

The Content-Signal was intentionally set to ai-train=yes to stay consistent with the allow-all rules. Confirm the allow-all training posture is the intended policy.

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.
@fredericsimard fredericsimard self-assigned this Jul 27, 2026
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