---
title: "GPTBot User Agent: What It Does & How to Block It | Justin Hà"
description: "GPTBot is OpenAI'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-crawlers/gptbot/"
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 Training Crawlers](https://justinha.info.vn/bots/ai-crawlers/)

# GPTBot *user agent*

Operated by [OpenAI](https://justinha.info.vn/bots/company/openai/)

AI trainingOfficial docs Your choice

GPTBot is OpenAI's web crawler that collects public pages which may be used to train OpenAI's foundation models.

## What identifies GPTBot?

- GPTBot is operated by **OpenAI** and collects public web pages that may be used to train AI models.
- The robots.txt token for GPTBot is **GPTBot**.
- A training-only usage preference is separate from Search crawling; check whether this token has additional roles.
- GPTBot robots.txt support: **Yes**.
- Recommendation for Generative Engine Optimization (GEO): **Your choice**.

## What is GPTBot?

GPTBot crawls public web pages that OpenAI may use to train its generative AI models, including the models behind ChatGPT.

OpenAI runs GPTBot separately from OAI-SearchBot, so a site can opt out of training while staying visible in ChatGPT search.

- Blocking GPTBot does not remove a site from ChatGPT search results.
- OpenAI publishes GPTBot's IP ranges as a JSON file.

## Should you block GPTBot?

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

| Effect on search rankings | A training-only usage preference is separate from Search crawling; check whether this token has additional roles. |
| --- | --- |
| Effect on AI visibility | 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. |
| Follows robots.txt | Yes |
| Recommendation | Your choice |

## When does GPTBot visit your site?

GPTBot visits on OpenAI's own schedule. A person asking ChatGPT a question does not send GPTBot to your site: that visit comes from ChatGPT-User, and the pages shown in ChatGPT search are collected by OAI-SearchBot.

OpenAI does not publish how often GPTBot returns to a website. The server access log shows the real pattern for your site: count requests that carry the GPTBot token per day and per URL.

When a site allows both GPTBot and OAI-SearchBot, OpenAI says it may run one crawl and use the result for both purposes, so a single GPTBot or OAI-SearchBot visit in the log can serve training and search at once.

## Why did OpenAI create GPTBot?

OpenAI created GPTBot to collect public web content that may help improve its generative AI foundation models, the models behind ChatGPT.

OpenAI keeps training separate from search on purpose. A robots.txt rule for GPTBot tells OpenAI that a site's content should not be used for training, while OAI-SearchBot keeps its own, independent rule for ChatGPT search. A website can therefore opt out of training without leaving ChatGPT search.

## What GPTBot means for GEO

AI products use web content in two ways: they learn from it when a model is trained, and they retrieve it live when they answer a question. GPTBot controls only the first path.

| What changes | If you allow it | If you block it |
| --- | --- | --- |
| **Future model training** | Public pages can become part of the data OpenAI uses to train future models. | OpenAI treats the rule as a request that the site's content is not used for training. |
| **What ChatGPT knows about your brand without searching** | Future models can learn the brand, products and terminology directly from your pages. | Future models learn about the brand only from other websites that mention it. |
| **Citations and links in ChatGPT search** | No change: search visibility depends on OAI-SearchBot. | No change while OAI-SearchBot stays allowed. OpenAI states the two settings are independent. |
| **Pages a user asks ChatGPT to open** | No change: these visits use ChatGPT-User. | No change: these visits use ChatGPT-User. |
| **Google and Bing rankings** | No effect. | No effect. |

## GPTBot vs other OpenAI bots

OpenAI 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 |
| --- | --- | --- | --- |
| **GPTBot** | AI training | Yes | 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. |
| [OAI-SearchBot](https://justinha.info.vn/bots/ai-search/oai-searchbot/) | AI search | Yes | Restricting access can limit future retrieval or discovery in that service. Citations and removal of already indexed content are not guaranteed. |
| [ChatGPT-User](https://justinha.info.vn/bots/ai-assistants/chatgpt-user/) | AI assistant | Not for user-requested fetches | A blocked request may fail, but a product can use cached content or other sources. Check documented robots exceptions. |
| [ChatGPT Agent](https://justinha.info.vn/bots/ai-agents/chatgpt-agent/) | AI agent | Not documented | Restricting an agent can interrupt the task it is performing. It does not establish a measured effect on sales or AI citations. |
| [OAI-AdsBot](https://justinha.info.vn/bots/platform-fetchers/oai-adsbot/) | Ads | Not documented | Blocking may interrupt a dependent feature. Test the specific service instead of assuming a universal AI effect. |

## Should your type of site allow GPTBot?

| News sites and publishers | Blocking GPTBot keeps articles out of future training, which suits content with licensing value. Keep OAI-SearchBot allowed if ChatGPT search should still cite and link the articles. |
| --- | --- |
| E-commerce | Allow GPTBot if future models should know the brand, product range and store policies. Block cart, checkout and account paths instead of the whole site. |
| SaaS and B2B | Allow. Documentation, comparison and pricing pages that models learn from help ChatGPT describe the product correctly when it answers without searching. |
| Local businesses and services | Allow. A small site gains little from blocking, and training data is one way models learn its services and service area. |
| Paywalled or licensed content | Block GPTBot for those sections and keep them behind a login, because robots.txt only asks well-behaved bots to stay away. |

## Common mistakes with GPTBot

- Blocking GPTBot to leave ChatGPT search. ChatGPT search uses OAI-SearchBot; block that token instead if the goal is to leave ChatGPT search.
- Blocking every OpenAI bot with one broad rule such as "User-agent: \*" plus "Disallow: /" while trying to stop only GPTBot. Write a separate robots.txt group for each OpenAI token.
- Assuming robots.txt works backwards. The rule tells GPTBot what it may crawl next; OpenAI's documentation does not describe it as removing data collected earlier.
- Trusting the user agent alone. Any client can send "GPTBot"; check the request IP against OpenAI's published GPTBot IP list before acting on log data.

## How do you block or allow GPTBot?

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 **GPTBot** is matched case-insensitively.

robots.txt: block

```
# Block GPTBot
User-agent: GPTBot
Disallow: /
```

robots.txt: allow

```
# Allow GPTBot
User-agent: GPTBot
Allow: /
```

robots.txt: partial

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

Nginx

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

Apache

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

Cloudflare WAF

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

## How can you verify GPTBot traffic?

OpenAI publishes the IP ranges that GPTBot uses. A request outside the current published list does not pass that IP check. Investigate before granting an exception.

[Official GPTBot IP ranges](https://openai.com/gptbot.json)

## How do you find GPTBot in server logs?

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

```
grep -iF -- 'GPTBot' 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à.

## What user-agent string does GPTBot use?

A user-agent sample recorded in the cited source for GPTBot. Version numbers such as ` Chrome/W.X.Y.Z ` change over time, so match the token, not the whole string.

```
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; GPTBot/1.4; +https://openai.com/gptbot
```

## GPTBot FAQ

Does blocking GPTBot remove my site from ChatGPT?

No. GPTBot only collects training data. ChatGPT search results come from OAI-SearchBot, which follows its own robots.txt rule, so a site that blocks GPTBot but allows OAI-SearchBot can still be cited and linked in ChatGPT search.

Is GPTBot the same as ChatGPT-User?

No. GPTBot crawls on OpenAI's schedule to collect training data. ChatGPT-User visits a page only when a ChatGPT user's request needs it, and OpenAI says robots.txt rules may not apply to those user-initiated visits.

How long does a GPTBot robots.txt change take to apply?

OpenAI does not state a delay for GPTBot. For OAI-SearchBot, OpenAI says its search systems adjust about 24 hours after a robots.txt update.

What is the GPTBot user agent?

GPTBot identifies itself with the robots.txt token "GPTBot". A typical request header reads: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; GPTBot/1.4; +https://openai.com/gptbot

Does GPTBot respect robots.txt?

OpenAI states that GPTBot follows robots.txt rules. Check the documented scope and any exceptions on this profile.

Will blocking GPTBot hurt my SEO?

A training-only usage preference is separate from Search crawling; check whether this token has additional roles. 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.

How do I block GPTBot in robots.txt?

Add two lines to the robots.txt file at the root of each domain and subdomain: "User-agent: GPTBot" 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 GPTBot?

Yes. OpenAI publishes the IP ranges GPTBot uses. Check the request IP against that list; a source outside the current list does not pass that check. Investigate before granting an exception.

How do I see if GPTBot visits my website?

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

Sources: [OpenAI crawler documentation](https://developers.openai.com/api/docs/bots). Content updated November 12, 2026 by [Justin Hà](https://justinha.info.vn/about/).

## Related bots

[ChatGPT Agent OpenAI AI agent](https://justinha.info.vn/bots/ai-agents/chatgpt-agent/)   [ChatGPT-User OpenAI AI assistant](https://justinha.info.vn/bots/ai-assistants/chatgpt-user/)   [OAI-AdsBot OpenAI Ads](https://justinha.info.vn/bots/platform-fetchers/oai-adsbot/)   [OAI-SearchBot OpenAI AI search](https://justinha.info.vn/bots/ai-search/oai-searchbot/)   [AI2Bot Ai2 AI training](https://justinha.info.vn/bots/ai-crawlers/ai2bot/)   [Ai2Bot-Dolma Ai2 AI training](https://justinha.info.vn/bots/ai-crawlers/ai2bot-dolma/)

## 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/)
