Every website has a small text file that tells automated visitors where they may and may not go. It is called robots.txt, and you can read yours right now by typing /robots.txt after your domain name, such as yourcompany.com/robots.txt.
You have probably never opened it. A developer or a website template wrote it years ago, and it has rarely changed since. Meanwhile, AI search tools now send their own automated visitors, called crawlers, to read websites and decide which businesses to mention. One outdated line in that file can turn those visitors away, and nothing on your site will show an error when it happens.
What a Robots.txt File Does in Plain Terms
The file works like a set of house rules posted at the front door. Each rule names a visitor and lists the areas that visitor may or may not enter. A crawler checks the rules before it reads a single page.
A real rule looks like this:
User-agent: GPTBot
Disallow: /
In plain English, this says: “The bot named GPTBot may not read anything on this site.” The slash stands for the entire website. A rule that names a single folder, such as /admin/, blocks only that folder.
Two limits are worth knowing. Reputable crawlers generally follow the file, but it cannot lock anyone out. Anyone can also read it, so it hides nothing from people. Its job is to tell automated systems what to skip.
3 Types of AI Bots That Visit Your Website
Each AI company runs several bots, and each bot has its own job. The differences decide what a block costs you.
1. Training Bots
Training bots collect content that may be used to build future AI models. OpenAI’s GPTBot and Anthropic’s ClaudeBot work this way. Blocking them signals that your content should stay out of training data.
2. Search Bots
Search bots build the index behind AI search results. OpenAI’s OAI-SearchBot, Anthropic’s Claude-SearchBot, and PerplexityBot belong here. OpenAI says sites that opt out of OAI-SearchBot will not appear in ChatGPT search answers, though they can still show up as links.1
3. User-Requested Bots
User-requested bots fetch a page when a person asks an AI tool about it. ChatGPT-User, Claude-User, and Perplexity-User do this. A person triggers these visits, so robots.txt rules may not apply. OpenAI says so for ChatGPT-User,1 and Perplexity says Perplexity-User generally ignores them.2
This split lets you make separate choices. A business can decline training while staying open to search, because each bot answers to its own rule.
Google works differently. Its Google-Extended setting controls whether content Google crawls may train Gemini models and supply content to answers in the Gemini app. Google says it does not affect inclusion in Google Search.3 That means it is not the switch for AI Overviews, the AI summaries at the top of search results.
How a Business Ends Up Blocked Without Knowing
A block rarely comes from a decision. It usually traces back to something that happened years ago, and the site keeps working normally in the meantime.
The following causes are worth checking:
- Some website templates and plugins add “block AI” rules by default. Those rules can catch bots you want.
- A site relaunch can carry the old file over unchanged.
- A folder rule meant to save server resources, such as blocking /blog/ or /resources/, can hide your most useful articles from search bots.
- A file written two years ago also says nothing about bots that launched since.
OpenAI, Anthropic, and Google each update their public crawler documentation over time, so the list keeps moving.
A second door can also be locked. Firewalls and security services sit in front of your site and can turn bots away even when robots.txt welcomes them. OpenAI and Perplexity both publish the IP addresses their crawlers use so site owners can allow them through these systems. A site can pass a robots.txt check and still be unreachable.
Where Robots.txt Fits in AI Search Optimization
AI search optimization is the work of making a website easier for AI tools to reach, understand, and cite. Crawler access is one piece of it. The other pieces sit alongside it, and none of them gives anyone control over what an AI tool says.
The companies behind AI tools do not publish full rules for how their tools choose sources. Practitioners therefore work from observed patterns, and those patterns can shift as the tools change. Five areas come up most often:
- Access. Bots must be able to reach your pages, which involves robots.txt and firewall settings.
- Clarity. Facts such as pricing and contact details should match on your website and in your listings. Conflicting facts give an AI tool less to rely on.
- Labels. Structured data is code that labels what a page describes, such as a product or a service. AI tools differ in how much weight they give it.
- Reputation. AI tools may weigh mentions of your business on other trusted websites.
- Measurement. Visits that arrive from AI tools, along with regular test questions asked of AI assistants, show whether anything is changing.
Each area can improve the odds that AI tools find and use your content. Results depend on the tool and on how many other sources cover the same topic.
Changes also take time to appear. OpenAI1 and Perplexity2 each say their systems can take up to about 24 hours to reflect a robots.txt update. Treat any early result as a first reading, not a verdict.
What to Expect From AI SEO Services
Businesses that look into artificial intelligence search optimization services will find that offerings differ. Some focus on technical access and some on content, and each provider sets its own scope. The same label can describe very different work.
Because AI tools make their own choices, no provider controls the outcome. Treat a promise of guaranteed citations or a set ranking as a warning sign. A more reliable sign is a provider that explains what it will review and how it will report results.
Ask for the scope in writing. A written scope shows what the engagement covers and gives you a way to compare one provider against another. A provider that edits your robots.txt file should also tell you which bots it changed and why, so you can reverse the change later.
Start by Reading Your Own File
Open yourcompany.com/robots.txt and look for the bot names covered above. A line that names GPTBot or PerplexityBot is a decision someone made, and you should know who made it and why. Then ask whoever manages your website to explain each rule in plain language.
A correct file does not guarantee a citation. A blocked page gives AI tools nothing to cite. Your file shows which situation you are in, and it costs nothing to read.
1https://developers.openai.com/docs/bots
2https://docs.perplexity.ai/guides/perplexitybot
3https://developers.google.com/crawling/docs/crawlers-fetchers/google-common-crawlers?hl=en

