Skip to main content
Back to Blog
SEO 10 min read

AI Crawlers in robots.txt: Allow or Block (+ llms.txt)

GPTBot, ClaudeBot, PerplexityBot, Google-Extended: who is crawling your site and why. Learn which AI crawlers to allow, which to block, what llms.txt really does, how to write one step by step, and what matters more for AI visibility.

Waqar Sharif Yar

Founder & CEOUpdated

Quick Takeaway

Control AI crawlers with robots.txt by naming each crawler's user agent. Vendors run separate bots for training (such as GPTBot and ClaudeBot), for search results (such as OAI-SearchBot and PerplexityBot) and for user-requested visits. Most businesses should allow the search bots so they can be cited, and decide on training bots separately. llms.txt is an unofficial proposal with no confirmed ranking benefit.

Key takeaways

  • AI companies run different crawlers for training, search and user-requested fetches, and you can treat them differently.
  • Blocking a training crawler does not remove you from that vendor's search or answers. Blocking a search crawler can.
  • Google-Extended controls Gemini training and grounding only. It does not affect Google Search inclusion or ranking.
  • Google says you need no special file or markup to appear in AI Overviews or AI Mode. Standard SEO applies.
  • robots.txt is a request, not a lock. Use your server logs to see who really visits, and a firewall to enforce.

More of your visitors now arrive through AI tools, and behind each of those tools is a crawler visiting your site. Some collect content to train models. Some build the index that powers AI search. Some fetch a page because a user just asked about it. Treating them all the same means either hiding from the tools that could send you customers or handing content to ones you would rather opt out of.

This guide explains what each crawler is for, how to set rules, and where the hype around llms.txt outruns the evidence. It complements our post on how to get cited by AI search, which covers the content side. Crawler names and behavior change, so check each vendor's documentation (linked below) before you rely on a rule.

The main AI crawlers and what they do

Major AI crawlers, their purpose and how robots.txt applies (as documented by each vendor)
CompanyUser agentPurposerobots.txt
OpenAIOAI-SearchBotSurfaces sites in ChatGPT search resultsCan be controlled. Opting out means not appearing in ChatGPT search answers
OpenAIGPTBotCrawls content that may be used to train generative AI modelsCan be controlled. Disallowing signals your content should not be used for training
OpenAIChatGPT-UserVisits pages when a user asks ChatGPT toOpenAI says robots.txt rules may not apply, because a user initiated it
AnthropicClaudeBotCollects public web content that may contribute to trainingAnthropic states its bots honour robots.txt
AnthropicClaude-SearchBotImproves the quality of search results in ClaudeAnthropic states its bots honour robots.txt
AnthropicClaude-UserVisits pages when a person asks Claude a questionAnthropic states its bots honour robots.txt
PerplexityPerplexityBotSurfaces and links sites in Perplexity results. Not used for foundation-model trainingRespects robots.txt
PerplexityPerplexity-UserVisits a page when a user asks a questionGenerally ignores robots.txt, because a user requested the fetch
GoogleGooglebotCrawls for Google Search, which includes AI features built into SearchRespects robots.txt
GoogleGoogle-ExtendedA robots.txt token controlling use of crawled content for training future Gemini models and grounding in Gemini AppsToken only. Does not affect Search inclusion or ranking

Training and search are different switches

Disallowing a training crawler such as GPTBot or ClaudeBot tells that company not to use your content for training. It does not, on its own, remove you from that company's search product, which uses a separate crawler. To stay out of ChatGPT search results you would have to disallow OAI-SearchBot as well, which most businesses do not want.

What robots.txt can and cannot do

robots.txt
A plain-text file at the root of your site that tells crawlers which paths they may fetch. It follows the Robots Exclusion Protocol (RFC 9309) and works by convention: well-behaved crawlers honour it, but nothing forces them to.
  • It requests compliance. Reputable vendors follow it, but scrapers with no reputation to protect ignore it.
  • User-requested fetchers (such as ChatGPT-User and Perplexity-User) may not follow it, because a person asked for the page.
  • It controls crawling, not appearance. To limit how Google shows your content in search and AI features, use noindex, nosnippet, data-nosnippet or max-snippet.
  • Blocking a crawler by IP address can backfire: Anthropic notes that doing so may stop its crawler reading your robots.txt at all.

Sample robots.txt rules

A common approach for a business that wants to be found is to allow search and retrieval crawlers and make a separate choice about training. The example below allows AI search bots and opts out of training.

# Allow AI search and retrieval crawlers
User-agent: OAI-SearchBot
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: Claude-SearchBot
Allow: /

