SEO

Robots.txt for AI Crawlers: What to Allow and What to Block

Search bots and training bots are different. Decide which may read your site, then write the rules correctly.

By Zoqonyx Team · · 1 min read

Laptop screen showing website analytics graphs
In this article

A robots.txt file asks crawlers what they may read. It sits at the root of your domain. You can build and test one with the robots.txt generator.

Server room cables

Search and training are different

Crawler nameUsed for
GooglebotGoogle Search
OAI-SearchBotResults in ChatGPT search
GPTBotOpenAI model training
ClaudeBotAnthropic model training
PerplexityBotPerplexity search results
Google-ExtendedUse of content for Gemini, not Google Search ranking
CCBotCommon Crawl data set

Vendors change their crawler names, so check their current documentation.

If you want to be found in AI answers

Leave the search crawlers allowed. Blocking them can keep your pages out of those results.

If you do not want training use

User-agent: GPTBot Disallow: /

Add a similar group for each training crawler you wish to refuse.

Common mistakes

  • Writing Disallow: / under User-agent: *, which blocks the whole site
  • Using robots.txt to hide private pages: it is public, and it is not a lock
  • Expecting a blocked page to leave search results; use a noindex tag and let it be crawled
  • Forgetting that a named group replaces the general group for that bot

Check after publishing

Open yourdomain.com/robots.txt, then use the robots report in Google Search Console. Also check that your hosting or security service is not blocking crawlers you meant to allow.

Help with technical SEO

We handle this as part of website maintenance and digital marketing.

Frequently asked questions

Short answers to what people ask us first. Need more? Send us a message.

Do all bots obey robots.txt?

Reputable ones say they do. It cannot force anyone.

Does allowing AI crawlers guarantee citations?

No. It only makes your pages available to them.

Free tools in this article

Written by Zoqonyx Team, the team at Zoqonyx. Last updated December 4, 2026.

Talk to our team

Tell us what you are building. We reply with questions and next steps.

Get a quote

Need help with this?

Tell us what you are working on and we will reply with suggestions and next steps.

  • hello@zoqonyx.com
  • Tell us about your idea and we will reply with questions. We work remotely with clients in the USA, Europe, the Gulf and Asia.

Or email us at hello@zoqonyx.com