Uh oh!
There was an error while loading. Please reload this page.
fix: add custom robots.txt with explicit AI-crawler Allow rules - #119
Open
mpot37 wants to merge 2 commits into
Open
fix: add custom robots.txt with explicit AI-crawler Allow rules#119mpot37 wants to merge 2 commits into
mpot37 wants to merge 2 commits into
Conversation
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 SummaryThe PR adds a custom root-level crawler policy that preserves the existing site-wide directives while explicitly allowing six AI crawlers.
Confidence Score: 5/5The 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
Reviews (2): Last reviewed commit: "fix: repeat wildcard exclusions in named..." | Re-trigger Greptile |
Uh oh!
There was an error while loading. Please reload this page.
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.
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 freeto 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
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.txtat the project root overrides the auto-generated one, served as-is (it does not carry over Mintlify's defaultContent-Signaldirective). So this file reproduces every directive currently being auto-generated in production:...and adds explicit
Allow: /blocks for GPTBot, OAI-SearchBot, ClaudeBot, anthropic-ai, PerplexityBot, and Google-Extended on top.Test plan
npx tsx scripts/check-geo-signals.tsand 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)https://docs.request.network/robots.txtto confirm no existing directive is dropped