
Your robots.txt file used to be a quiet bit of plumbing—a few lines telling Googlebot which folders to skip. In 2026, it's become one of the more consequential files on your site, because a new class of crawlers is reading it: the bots that feed AI models and AI search. The question is no longer just “what do I let search engines crawl?” It's “do I want my content used to train AI, to be cited by AI, both, or neither?”—and those are different answers with different directives.
This guide walks through what robots.txt actually does (and the important things it can't do), the AI crawler user-agents worth knowing, and a practical allow-versus-disallow strategy for businesses that want AI citation without handing over their content for training. We'll be honest about the central limitation up front: robots.txt is a request, not a wall.
Key Takeaways
- robots.txt controls crawling, not indexing—and it's advisory, so compliance is up to each crawler.
- AI crawlers split into two jobs: training scrapers (like GPTBot, CCBot, Google-Extended) and live-retrieval bots that power citations (like OAI-SearchBot, PerplexityBot).
- You can allow citation-driving bots while disallowing training bots—the settings are independent.
- Blocking Google-Extended does not affect your normal Google Search ranking; it only governs AI training use.
- For content you truly must protect, robots.txt is not enough—use authentication, noindex, or edge-level controls.
What does robots.txt actually do — and not do?
A robots.txt file tells crawlers which URLs they may access on your site. That's it. Per Google Search Central's documentation, it primarily manages crawler traffic—it is not a mechanism for keeping a web page out of Google. A URL disallowed in robots.txt can still be indexed if other sites link to it; it may simply appear without a description. If your goal is to keep a page out of search results, the right tools are a noindex directive or password protection, not a Disallow line.
The second hard truth is enforcement. Google states plainly that the instructions in a robots.txt file “cannot enforce crawler behavior to your site; it's up to the crawler to obey them.” Different crawlers interpret the syntax differently, and some ignore it entirely. The honest framing—echoed in the robots.txt fundamentals covered by Neil Patel Digital—is that robots.txt is a polite, public request that well-behaved bots honor and bad actors disregard.
So treat robots.txt as a steering tool for compliant crawlers and a budget-management tool for your server, not as a security boundary. For anything sensitive, you need real enforcement, which we'll get to.

The core syntax, briefly
The directives are few:
User-agent: GPTBot
Disallow: /
User-agent: *
Allow: /
Disallow: /private/
Sitemap: https://www.example.com/sitemap.xml- User-agent targets a specific crawler (or
*for all). - Disallow blocks a path;
Disallow: /blocks the whole site for that agent. - Allow carves out an exception inside a disallowed path.
- Sitemap points crawlers to your sitemap.
The most common misconfiguration is a stray Disallow: / left over from a staging site, which silently tells every compliant crawler to skip everything. That single line has de-indexed more sites than any algorithm update. Always check it after a site migration—and confirm what's actually hitting your server with log file analysis for AI crawlers rather than assuming your directives are being followed.
Which AI crawlers should you know in 2026?
The key shift in 2026 is recognizing that “AI crawler” isn't one thing. There are bots that scrape content to train models, and bots that fetch content live to answer a user's question and cite a source. You often want to treat these very differently.
| Crawler | Operator | Primary job | Typical intent |
|---|---|---|---|
| GPTBot | OpenAI | Train foundation models | Training |
| OAI-SearchBot | OpenAI | Surface sites in ChatGPT search | Citation / search |
| ChatGPT-User | OpenAI | User-initiated fetches | User action |
| Google-Extended | Gemini / AI training opt-out | Training | |
| ClaudeBot | Anthropic | Crawl content | Training |
| PerplexityBot | Perplexity | Power Perplexity answers | Citation / search |
| CCBot | Common Crawl | Open dataset used by many LLMs | Training |
| Bytespider | ByteDance | Crawl content | Training |
OpenAI's own documentation makes the distinction concrete. Per OpenAI's crawler overview, GPTBot crawls content for training generative AI foundation models, OAI-SearchBot surfaces websites in ChatGPT search results (and “sites blocking this bot won't appear in search answers”), and ChatGPT-User operates on user-initiated actions rather than automatic crawling. Critically, OpenAI notes that “each setting is independent”—you can allow OAI-SearchBot while disallowing GPTBot. That independence is the whole basis of a smart 2026 strategy.

How do you allow AI citation but block AI training?
This is the strategy most businesses actually want: be discoverable and citable in AI answers, but keep your content out of model training sets. Because the user-agents are separate, you can express exactly that.
A representative configuration looks like this:
# Block training scrapers
User-agent: GPTBot
Disallow: /
User-agent: Google-Extended
Disallow: /
User-agent: CCBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
# Allow live-retrieval / citation bots
User-agent: OAI-SearchBot
Allow: /
User-agent: PerplexityBot
Allow: /
# Normal search engines unaffected
User-agent: Googlebot
Allow: /Two things worth emphasizing. First, blocking Google-Extended does not affect your normal Google Search ranking—it governs only AI training use, so you can opt out of Gemini training while keeping full Googlebot access. Second, this is a strategic choice, not a universally correct one. If your business model benefits from being widely referenced by AI assistants, you may want to allow more, not less. If your content is your product (original research, proprietary data), tightening training access makes sense. Decide based on whether AI visibility helps or cannibalizes you—a tension we explore alongside llms.txt and AI discoverability, the emerging companion file for telling AI systems what your site is about.
What does the data say about how sites are responding?
Adoption of AI-bot directives is real but still modest. An analysis of robots.txt across Cloudflare's network by TechnologyChecker, updated June 1, 2026, found that among the robots.txt files sampled, the most-disallowed AI crawlers were GPTBot at 4.71%, CCBot at 4.28%, ClaudeBot at 4.18%, Google-Extended at 3.82%, and Bytespider at 3.70%. In other words, even the most-blocked AI crawler is explicitly disallowed by under 5% of sites—most of the web hasn't made a deliberate choice yet.
The traffic side explains why people are starting to care. The same analysis reported AI crawler purpose breaking down to roughly 51.8% training, 35.7% mixed-purpose, and 11.9% search-and-user-action, and found that retail absorbs about 28.71% of all AI crawler traffic—more than double any other sector. It also surfaced a striking efficiency gap: by its measure, some training crawlers fetch tens of thousands of pages for every referral they send back. That asymmetry—heavy crawling, little return traffic—is the practical reason a growing number of businesses are revisiting their robots.txt. We've watched the same pattern locally in the surge in AI bot traffic hitting small business sites, where bandwidth costs rise without a matching lift in visitors.

How should you handle crawl budget and the cost of AI traffic?
There's a practical, dollars-and-bandwidth dimension to all this that's easy to overlook. Every page an AI crawler fetches consumes server resources, and when training scrapers crawl heavily while sending little or no traffic back, you're effectively subsidizing someone else's model with your hosting bill. The Cloudflare-network analysis quantified just how lopsided that exchange can be, with some training crawlers fetching tens of thousands of pages per referral. For a brochure site that's a rounding error; for a large catalog or a content-heavy blog, it adds up.
This is where robots.txt earns its keep as a budget tool even when it's weak as a security tool. Disallowing training bots you've decided you don't want trims wasteful crawling from the well-behaved operators who honor the file—which, for the major AI companies, is most of the volume. A Crawl-delay directive is sometimes suggested too, but support is inconsistent across crawlers, so don't rely on it as your primary lever. The more reliable approach is to combine a deliberate robots.txt with monitoring: watch your logs for which user-agents are actually hitting you and how often, then decide where to spend a block. Setting the directive without checking the logs is guessing; checking the logs without setting the directive is observing without acting. You want both.
One caution worth repeating: don't reflexively block everything to “save bandwidth.” If you block OAI-SearchBot or PerplexityBot, you also disappear from those AI search answers—and for many local businesses, being citable in AI results is worth far more than the bandwidth it costs. Match the aggressiveness of your blocking to the actual size of the problem in your logs, not to a sense of unease.
Where does robots.txt fall short — and what enforces your rules?

Because robots.txt is advisory, it can't stop a crawler that ignores it or disguises its user-agent. Many aggressive scrapers in 2026 do exactly that. So if a directive must be honored, robots.txt alone won't get you there. Layer in real enforcement:
- Authentication and noindex for content that should never appear publicly—robots.txt won't keep an indexed, linked page out of results, but a login wall or
noindexwill. - Edge and server-level blocking—a web application firewall or CDN rule can drop or challenge non-compliant bots at the network layer, which is the most reliable way to actually enforce access. For WordPress sites specifically, see our walkthrough on blocking AI bots on managed WordPress.
- Bot verification—before you block by user-agent, confirm the bot is who it claims to be. Spoofing is common, and over-blocking can accidentally shut out legitimate crawlers (including Googlebot). Emerging standards help here, which we cover in Web Bot Auth and verifying who's really crawling you.
The mental model: robots.txt is the front-door sign that says “please don't enter the back room.” It works on polite visitors. The lock on the back room is authentication and edge controls.
A layered setup, from weakest to strongest enforcement, looks like this: robots.txt expresses your intent to compliant crawlers; noindex and canonical tags govern what shows up in search results; bot verification confirms a crawler is genuinely who it claims before you act on it; and a firewall or CDN rule physically drops or challenges requests that don't belong. Each layer covers a gap the one above it can't. Skipping straight to aggressive firewall blocking without verification is how sites accidentally lock out Googlebot and tank their own visibility; relying on robots.txt alone is how content you meant to protect ends up in a training set anyway. The right answer for most businesses is to set robots.txt deliberately, add noindex where pages shouldn't be found, and reserve edge-level enforcement for the specific bad actors your logs actually surface.
What should a Fort Wayne or Northeast Indiana business do about this?
For most small and mid-size businesses in Allen and DeKalb County, the answer isn't to lock everything down—it's to make a deliberate, documented choice instead of leaving the default. A local service business that wants to be recommended by AI assistants should generally keep citation bots open and only consider blocking training scrapers if bandwidth or principle pushes that way. A firm whose content is genuinely proprietary—say, a regional manufacturer with original technical documentation—has a stronger case for restricting training access.
Whatever you choose, do it consciously and review it after any site change. We regularly find Northeast Indiana businesses running a robots.txt copied from a template years ago, blocking nothing intentional and occasionally blocking something important by accident. An afternoon of cleanup—confirming no stray Disallow: /, setting your AI-bot stance on purpose, and verifying real bot traffic in your logs—is one of the highest-leverage technical tasks a local site owner can do this year.
There's a local-advantage angle here too. AI assistants lean on clear, well-structured, regionally specific content when they answer “near me” style questions, so a Fort Wayne business that keeps citation bots welcome and its pages crawlable is making itself easy to recommend to exactly the customers it wants. Locking the doors indiscriminately can quietly cost you that visibility. The goal isn't maximum restriction—it's a configuration that matches how you actually want to show up in both traditional and AI search.
Make your robots.txt a decision, not a leftover
Robots.txt won't stop a determined scraper, and it won't keep a linked page out of Google—but used well, it's how you tell the AI ecosystem, in writing, whether your content is for training, for citation, or off-limits. The businesses that win in AI search are the ones making that call on purpose. If you'd like a technical audit of your crawler directives, AI-bot stance, and the edge-level enforcement behind them, Button Block's web development team can review your configuration and set it up to match your actual goals. Get in touch and we'll start with an audit of what's actually crawling you.
Is your robots.txt a deliberate choice or a years-old leftover?
If you're not sure what's crawling your site or whether your AI-bot directives match your goals, our web development team can audit your crawler directives, set your training-versus-citation stance on purpose, and put real edge-level enforcement behind it.
Frequently Asked Questions
- Does blocking GPTBot in robots.txt hurt my Google ranking?
- No. GPTBot is OpenAI’s training crawler and has nothing to do with Googlebot or your Google Search ranking. Likewise, blocking Google-Extended only opts you out of Google’s AI training use — your normal Google Search visibility through Googlebot is unaffected.
- Can robots.txt keep a page out of search results?
- Not reliably. Robots.txt controls crawling, not indexing. Google states a disallowed URL can still be indexed if other sites link to it. To keep a page out of search results, use a noindex directive or password protection instead of, or in addition to, a Disallow rule.
- How do I allow AI citation but block AI training?
- Because AI crawler settings are independent, you can disallow training bots like GPTBot, Google-Extended, CCBot, and ClaudeBot while allowing live-retrieval bots like OAI-SearchBot and PerplexityBot. This lets your content appear in AI search answers without being added to model training datasets.
- Do AI crawlers actually obey robots.txt?
- Well-behaved crawlers from major operators generally honor robots.txt, but it is advisory, not enforceable. Google notes it’s up to each crawler to obey, and many aggressive scrapers ignore the file or spoof their user-agent. For rules that must be enforced, use edge-level blocking, a firewall, or authentication.
- What’s the most common robots.txt mistake?
- A stray "Disallow: /" — often left over from a staging environment after a site launch — which tells every compliant crawler to skip your entire site. It can silently de-index a site, so it’s the first thing to check after any migration or redesign.
- What AI crawler user-agents should I know in 2026?
- The main ones are GPTBot, OAI-SearchBot, and ChatGPT-User (OpenAI); Google-Extended (Google AI training); ClaudeBot (Anthropic); PerplexityBot (Perplexity); CCBot (Common Crawl); and Bytespider (ByteDance). Knowing which are for training versus live retrieval lets you set directives that match your strategy.
- What should a Fort Wayne small business do about robots.txt and AI crawlers?
- For most small and mid-size businesses in Allen and DeKalb County, the goal isn’t to lock everything down — it’s to make a deliberate choice instead of running a years-old template. If you want AI assistants to recommend you to nearby customers, keep citation bots like OAI-SearchBot and PerplexityBot open, confirm there’s no stray "Disallow: /", and only restrict training scrapers if bandwidth or principle warrants it. Review the file after any site change.
Sources & Further Reading
- Neil Patel Digital: How to Create the Perfect Robots.txt File for SEO — May 26, 2026
- Google Search Central: Introduction to robots.txt — January 1, 2026
- OpenAI: Overview of OpenAI Crawlers — January 1, 2026
- TechnologyChecker: We Analyzed robots.txt Across Cloudflare's Network — June 1, 2026