# Opt out of model training
User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Google-Extended
Disallow: /

# Everyone else
User-agent: *
Allow: /

Sitemap: https://www.example.com/sitemap.xml
Example: allow AI search crawlers, opt out of model training

Test before you publish

A stray "Disallow: /" under the wrong user agent can hide your site from search. Never put it under "User-agent: *" unless you mean to block everything. Check the file with a robots.txt tester and confirm Googlebot can still fetch your key pages.

Should you block AI crawlers?

Trade-offs of allowing or blocking AI crawlers
Your situationSensible starting pointWhy
Business that wants leads and enquiriesAllow search and retrieval crawlersBeing cited and linked in AI answers can send qualified visitors
Publisher whose content is the productAllow search crawlers, consider blocking training crawlersProtects the value of original content while staying visible
Members-only or private contentBlock, and protect it behind a loginrobots.txt is not security. Do not rely on it to hide private pages
UnsureAllow, then review your server logsYou can tighten the rules later once you see who is visiting

What about llms.txt?

llms.txt is a proposal to put a Markdown file at /llms.txt that summarizes your site and links to your most useful pages in a format language models can read easily. It is not an official standard, and adoption by AI providers is unclear. Google is explicit about its own products: you do not need to create new machine-readable files, AI text files or special markup to appear in AI Overviews or AI Mode, and no special schema.org markup is required. We have not found documentation from OpenAI, Anthropic or Perplexity confirming that they use llms.txt as a ranking or citation signal.

Publishing one is cheap and harmless, so it is fine if you want to. Just do not expect it to move rankings, and do not let it distract from work that demonstrably matters.

How do you write an llms.txt file, step by step?

If you decide to publish one, follow the format in the proposal at llmstxt.org (checked October 2026). It is plain Markdown with a fixed order of sections. Only the first one is required.

  1. Step 1: Create a file named llms.txt at your site root

    Serve it as plain text at https://www.example.com/llms.txt. The proposal also allows a file in a subpath, such as /docs/llms.txt, which covers the pages under that path.

  2. Step 2: Start with an H1 naming your business or site

    One line, such as “# Example Plumbing Co.” This is the only required section.

  3. Step 3: Add a one- or two-sentence summary as a blockquote

    Start the line with “>” and say who you are, what you offer and where: the facts you would want an assistant to repeat correctly.

  4. Step 4: Add short plain paragraphs or lists with key details (optional)

    For example, service area, hours, how pricing works and how to contact you. No headings in this part. Keep every fact identical to what your website says.

  5. Step 5: Add H2 sections that list your most useful pages

    Each item is a Markdown link, optionally followed by a colon and a short note: “- Pricing: plans and what is included.” Group them under headings such as “## Services” and “## Guides”.

  6. Step 6: Put secondary links under “## Optional”

    The proposal reserves an H2 called Optional for links a reader can skip when it needs a shorter summary, such as old blog posts or legal pages.

  7. Step 7: Publish, test and keep it current

    Open the URL in a browser to check it loads as text, make sure robots.txt does not block it, and update it when you add or remove important pages. A stale file with wrong prices does more harm than no file.

# Example Plumbing Co.

> Licensed plumbing company serving Austin, Texas and nearby suburbs. Repairs, water heaters and drain cleaning for homes and small businesses.

Open Monday to Saturday, 7 a.m. to 7 p.m. Emergency calls answered 24/7. Free estimates for jobs over a set size; see the pricing page.

## Services

