---
title: "OpenAI Bots & Crawlers: 5 User Agents Explained"
description: "Every OpenAI bot (5) with its purpose, user agent and robots.txt token, and a single robots.txt block to allow or block all of them."
url: "https://justinha.info.vn/bots/company/openai/"
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/"
---

Bots by company

# OpenAI *bots and crawlers*

OpenAI operates ChatGPT and the GPT models. It runs separate bots for training, for ChatGPT search, for user-requested fetches and for ads.

## OpenAI bots at a glance

- OpenAI runs **5 bots** listed in this directory.
- They belong to: AI Agents, AI Assistant Fetchers, AI Training Crawlers, Ads and Platform Fetchers, AI Search Crawlers.
- Each OpenAI bot has its own robots.txt token, so each purpose can be allowed or blocked separately.
- Website: [openai.com](https://openai.com)

## Every OpenAI bot

| Bot | Group | Purpose | robots.txt | For GEO |
| --- | --- | --- | --- | --- |
| [ChatGPT Agent](https://justinha.info.vn/bots/ai-agents/chatgpt-agent/) | [AI Agents](https://justinha.info.vn/bots/ai-agents/) | AI agentReported | Not documented | Allow |
| [ChatGPT-User](https://justinha.info.vn/bots/ai-assistants/chatgpt-user/) | [AI Assistant Fetchers](https://justinha.info.vn/bots/ai-assistants/) | AI assistantOfficial docs | Not for user-requested fetches | Allow |
| [GPTBot](https://justinha.info.vn/bots/ai-crawlers/gptbot/) | [AI Training Crawlers](https://justinha.info.vn/bots/ai-crawlers/) | AI trainingOfficial docs | Yes | Your choice |
| [OAI-AdsBot](https://justinha.info.vn/bots/platform-fetchers/oai-adsbot/) | [Ads and Platform Fetchers](https://justinha.info.vn/bots/platform-fetchers/) | AdsOfficial docs | Not documented | Allow |
| [OAI-SearchBot](https://justinha.info.vn/bots/ai-search/oai-searchbot/) | [AI Search Crawlers](https://justinha.info.vn/bots/ai-search/) | AI searchOfficial docs | Yes | Allow |

## How to manage OpenAI 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** | [GPTBot](https://justinha.info.vn/bots/ai-crawlers/gptbot/) | 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** | [OAI-SearchBot](https://justinha.info.vn/bots/ai-search/oai-searchbot/) | 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. |
| **AI assistant** | [ChatGPT-User](https://justinha.info.vn/bots/ai-assistants/chatgpt-user/) | If readers use the associated assistant, test whether it can retrieve a representative public URL on request. A successful fetch does not show that the page is indexed. |
| **AI agent** | [ChatGPT Agent](https://justinha.info.vn/bots/ai-agents/chatgpt-agent/) (reported) | Test public read-only journeys separately from actions such as booking or checkout. Keep authentication and transaction checks in place. |
| **Ads** | [OAI-AdsBot](https://justinha.info.vn/bots/platform-fetchers/oai-adsbot/) | If you use the associated ad platform, test its landing-page review before tightening access. Keep paid campaign checks separate from organic search policy. |

## Block or allow all OpenAI bots

The rules below name every OpenAI 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 OpenAI bots
User-agent: ChatGPT Agent
User-agent: ChatGPT-User
User-agent: GPTBot
User-agent: OAI-AdsBot
User-agent: OAI-SearchBot
Disallow: /
```

robots.txt: allow

```
# Allow all OpenAI bots
User-agent: ChatGPT Agent
User-agent: ChatGPT-User
User-agent: GPTBot
User-agent: OAI-AdsBot
User-agent: OAI-SearchBot
Allow: /
```

robots.txt: partial

```
# Keep all OpenAI bots out of private areas only
User-agent: ChatGPT Agent
User-agent: ChatGPT-User
User-agent: GPTBot
User-agent: OAI-AdsBot
User-agent: OAI-SearchBot
Disallow: /wp-admin/
Disallow: /cart/
Disallow: /checkout/
Disallow: /my-account/
Allow: /
```

Nginx

```
# Nginx: return 403 to all OpenAI bots
if ($http_user_agent ~* "(ChatGPT Agent|ChatGPT\-User|GPTBot|OAI\-AdsBot|OAI\-SearchBot)") {
    return 403;
}
```

Apache

```
# Apache .htaccess: return 403 to all OpenAI bots
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (ChatGPT Agent|ChatGPT\-User|GPTBot|OAI\-AdsBot|OAI\-SearchBot) [NC]
RewriteRule .* - [F,L]
```

Cloudflare WAF

```
# Cloudflare > Security > WAF > Custom rule, action: Block
(http.user_agent contains "ChatGPT Agent") or (http.user_agent contains "ChatGPT-User") or (http.user_agent contains "GPTBot") or (http.user_agent contains "OAI-AdsBot") or (http.user_agent contains "OAI-SearchBot")
```

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