Skip to content

fix: add custom robots.txt with explicit AI-crawler Allow rules - #119

Open
mpot37 wants to merge 2 commits into
RequestNetwork:mainfrom
mpot37:add-custom-robots-txt
Open

fix: add custom robots.txt with explicit AI-crawler Allow rules#119
mpot37 wants to merge 2 commits into
RequestNetwork:mainfrom
mpot37:add-custom-robots-txt

Conversation

@mpot37

Copy link
Copy Markdown
Contributor

Summary

Fixes the "AI crawlers explicitly allowed (GPTBot / ClaudeBot / etc.)" severe finding from the check.outrun.at GEO audit, tracked internally as Linear REQ-271.

Confirmed with Mintlify support: a robots.txt at the project root overrides the auto-generated one, served as-is (it does not carry over Mintlify's default Content-Signal directive). So this file reproduces every directive currently being auto-generated in production:

User-agent: *
Content-Signal: ai-train=yes, search=yes, ai-input=yes
Disallow: /cdn-cgi/
Allow: /_next/image
Disallow: /_next/
Sitemap: https://docs.request.network/sitemap.xml

...and adds explicit Allow: / blocks for GPTBot, OAI-SearchBot, ClaudeBot, anthropic-ai, PerplexityBot, and Google-Extended on top.

Test plan

  • After merge + deploy, re-run npx tsx scripts/check-geo-signals.ts and confirm the robots.txt-related PLATFORM-GATED check can be upgraded (the script currently expects this to stay platform-gated per REQ-271 — worth updating once this lands)
  • Diffed against the live https://docs.request.network/robots.txt to confirm no existing directive is dropped

Mintlify auto-generates robots.txt but doesn't include explicit
per-bot Allow lines for AI crawlers (GPTBot, OAI-SearchBot, ClaudeBot,
PerplexityBot, Google-Extended) -- flagged severe in the check.outrun.at
GEO audit and tracked as Linear REQ-271.
Confirmed with Mintlify support that a project-root robots.txt
overrides the auto-generated one, but is served as-is (loses the
default Content-Signal directive) -- so this file reproduces every
directive from the current auto-generated robots.txt (Content-Signal,
the /cdn-cgi/ and /_next/ rules, the sitemap) and adds explicit
Allow: / blocks for each AI crawler on top.
@greptile-apps

greptile-appsBot commented Aug 14, 2026

Copy link
Copy Markdown

Greptile Summary

The PR adds a custom root-level crawler policy that preserves the existing site-wide directives while explicitly allowing six AI crawlers.

  • Repeats the content-use signal and internal-path rules in every named crawler group.
  • Publishes the existing sitemap location.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains; the named crawler groups now preserve the wildcard directives identified in the previous review.

Important Files Changed

FilenameOverview
robots.txtAdds explicit AI-crawler groups and now correctly carries the wildcard group’s content signal and path-specific rules into each named group.

Reviews (2): Last reviewed commit: "fix: repeat wildcard exclusions in named..." | Re-trigger Greptile

Comment threadrobots.txt
Per robots.txt group-matching rules, a crawler follows only the most
specific User-agent group that names it, not the wildcard group as
well. The named AI-crawler groups only had "Allow: /", so they were
bypassing the Content-Signal directive and the /cdn-cgi/ and /_next/
exclusions defined under User-agent: *.
Addresses Greptile review feedback on PR RequestNetwork#119.
Sign up for freeto 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

@mpot37