Black Friday: 50% off the full report and report packs until Tuesday 1 December.

Start a free scan

Fix library

Let AI search crawlers in through robots.txt

A rule meant for AI training bots, or a block on every bot, can keep you out of ChatGPT search, Perplexity, Copilot and other AI answers. Here is how to let the search crawlers in and keep only the training crawlers out.

  • You, the site owner
  • about 15 min

The fix: Remove the robots.txt rules that block AI search and assistant crawlers, and block only the training crawlers you choose to.

Step by step

  1. Open yoursite.com/robots.txt and find the groups that name AI search or assistant crawlers (the AI crawler checker shows which are blocked), or a "User-agent: *" group with "Disallow: /".
  2. Delete the Disallow rules for the search crawlers (Bingbot, OAI-SearchBot, Claude-SearchBot, PerplexityBot, Applebot, DuckAssistBot, Meta-WebIndexer, YouBot, Amzn-SearchBot, MistralAI-Index) and the assistant fetchers (ChatGPT-User, Claude-User, Perplexity-User, Meta-ExternalFetcher, Amzn-User, MistralAI-User).
  3. If you want to opt out of AI training, keep separate groups for training crawlers only: GPTBot, ClaudeBot, Applebot-Extended, CCBot, Meta-ExternalAgent, MistralAI-Training and Amazonbot. Add Google-Extended only if you also mean to leave Gemini’s app answers.
  4. A crawler named in its own group ignores the "User-agent: *" group, so repeat any private-path Disallow lines inside the new groups.
  5. Check that a security plugin, firewall or CDN isn't also blocking these crawlers (the AI crawler checker tests that too).
  6. Allow a day or two for the crawlers to notice; OpenAI and Perplexity say about 24 hours, DuckDuckGo up to 72.

On your website builder

WordPress
  1. WordPress serves a virtual robots.txt; edit it in Yoast SEO (Yoast SEO → Tools → File editor) or Rank Math (Rank Math → General Settings → Edit robots.txt). A real robots.txt file in the site's root folder overrides both, so check for one in your host's file manager.
  2. Some security and "block AI" plugins write these rules; check their settings before editing by hand.
Shopify
  1. Shopify builds robots.txt from a robots.txt.liquid template; add or edit it in Online Store → Themes → Edit code (Templates → Add a new template → robots.txt) and remove the rules for these crawlers.
  2. If you didn't add the rules yourself, an app may have; check apps that mention AI or bot blocking.
Wix
  1. Open the Robots.txt Editor in Wix's SEO tools, remove the lines that block these crawlers, and save.
Squarespace
  1. Squarespace writes robots.txt for you and doesn't let you edit it. Its "Block known artificial intelligence crawlers" option (Settings → Crawlers) blocks a fixed list of AI crawlers that can include search and assistant crawlers, so untick it if you want to appear in AI answers; that also lets training crawlers back in.
Webflow
  1. Edit robots.txt in Site settings → SEO → Indexing, remove the lines for these crawlers, then publish.

Why it matters

Some AI services send one crawler to find and quote pages for their answers and another to collect training data. A robots.txt that tells the search and assistant crawlers to stay away keeps your pages out of services such as Bing and Copilot, ChatGPT search, Claude, Perplexity, Siri and Spotlight, Meta AI, Alexa and DuckDuckGo’s AI answers, so they can’t recommend you when people ask about what you offer. Blocking AI training crawlers like GPTBot or ClaudeBot is a different, legitimate choice with no search cost; blocking the search crawlers is often an accident, from a rule meant for training bots or a blanket block on all bots.

For your developer

Each crawler obeys the most specific User-agent group that matches its token and ignores the * group when it has its own; a blanket Disallow: / under * blocks every crawler without a group of its own. robots.txt binds OAI-SearchBot, PerplexityBot, Claude-SearchBot, Claude-User, DuckAssistBot, Meta-WebIndexer, Applebot and YouBot (DuckAssistBot within 72 hours); for ChatGPT-User, Perplexity-User, Meta-ExternalFetcher, Google-Agent, Google-GeminiNotebook and Amzn-User it is advisory, so a firewall 403 to them is the real block. Applebot follows Googlebot's rules when robots.txt doesn't name it, and Claude's search draws on Brave, which won't crawl what Googlebot can't. A Googlebot block keeps a site out of Google’s results, AI answers included.

# AI search crawlers and user-requested fetchers: let them read the site
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: PerplexityBot
User-agent: Perplexity-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: Meta-WebIndexer
User-agent: DuckAssistBot
User-agent: YouBot
Allow: /
Disallow: /cart/

# Training only: a policy choice, with no AI-search penalty either way
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: CCBot
User-agent: Applebot-Extended
Disallow: /

# Google-Extended also removes the site from Gemini app answers.
# Add it to the block above only if that is intended.
Search and training, decided separately. A crawler with its own group ignores "User-agent: *", so repeat the private-path lines you still want (like /cart/ here)

Sources