AI Search Crawlers

GrokBot user agent

Reported operator: xAI

AI trainingAI searchReported Your choice

GrokBot is a user agent reported for xAI, linked to collecting web content for Grok.

What identifies GrokBot?

  • GrokBot is operated by xAI and collects public web pages that may be used to train AI models, and indexes web pages so an AI search product can show and cite them in answers.
  • The robots.txt token for GrokBot is GrokBot.
  • An AI search crawler is distinct from a conventional search engine crawler; check any documented shared roles.
  • GrokBot robots.txt support: Not documented.
  • Recommendation for Generative Engine Optimization (GEO): Your choice.

What is GrokBot?

Public registries list GrokBot as an xAI crawler connected to Grok search and model training.

xAI has not published a crawler page, so its exact purpose is not confirmed.

Should you block GrokBot?

Choose whether to allow GrokBot based on its documented purpose, the service you use and the load it places on your website.

Effect on search rankingsAn AI search crawler is distinct from a conventional search engine crawler; check any documented shared roles.
Effect on AI visibilityRestricting access can limit future retrieval or discovery in that service. Citations and removal of already indexed content are not guaranteed.
Follows robots.txtNot documented
RecommendationYour choice

When does GrokBot visit your site?

xAI has not published documentation for GrokBot. Public bot registries list it as a crawler for Grok's search features, so its schedule is unknown.

Why did xAI create GrokBot?

Public registries link GrokBot to Grok search and model training. xAI has not documented which.

xAI runs GrokBot separately from its other bots so a website can stay visible in Grok search while making a different choice about other uses.

What GrokBot means for GEO

GrokBot controls whether Grok can retrieve and cite your pages when it answers. That is the GEO path that sends visible citations and visits.

What changesIf you allow itIf you block it
Citations and links in Grok answersPages can enter the index that Grok searches, so answers can cite and link them.Pages leave that index, so Grok answers can no longer cite or link them.
Referral visits from GrokCited links can send visitors to the site.No new referral visits from Grok search answers.
Model trainingNot documented by xAI.Not documented by xAI.
Google and Bing rankingsNo effect.No effect.

GrokBot vs other xAI bots

xAI runs a separate bot for each job, and each bot follows its own robots.txt rule. Blocking one does not block the others.

BotJobrobots.txtIf you block it
GrokBotAI training, AI searchNot documentedRestricting access can limit future retrieval or discovery in that service. Citations and removal of already indexed content are not guaranteed.
xAI-GrokAI trainingNot documentedA rule can limit future collection or permitted uses under the operator policy. It does not undo prior collection or prove exclusion from every AI product.

Should your type of site allow GrokBot?

News sites and publishersAllow if Grok should cite and link articles. Block only paywalled sections.
E-commerceAllow product, category and help pages so Grok can recommend and link them. Block cart, checkout and account paths.
SaaS and B2BAllow. Documentation and comparison pages are what Grok cites when users compare tools.
Local businesses and servicesAllow. Being citable in Grok is a low-cost way to be recommended for local questions.

Common mistakes with GrokBot

  • Letting a CDN or security plugin block GrokBot by default. Check the server log for GrokBot requests that receive 403 responses.
  • Blocking every xAI bot with one broad rule. Write a separate robots.txt group for each token.

How do you block or allow GrokBot?

Put the robots.txt rule in the file at the root of every domain and subdomain, for example https://example.com/robots.txt. The token GrokBot is matched case-insensitively. robots.txt alone may not stop GrokBot, so add the Nginx, Apache or Cloudflare rule as well.

robots.txt: block

# Block GrokBot
User-agent: GrokBot
Disallow: /

robots.txt: allow

# Allow GrokBot
User-agent: GrokBot
Allow: /

robots.txt: partial

# Keep GrokBot out of private areas only
User-agent: GrokBot
Disallow: /wp-admin/
Disallow: /cart/
Disallow: /checkout/
Disallow: /my-account/
Allow: /

Nginx

# Nginx: return 403 to GrokBot
if ($http_user_agent ~* "(GrokBot)") {
    return 403;
}

Apache

# Apache .htaccess: return 403 to GrokBot
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (GrokBot) [NC]
RewriteRule .* - [F,L]

Cloudflare WAF

# Cloudflare > Security > WAF > Custom rule, action: Block
(http.user_agent contains "GrokBot")

How can you verify GrokBot traffic?

No IP list or reverse-DNS method for GrokBot is linked in this profile. The header alone cannot authenticate the sender. Anyone can send the same string. Rate-limit unusual volume instead of trusting the name.

How do you find GrokBot in server logs?

Search the web server access log for the literal identifier. The command below counts candidate GrokBot requests per URL on Nginx or Apache.

grep -iF -- 'GrokBot' access.log | awk '{print $7}' | sort | uniq -c | sort -rn | head -20

For a full report per AI bot, upload the log to the AI Log File Analyzer, a free tool by Justin Hà.

GrokBot FAQ

Yes, if the site should be cited in Grok answers. GrokBot builds the index that Grok search draws on, so blocking it removes the site from those answers.

xAI has not documented whether GrokBot data is used for training.

GrokBot uses the robots.txt token "GrokBot". No full user-agent sample is recorded in this profile. Treat a token match as a candidate identity, not authentication.

A robots.txt policy for GrokBot has not been established in the sources reviewed for this profile. Treat a robots rule as advisory and use server access controls when necessary.

An AI search crawler is distinct from a conventional search engine crawler; check any documented shared roles. Restricting access can limit future retrieval or discovery in that service. Citations and removal of already indexed content are not guaranteed.

Add two lines to the robots.txt file at the root of each domain and subdomain: "User-agent: GrokBot" followed by "Disallow: /". The token is case-insensitive. Operator fetch schedules and caching policy determine when a change is applied; check subsequent requests.

Not reliably. xAI verification is not established by the links recorded for GrokBot. Anyone can send the same user-agent string; investigate source addresses and request behavior before trusting it.

Search your server access log for "GrokBot", for example with: grep -i "GrokBot" access.log. The AI Log File Analyzer by Justin Hà counts visits per AI bot from an uploaded log file.

Sources: Public bot registry. Content updated by Justin Hà.

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.

Zalo logo Chat Zalo WhatsApp logo Chat WhatsApp