---
title: "GrokBot User Agent: What It Does & How to Block It"
description: "GrokBot is xAI's bot that collects public web pages that may be used to train AI models. See its user agent, robots.txt rules and SEO impact."
url: "https://justinha.info.vn/bots/ai-search/grokbot/"
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://justinha.info.vn/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

[AI Search Crawlers](https://justinha.info.vn/bots/ai-search/)

# GrokBot *user agent*

Reported operator: [xAI](https://justinha.info.vn/bots/company/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**.

Reported identity: check the source limitations

An operator policy confirming this exact GrokBot identity has not been established by the sources recorded here. This profile relies on a public source ([see source](https://github.com/ai-robots-txt/ai.robots.txt)), so treat its purpose and robots.txt behaviour as best available information, and treat a matching user agent in your logs as a clue rather than proof.

## 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 rankings | An AI search crawler is distinct from a conventional search engine crawler; check any documented shared roles. |
| --- | --- |
| Effect on AI visibility | Restricting access can limit future retrieval or discovery in that service. Citations and removal of already indexed content are not guaranteed. |
| Follows robots.txt | Not documented |
| Recommendation | Your 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 changes | If you allow it | If you block it |
| --- | --- | --- |
| **Citations and links in Grok answers** | Pages 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 Grok** | Cited links can send visitors to the site. | No new referral visits from Grok search answers. |
| **Model training** | Not documented by xAI. | Not documented by xAI. |
| **Google and Bing rankings** | No 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.

| Bot | Job | robots.txt | If you block it |
| --- | --- | --- | --- |
| **GrokBot** | AI training, AI search | Not documented | Restricting access can limit future retrieval or discovery in that service. Citations and removal of already indexed content are not guaranteed. |
| [xAI-Grok](https://justinha.info.vn/bots/ai-crawlers/xai-grok/) | AI training | Not documented | A 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 publishers | Allow if Grok should cite and link articles. Block only paywalled sections. |
| --- | --- |
| E-commerce | Allow product, category and help pages so Grok can recommend and link them. Block cart, checkout and account paths. |
| SaaS and B2B | Allow. Documentation and comparison pages are what Grok cites when users compare tools. |
| Local businesses and services | Allow. 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](https://justinha.info.vn/ai-log-file-analyzer-tool/), a free tool by Justin Hà.

## GrokBot FAQ

Should I allow GrokBot for GEO?

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.

Does GrokBot use my content to train AI models?

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

What is the GrokBot user agent?

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.

Does GrokBot respect robots.txt?

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.

Will blocking GrokBot hurt my SEO?

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.

How do I block GrokBot in robots.txt?

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.

How can I verify a request really comes from GrokBot?

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.

How do I see if GrokBot visits my website?

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](https://github.com/ai-robots-txt/ai.robots.txt). Content updated November 12, 2026 by [Justin Hà](https://justinha.info.vn/about/).

## Related bots

[xAI-Grok xAI AI training](https://justinha.info.vn/bots/ai-crawlers/xai-grok/)   [AddSearchBot AddSearch AI search](https://justinha.info.vn/bots/ai-search/addsearchbot/)   [AI Search External Cloudflare AI search](https://justinha.info.vn/bots/ai-search/cloudflare-ai-search-external/)   [AIWebIndex Lyrenth AI search](https://justinha.info.vn/bots/ai-search/aiwebindex/)   [Alphalens Bot Alphalens AI search](https://justinha.info.vn/bots/ai-search/alphalens-bot/)   [amazon-kendra Amazon AI searchProduct feature](https://justinha.info.vn/bots/ai-search/amazon-kendra/)

## 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.

[Analyze your AI bot traffic free](https://justinha.info.vn/ai-log-file-analyzer-tool/) [See the GEO Technical Package](https://justinha.info.vn/geo-ai-branding/technical-package/)
