Skip to content

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

Merged
carlfredl merged 2 commits into
mainfrom
chore/add-robots-txt/2026-07-27
Aug 13, 2026
Merged

carlfredl merged 2 commits 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.txt → gtfs.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
@carlfredl
carlfredl merged commit 848a721 into main Aug 13, 2026
@carlfredl
carlfredl deleted the chore/add-robots-txt/2026-07-27 branch August 13, 2026 13:34
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.

2 participants