AI search · xAI
xAI-Bot
Fetches pages for Grok's web search and training. xAI publishes little about its crawler's behaviour.
- Operator
- xAI
- Purpose
- AI search indexers
- Feeds
- Grok
- robots.txt token
xAI-BotAlso:GrokBot- Honours robots.txt
- Undocumented
- Documentation
- None published
What it looks like in server logs
A representative user-agent string. Version numbers change; the xAI-Bot token does not. Paste your own log line into the user-agent checker to confirm a match.
Mozilla/5.0 (compatible; xAI-Bot/1.0; +https://x.ai/bot)How to block xAI-Bot
Add this to the robots.txt at the root of your domain. Robots.txt is advisory: it works only on crawlers that choose to read it. This one is undocumented. To enforce a block, match the user agent at your CDN or web server and return 403.
User-agent: xAI-Bot
User-agent: GrokBot
Disallow: /
To block every ai search indexer at once, or to block training while keeping AI search citations, use the robots.txt generator.
How to allow xAI-Bot while blocking others
A more specific User-agent group wins over a wildcard. Place this above any User-agent: * block that disallows paths, and xAI-Bot keeps full access.
User-agent: xAI-Bot
Allow: /
How to verify a genuine hit
The user-agent string is self-asserted: anyone can send it from a laptop, and scrapers routinely impersonate well-known crawlers to slip past filters aimed at unknown ones.
No published ranges.