- [Water heater repair and installation](https://www.example.com/services/water-heaters/): tank and tankless, same-day in most cases
- [Drain cleaning](https://www.example.com/services/drain-cleaning/): kitchen, bathroom and main lines

## Company

- [Pricing](https://www.example.com/pricing/): how estimates and service fees work
- [Contact](https://www.example.com/contact/): phone, booking form and service area

## Optional

- [Blog](https://www.example.com/blog/): maintenance tips and guides
Example llms.txt for a small service business (follows the llmstxt.org format)

For a real, larger example, see our own llms.txt, which lists our services, free tools and guides in this format. The proposal also suggests offering a clean Markdown version of important pages (for example page.md next to page.html), but that is optional and more work than most small businesses need.

Set expectations

Writing an llms.txt file takes under an hour, and it is a tidy summary for any tool that chooses to read it. Google says you do not need new machine-readable or AI text files to appear in its AI features, so measure success by crawlable pages and clear answers, not by this file.

What matters more for AI visibility

  • Crawlable HTML. Your main content is in the server-rendered page, not hidden behind scripts or logins. See our technical SEO checklist.
  • Clear, direct answers. Each page answers a specific question near the top, then adds detail.
  • Consistent facts. Your name, services, prices and contact details match everywhere they appear.
  • Structured data. Valid Organization, Article and other markup that matches what is visible.
  • Real expertise. Named authors, original examples and sources that a system can trust.
  • A healthy site. Fast, mobile-friendly, correct status codes, and no accidental noindex.

How to see who is crawling you

  1. Step 1: Check your server or CDN logs

    Search for the user agents above to see which AI crawlers visit and how often.

  2. Step 2: Look at referral traffic

    In your analytics, watch for visits arriving from AI assistants and search tools, and note which pages they land on.

  3. Step 3: Ask the assistants directly

    Put your buyers' real questions to several AI tools and check whether your business is mentioned and described correctly.

  4. Step 4: Review quarterly

    Crawler names, policies and products change. Recheck the vendor documentation and your rules a few times a year.

Our SEO service includes this kind of crawl and visibility review, and you can book a free strategy call if you would like a second opinion on your rules and your site.

AI crawlers: common questions

Once AI crawlers can reach your site, give them something worth citing: our guide to writing blog posts that rank in Google and AI search explains how. To see how ChatGPT, Google AI Overviews and Copilot decide which businesses to name, read how to get your business recommended by ChatGPT.

How do I allow AI crawlers in robots.txt?

If your robots.txt doesn’t block them, they are already allowed. To state it explicitly, add a group per crawler, for example “User-agent: GPTBot” followed by “Allow: /”, and make sure no broader rule disallows the pages you want read.

How do I block GPTBot?

Add a group to your robots.txt with "User-agent: GPTBot" followed by "Disallow: /". This signals that your content should not be used to train OpenAI's generative AI models. It does not affect OAI-SearchBot, which is a separate crawler for ChatGPT search.

Does blocking AI crawlers hurt my Google rankings?

Blocking AI training crawlers does not affect Google Search. Google states that Google-Extended does not impact a site's inclusion in Google Search and is not a ranking signal. Blocking Googlebot itself is different and can remove you from Google's results.

Do AI crawlers always obey robots.txt?

Reputable vendors say their crawlers do, with one notable exception: fetchers triggered by a user's request, such as ChatGPT-User and Perplexity-User, may not follow robots.txt. Unknown scrapers may ignore it entirely, so use a firewall if you need enforcement.

Do I need an llms.txt file?

No. It is an unofficial proposal, Google says no special file is needed to appear in its AI features, and we have not found confirmation from other major providers that they use it. Publish one if you like, but focus on crawlable content and clear answers.

What should an llms.txt file contain?

Under the llmstxt.org proposal: an H1 with your site or business name (the only required part), a short summary in a blockquote, optional plain-text details, then H2 sections listing your most useful pages as Markdown links with short notes. An H2 called “Optional” holds links that can be skipped.

Where do I put llms.txt?

At the root of your domain, so it loads at /llms.txt, the same place as robots.txt. The proposal also allows files in subpaths such as /docs/llms.txt for a section of a site.

How do I get my business mentioned in ChatGPT or Perplexity?

Allow their search crawlers, keep your content crawlable and factual, answer specific questions directly, use accurate structured data, and build genuine expertise and references. There is no guaranteed method, and results vary by query.

Add WikiAI as a preferred source on Google(opens Google in a new tab)

Free: 100 AI Automation Ideas for Small Business

A practical checklist of 100 tasks you can automate, grouped by department. Enter your email for the printable version and occasional tips.

No spam. Unsubscribe any time by replying “unsubscribe”. See our privacy notice.

Sources and further reading

Services related to this article

SEO 7 min read

Technical SEO Checklist for Next.js Websites

A practical technical SEO checklist for Next.js: server-rendered HTML, metadata, canonicals, sitemaps, structured data, Core Web Vitals, status codes and the testing tools that prove it all works.

SEO 11 min read

AEO and GEO Explained: How to Show Up in AI Search Answers

What AEO and GEO actually mean, what Google, OpenAI and Bing officially say about appearing in AI answers, a practical checklist for small businesses, what not to pay for, and how to measure results.

SEO 9 min read

LocalBusiness Schema Markup: How to Add It and Test It

What LocalBusiness structured data does and does not do, the properties Google supports, a copyable JSON-LD template, how to add it through a plugin, your site code or Google Tag Manager, and how to test it and fix common errors.

Need a Hand?

Need HelpImplementing This?

Reading about it is one thing, shipping it is another. Book a free strategy call and we will help you put it into practice in your business.

  • Free 30-minute strategy call
  • No commitment required
  • Reply by email or WhatsApp