NEW: The AI Search Playbook 2027, with the CITE Framework, 30 prompts and a 90-day plan. Download free →
UpRankSEO
Free SEO & AI Audit
Technical SEO3 min read

How to Allow (or Block) AI Crawlers in robots.txt: GPTBot, OAI-SearchBot, PerplexityBot and Google-Extended

Ramkumar Srinivasan, Founder, HL Infotech Pvt Ltd
Published 27 November 2026
How to Allow (or Block) AI Crawlers in robots.txt: GPTBot, OAI-SearchBot, PerplexityBot and Google-Extended
QUICK ANSWER
  • To appear in AI search answers, allow the search crawlers in robots.txt: Googlebot, OAI-SearchBot (ChatGPT search), PerplexityBot and Bingbot.
  • You can separately decide whether to allow training crawlers such as GPTBot and Google-Extended.
  • Then check that your CDN, firewall or security plugin is not blocking them, because robots.txt is often fine while the firewall says no.

Key takeaways

  • Search crawlers and training crawlers are different. Blocking training does not have to block search.
  • Google-Extended controls use of your content for Gemini model training; it does not affect Google Search or AI Overviews.
  • Firewalls and bot-protection services often block AI crawlers even when robots.txt allows them.
  • Check your server logs to confirm the crawlers actually reach your pages.

What robots.txt does

robots.txt is a plain text file at yourdomain.com/robots.txt that tells crawlers which paths they may fetch. Reputable crawlers follow it. It is a request, not a lock, and it does not remove pages that are already indexed.

The AI crawlers that matter

Crawler (user agent)OwnerUsed forRecommendation for most businesses
GooglebotGoogleSearch, AI Overviews, AI ModeAllow
Google-ExtendedGoogleGemini training and grounding controlsYour choice; does not affect Search
OAI-SearchBotOpenAIChatGPT search resultsAllow
GPTBotOpenAIModel trainingYour choice
ChatGPT-UserOpenAIPages fetched when a user asksAllow
PerplexityBotPerplexityPerplexity search indexAllow
BingbotMicrosoftBing and CopilotAllow
ClaudeBotAnthropicModel trainingYour choice

Always check each company's current documentation, because names and purposes change.

Why it matters

If ChatGPT search cannot fetch your pages, it cannot cite them. We regularly audit sites where a hosting firewall or "block bad bots" plugin quietly returns errors to these crawlers.

How to set it up in 5 steps

1. Open your current robots.txt

Visit yourdomain.com/robots.txt. Look for "Disallow: /" under any AI user agent, or under "User-agent: *".

2. Decide your policy

Most businesses that want leads should allow all search crawlers. Publishers with paid content may block training crawlers while allowing search.

3. Write the rules

A typical file for a business that wants maximum visibility allows all crawlers and lists the sitemap:

User-agent: * then Allow: / then Sitemap: https://yourdomain.com/sitemap.xml

To block training only, add a group for GPTBot with Disallow: / and a group for Google-Extended with Disallow: /, leaving the rest open. For a deeper look, read Is Your Site Ready for AI Search? A 15-Minute Technical Checklist.

4. Check your firewall and CDN

In Cloudflare, cPanel ModSecurity, Wordfence or similar, look for bot-fight or AI-block settings. Allow verified search crawlers.

5. Confirm in server logs

In cPanel Raw Access logs or your CDN analytics, search for OAI-SearchBot and PerplexityBot. A 200 status means they are getting through. 403 or 503 means something is blocking them.

Want this done for you? Our 20+ specialists run this exact process for businesses in India, the UAE and the USA. Request a free SEO, AEO and GEO audit and we will show you where you stand against your top three competitors. You may also find this useful: Website Not Showing on Google? 14 Reasons and How to Fix Each.

What about llms.txt?

llms.txt is a proposed file that lists your key pages for AI tools. It is harmless to add, but at the time of writing major search engines have not said they use it. Spend your time on crawl access, clear pages and citations first.

Questions people ask

Will blocking Google-Extended remove me from AI Overviews?

No. Google states that Google-Extended does not affect inclusion in Google Search, and AI Overviews are part of Search.

Is it safe to allow AI crawlers?

For public marketing pages, yes. Keep private areas behind logins, which crawlers cannot access anyway.

How often should I check robots.txt?

After every site update, plugin change or hosting migration, and at least once a quarter.

Ramkumar Srinivasan
Written by the UpRankSEO team, led by Ramkumar Srinivasan, founder of HL Infotech Pvt Ltd (since 2008). UpRankSEO is an SEO and AI search agency in Thane, Mumbai, helping businesses in India, the UAE and the USA get found on Google, Google Maps and AI answers. Ramkumar on LinkedIn ↗

Keep reading

Want more enquiries from Google and AI search?

Get a free SEO, AEO and GEO audit. We will check your Google ranking, Maps visibility and whether ChatGPT and Gemini mention you.

Get a free SEO & AI audit