Bots by company
xAI bots and crawlers
xAI builds the Grok models and assistant.
xAI bots at a glance
- xAI runs 2 bots listed in this directory.
- They belong to: AI Search Crawlers, AI Training Crawlers.
- Each xAI bot has its own robots.txt token, so each purpose can be allowed or blocked separately.
- Website: x.ai
Every xAI bot
| Bot | Group | Purpose | robots.txt | For GEO |
|---|---|---|---|---|
| GrokBot | AI Search Crawlers | AI trainingAI searchReported | Not documented | Your choice |
| xAI-Grok | AI Training Crawlers | AI trainingReported | Not documented | Your choice |
How to manage xAI bot access by purpose
Review the role you need before making an operator-wide rule. A bot can appear in more than one row. Follow its profile for the exact token, evidence and policy exceptions.
| Purpose | Bots in this directory | What to check |
|---|---|---|
| AI training | GrokBot (reported), xAI-Grok (reported) | Decide which public material you are willing to make available for training. Review search access separately, and do not assume that blocking reverses previous collection. |
| AI search | GrokBot (reported) | If discovery in the associated AI product matters, test access to public pages you want it to find. Access alone does not guarantee inclusion or citations. |
Block or allow all xAI bots
The rules below name every xAI token in this directory. For a narrower rule, select the exact tokens from the purpose table above and check each profile for scope and exceptions.
robots.txt: block
# Block all xAI bots
User-agent: GrokBot
User-agent: xAI-Grok
Disallow: /robots.txt: allow
# Allow all xAI bots
User-agent: GrokBot
User-agent: xAI-Grok
Allow: /robots.txt: partial
# Keep all xAI bots out of private areas only
User-agent: GrokBot
User-agent: xAI-Grok
Disallow: /wp-admin/
Disallow: /cart/
Disallow: /checkout/
Disallow: /my-account/
Allow: /Nginx
# Nginx: return 403 to all xAI bots
if ($http_user_agent ~* "(GrokBot|xAI\-Grok)") {
return 403;
}Apache
# Apache .htaccess: return 403 to all xAI bots
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (GrokBot|xAI\-Grok) [NC]
RewriteRule .* - [F,L]Cloudflare WAF
# Cloudflare > Security > WAF > Custom rule, action: Block
(http.user_agent contains "GrokBot") or (http.user_agent contains "xAI-Grok")See which of these bots actually reach your website
The AI Log File Analyzer by Justin Hà counts visits from GPTBot, ClaudeBot, PerplexityBot and other AI crawlers in your server log, for free. The GEO Technical Package sets up robots.txt, llms.txt and crawler access for AI search.