Skip to content
Access

Allow AI search bots in robots.txt

· 6 min read
Short answer

Make sure robots.txt does not disallow the AI search and user-triggered bots (OAI-SearchBot, ChatGPT-User, Claude-SearchBot, Claude-User, PerplexityBot, Perplexity-User) from your homepage, product and category pages. You can still block training bots separately.

Why it matters

AI assistants answer shopping questions by fetching and citing pages. Each vendor runs a search crawler that builds its index and a separate fetcher that visits a page when a person asks about it. OpenAI states that sites opted out of OAI-SearchBot will not be shown in ChatGPT search answers, apart from navigational links. Anthropic states that blocking Claude-SearchBot prevents indexing for search and blocking Claude-User prevents retrieval in response to a user query.

These are different bots from the ones used for model training. OpenAI documents GPTBot (training) and OAI-SearchBot (search) as independent settings, Anthropic separates ClaudeBot from Claude-SearchBot and Claude-User, and Perplexity says PerplexityBot is not used to crawl content for AI foundation models. Blocking training does not require blocking search.

The most common cause of a failure is a broad rule written for another purpose: User-agent: * with Disallow: / left from staging, or a block list copied from a template that includes search bots alongside training bots.

We test six bots against your robots.txt for your homepage and one product page: OAI-SearchBot, Claude-SearchBot, PerplexityBot (search) and ChatGPT-User, Claude-User, Perplexity-User (user-triggered). If any of them is disallowed from either URL, the check fails and lists the bot names.

How to fix it

  1. Find the rule that blocks them

    Open your robots.txt and look for two patterns: a group naming the bot with Disallow: /, and a User-agent: * group with a broad Disallow when the bot has no group of its own. A crawler uses the group that matches its name; only when none matches does it fall back to *.

    shell
    curl -s https://your-domain.com/robots.txt | grep -i -n -E "user-agent|disallow|allow"

  2. Add an explicit allow group for search and user bots

    Put the six bots in one group. Keep private paths disallowed so the group does not open your cart or account pages. An empty Disallow: would also allow everything, but listing paths keeps the intent clear.

    text
    User-agent: OAI-SearchBot
    User-agent: ChatGPT-User
    User-agent: Claude-SearchBot
    User-agent: Claude-User
    User-agent: PerplexityBot
    User-agent: Perplexity-User
    Allow: /
    Disallow: /cart
    Disallow: /checkout
    Disallow: /account

  3. Block training bots separately if that is your choice

    If you do not want your content used for training, add a second group for GPTBot, ClaudeBot, Google-Extended and CCBot with Disallow: /. Do not put search bots in that group. See AI training bots: allow or block for the trade-offs.

  4. Check your firewall as well as robots.txt

    A CDN or bot-management rule can block these bots at the network level even when robots.txt allows them. OpenAI publishes the IP ranges for OAI-SearchBot (openai.com/searchbot.json) so you can allow-list it; Anthropic notes that blocking its bots by IP address may not work reliably. Review any "block AI bots" toggle in your CDN and make sure it does not cover search bots.

  5. Allow time for the change

    OpenAI says robots.txt changes can take about 24 hours to take effect in search. Do not expect citations to return the same day.

How to verify

  • Run the free check at citeto.com/check. The AI search bots item lists any bot still blocked and passes when the list is empty.

  • Check by hand: for each of the six names, find the group in your robots.txt that names it (or the * group if none does) and confirm that no Disallow path is a prefix of / or of your product URL path. When Allow and Disallow both match, the longer path wins.

Common pitfalls

  • Copying a "block all AI" list that mixes GPTBot and ClaudeBot (training) with OAI-SearchBot and PerplexityBot (search). You lose AI search visibility to stop training.

  • Assuming Google-Extended controls AI Overviews. Google documents it as a training and grounding control for Gemini, not a Search control; AI Overviews follow Googlebot rules.

  • Allowing the homepage but disallowing /products/ or /collections/ with a pattern meant for filter URLs, which also matches every product page.

  • Fixing robots.txt while a CDN rule still returns 403 to the same bots.

FAQ

OpenAI says that because ChatGPT-User actions are initiated by a user, robots.txt rules may not apply. Perplexity says Perplexity-User generally ignores robots.txt for the same reason. We still check them, because a disallow rule states your intent and some fetches may honor it.

No. OpenAI documents OAI-SearchBot and GPTBot as independent: you can allow OAI-SearchBot for search while disallowing GPTBot to opt out of training.

Yes. Google says a page must be indexed and eligible for a snippet in Search to appear in AI Overviews or AI Mode, and Googlebot robots.txt rules are the control for that.

Sources

  1. [1]OpenAI: Overview of OpenAI crawlersdevelopers.openai.com
  2. [2]Anthropic: Does Anthropic crawl data from the web, and how can site owners block the crawler?support.claude.com
  3. [3]Perplexity: Perplexity crawlersdocs.perplexity.ai
  4. [4]Google Search Central: AI features and your websitedevelopers.google.com
Allow AI search bots in robots.txt