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 |
Block or allow all xAI bots
The rules below name every xAI token in this directory. To block training but keep AI search, delete the search and assistant tokens from the block rule.
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.