How to Allow ChatGPT and Other AI Search Engines to Crawl Your Website

Published · 7 min read

Platform details checked against official documentation on November 10, 2026.

ChatGPT and other AI search tools are allowed to crawl your website unless something blocks them. Open yourdomain.com/robots.txt in a browser and look for a Disallow rule that applies to the crawlers listed below. If you find one, remove it, or add the rules from this guide that explicitly allow AI search crawlers. Then check that your hosting, firewall or security plugin isn't blocking them separately.

The shortest version, for a site that wants to be readable by the main AI search tools, is this robots.txt:

robots.txt
User-agent: *
Allow: /

Sitemap: https://www.example.com/sitemap.xml

That allows every crawler. If you want more control, for example allowing AI search while declining AI model training, read on.

What the problem is

Every major AI company runs crawlers: programs that fetch web pages. Most companies run more than one, each with a different job, and each identifies itself by name. A site can turn any of them away in two places:

  • robots.txt, a plain text file at the root of your site that tells crawlers which pages they may fetch.
  • Your firewall or hosting security, which can block crawlers outright, whatever robots.txt says.

Many site owners have blocked AI crawlers without meaning to: through a theme or plugin default, a security product, or a copied robots.txt from another site.

Search crawlers and training crawlers are different

This is the most important distinction. Blocking a training crawler keeps your content out of future AI models. Blocking a search crawler keeps your pages out of that tool's search answers. You can allow one and block the other.

CompanySearch or answersModel trainingFetches a user asked for
OpenAI (ChatGPT)OAI-SearchBotGPTBotChatGPT-User
Anthropic (Claude)Claude-SearchBotClaudeBotClaude-User
PerplexityPerplexityBotPerplexity says PerplexityBot is not used for trainingPerplexity-User
GoogleGooglebot (also covers AI Overviews and AI Mode)Google-Extended (Gemini)n/a
Microsoft (Bing, Copilot)BingbotSee the note on new training controls belown/a

A few details from each company's documentation matter here:

  • OpenAI says sites that block OAI-SearchBot "will not be shown in ChatGPT search answers," and that blocking GPTBot does not affect search, because "each setting is independent of the others."
  • Google says AI Overviews and AI Mode have "no additional requirements" beyond normal Search, and that robots.txt rules for Googlebot are the control. Google-Extended does not affect inclusion in Google Search.
  • Requests a user triggers are treated differently. When someone asks ChatGPT or Perplexity to open a specific page, OpenAI says "robots.txt rules may not apply," and Perplexity says its user fetcher "generally ignores robots.txt rules." Anthropic says its bots honor robots.txt.

How to allow AI search crawlers, step by step

  1. Open your current robots.txt. Visit https://yourdomain.com/robots.txt. If you get a "page not found" error, you have no file, which means crawlers are allowed. You can skip to step 5.
  2. Look for blocking rules. A line Disallow: / under User-agent: * blocks every crawler from the whole site. The same line under a named crawler, such as User-agent: GPTBot, blocks just that one.
  3. Decide what you want. Most local businesses want to appear in AI search answers. Whether to allow training is a separate, personal choice.
  4. Edit the file. The example below allows the search crawlers by name and leaves the rest of the file as it was:
robots.txt
# Existing rules for all crawlers stay as they are
User-agent: *
Disallow: /wp-admin/

# AI search crawlers
User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
Allow: /
Disallow: /wp-admin/

Sitemap: https://www.example.com/sitemap.xml

Notice that the Disallow: /wp-admin/ line is repeated in the named group. A crawler follows only the most specific group that names it and ignores the * group, so any rule you still want for a named crawler has to be written in its group too. Our robots.txt reference for AI crawlers explains this and has more examples.

Where to edit the file depends on your platform. SEO plugins for WordPress, such as Yoast SEO and Rank Math, include a robots.txt editor. Wix has a Robots.txt Editor under its SEO tools and settings. Shopify uses a theme template called robots.txt.liquid. Squarespace doesn't let you edit robots.txt directly; instead, check Settings, then Crawlers, and make sure "Block known artificial intelligence crawlers" is unchecked if you want AI tools to read your site. If you use a different platform, search its help pages for "robots.txt."

  1. Check your firewall and bot protection. This step catches the blocks robots.txt can't show you:
    • Cloudflare: look for the AI crawler access policies under Security settings. Cloudflare's current default for new sites allows them, but older settings, or a "Block AI bots" choice made earlier, may still be in effect.
    • Other hosts and security plugins: some block unfamiliar bots or show them a challenge page. Anthropic, for example, says its crawlers "will not attempt to bypass CAPTCHAs." If your site shows visitors a "checking your browser" page, ask your host whether it blocks AI crawlers.
  2. Make sure the pages can be indexed at all. A page with a noindex tag, or one that requires a login, won't appear in search answers even if crawlers can reach it.
  3. Allow time. OpenAI says its systems take about 24 hours to adjust after a robots.txt change, Perplexity says up to 24 hours, and Google generally caches robots.txt for up to 24 hours.

How to check that it worked

  1. Reload your robots.txt in a browser and confirm it shows the new rules. If your site uses a cache or CDN, it may need purging.
  2. Use Google Search Console's robots.txt report (under Settings) if your site is verified there. It shows the version Google last fetched and any errors.
  3. Ask an AI search tool about your business by name and town, with web search turned on, and look at the sources it lists. This is not a test you can rely on: answers vary from one question to the next, and being allowed in doesn't mean being included.
  4. Check your server logs or analytics, if you have access, for visits from the crawler names above. Each company publishes its crawlers' IP addresses so you can confirm a visit is genuine.

Common mistakes

  • Blocking GPTBot and thinking you blocked ChatGPT search. GPTBot is the training crawler; OAI-SearchBot is the search crawler.
  • Blocking Google-Extended to stay out of AI Overviews. It doesn't do that. Google's AI features in Search are governed by Googlebot and the usual snippet controls.
  • Adding a named group and losing other rules. A named group replaces the * rules for that crawler, as explained above.
  • Editing the wrong file. robots.txt applies only to the exact host it sits on. example.com and shop.example.com each need their own.
  • Forgetting the firewall. A perfect robots.txt doesn't help if the host blocks the request first.

What allowing crawlers does not do

Allowing crawlers makes your site eligible to be read. It doesn't guarantee that ChatGPT, Claude, Perplexity, Google or Copilot will show, link to or recommend your business. Those tools decide what to include based on the question and on many sources besides your site. Blocking isn't absolute either: OpenAI notes that a site that blocks OAI-SearchBot can still appear as a navigational link.

If crawlers are allowed and your business still doesn't come up, work through why a website may not show up in ChatGPT. For every crawler name and more robots.txt recipes, see the robots.txt reference for AI crawlers.

Sources

Want to know what else might be affecting your website's visibility?

Get a free CloudPlus visibility preview and see what may need attention. The free check reads your robots.txt and shows which of six crawlers it blocks: GPTBot, OAI-SearchBot, PerplexityBot, ClaudeBot, Google-Extended and Bingbot. No account needed.

Check My Website Free