> AI agents: this is one page of nextanalytica's docs. The full index for agents: https://nextanalytica.app/llms.txt

# How do I block AI training but stay in ChatGPT search?

> Disallow the training crawlers in robots.txt and leave the search crawlers allowed: GPTBot out, OAI-SearchBot in.

Updated: 2026-12-01

Disallow the training crawlers in robots.txt and leave the search crawlers alone. For OpenAI, block `GPTBot` and keep `OAI-SearchBot` allowed: OpenAI says each setting is independent, and blocking OAI-SearchBot is what takes you out of ChatGPT search.

## How do you do it?

1. Add `User-agent: GPTBot` with `Disallow: /` to robots.txt.
2. Leave `OAI-SearchBot` allowed.
3. Do the same per owner: ClaudeBot, Google-Extended, Applebot-Extended, CCBot.

## What can you ask your agent?

- "Which AI crawlers still read the site after the robots.txt change?"

## Next steps

- [AI crawlers list](/docs/tracking/ai-crawlers-list)
- [GPTBot](/docs/tracking/bots/gptbot)

Canonical address: https://nextanalytica.app/docs/answers/block-ai-training-stay-in-chatgpt-search
