Should You Block AI Bots? Crawlers vs Agents Working for Customers
Learn when to allow or block AI crawlers, weigh visibility risks, and let customer agents sign up while limiting abuse with owner identity.

If AI crawlers are running up your bandwidth bill, your first instinct is probably to block every AI bot. OpenAI's GPTBot once knocked a seven-person company's site offline with tens of thousands of requests from about 600 IP addresses, so the instinct makes sense.
Blocking every AI agent has a cost too, though. Agents now find tools and sign up for them on their own, and they've become a big source of new customers. We've scaled AgentMail to millions of agent sign-ups, and we deal with people trying to abuse that every day.
Blocking training crawlers can limit how your public content contributes to future models, with potential consequences for how those models discover and recommend your product.
This guide explains those tradeoffs, how to manage excessive crawling, and how to block specific bots when you decide the cost is justified.
TL;DR
- Don’t block AI training crawlers by default. If AI discovery matters to your business, weigh the potential visibility cost before opting out.
- Keep AI search crawlers and user-triggered fetchers allowed so assistants can find and read your public pages.
- Use logs to identify excessive crawling, then apply targeted limits. Few referral clicks don’t necessarily mean a crawler has no value.
- Bot blocking can’t stop sign-up abuse. Tie every agent account to an owner, and limit sign-ups per owner.
- In Cloudflare, start with Search, Training and Agents allowed when discovery is your priority. Use training restrictions only after reviewing their consequences.
The four kinds of AI traffic
"AI bot" covers four different kinds of traffic. Before you block anything, it helps to know which is which.
Training crawlers
Training crawlers read your pages in bulk so an AI company can train future models on them. OpenAI's is called GPTBot and Anthropic's is called ClaudeBot.
They're also most of the AI traffic you'll see.
Cloudflare found that training made up nearly 80% of AI crawling across its network in July 2025. In return, they send very few visitors back. For computer and electronics sites in early August 2025, Anthropic's crawlers read about 8,800 pages for every visitor Anthropic sent back to those sites, and OpenAI's read about 400.
Blocking training access can affect future visibility
In Suganthan Mohanadasan’s research, ChatGPT added brand names the user had never mentioned to its first search query in 21 of 27 conversations. Those names appeared before any search results came back. This suggests that what a model already knows can influence which products it investigates.
The study used one account and did not test crawler blocking so it doesn’t prove that blocking a training crawler causes a particular drop in visibility.
But the potential consequence is serious: blocking training access removes one route through which your own product descriptions and documentation could inform future models. They may have less information about your product or depend more on what other sites say about it. That could affect whether your brand enters a recommendation shortlist, even when your website remains searchable.
So if AI discovery matters to your growth, we recommend keeping useful public content accessible and managing excessive requests before considering a blanket block.
AI search crawlers
AI search crawlers index your pages so an AI assistant can find and cite them later. OpenAI's OAI-SearchBot decides whether your site can show up in ChatGPT search, and OpenAI says sites that block it won't be shown in ChatGPT's search answers. Anthropic's Claude-SearchBot does a similar job for Claude's search results.
This is how people and their agents find you when they ask an assistant for a tool like yours, also called AgentRel.
User-triggered fetchers
A user-triggered fetcher is a bot that visits a page only when a person asks an AI assistant about it. Say someone asks ChatGPT what your free plan includes.
ChatGPT sends its fetcher, ChatGPT-User, to load your pricing page right then, reads it, and answers from it. Claude does the same thing with Claude-User.
The difference from a search crawler is timing. A search crawler indexes pages ahead of time, on its own schedule, whereas a fetcher loads one page because one person asked about it.
OpenAI says ChatGPT-User isn't used to crawl the web automatically, and because a person starts each visit, robots.txt rules may not apply to it.
These cost you very little. In Cloudflare's data, user actions were about 3% of AI crawling. Each request is also a real person reading your page through their assistant, so blocking these would turn away potential leads.
Customer agents
The fourth kind is an agent trying to do something in your product: sign up, log in, or call your API on someone's behalf. Some agents run in a browser and look much like a person clicking through your site. Others call your API directly.
This traffic brings in new customers, and it's also where sign-up abuse happens. An agent signing up might be a customer's assistant trying your product, or a script farming free accounts. Both can look like ordinary browsers in your logs.
That's what we built AgentID to help with. We give agents a way to sign up for your product with their own identity, linked to the account that owns them. Your app can also request the human owner's name and verified email during sign-in, so you know who's behind the agent and have someone to contact if there's a problem.
Owner details require a registered app, the relevant scopes and permission to share them.
You can cap how many accounts the agents under one owner account create in your app, and AgentID enforces that limit for you. Creating another agent doesn't get around the cap. Your app can also use the owner identity to restrict that owner's agents if they abuse your service. That lets you welcome agent customers while keeping control over access.
Telling them apart
Now, the complications that make these hard to tell apart are:
- Bots can lie about who they are. Every request includes a user agent, the name a bot gives itself, and nothing stops a bot from sending a fake one. Cloudflare's customers blocked Perplexity's declared crawler. After that, Cloudflare found Perplexity crawling those sites anyway, 3 to 6 million requests a day. Those requests used a user agent that pretended to be Chrome on a Mac and came from IP addresses outside Perplexity's published list.
- Customer agents and abusive scripts look the same. Both usually show up as an ordinary Chrome browser. ChatGPT's agent, for example, sends the same user agent as desktop Chrome. So on your sign-up page, the user agent can't tell you whether a request is a customer's agent or a script farming free accounts. Some agents, including ChatGPT's, sign their requests to prove which company sent them, but many don't.
- Google’s training control also affects some AI answers. Google-Extended is a robots.txt control, not a separate crawler. Disallowing it restricts both future Gemini training and the use of your pages to support answers in Gemini Apps and Vertex AI. It leaves Google Search inclusion and rankings unaffected, but it is not a visibility-neutral opt-out. Review those consequences before adding the rule. Google’s documentation
Next, we'll look at customer agents in more detail, since most sites are new to them.
Agents are becoming customers
Agents now choose and sign up for tools in the middle of a task. Say a developer asks a coding agent to build an app that sends email. The agent finds an email API, reads its docs, signs up, gets an API key and keeps building.
On developer platforms, agents already do a lot of this:
- Agents or AI tools create 70% of new Supabase databases.
- Agents create 80% of the databases on Neon, according to Databricks.
- Agents trigger more than half of Vercel's deployments, up from about 3% six months earlier.
At AgentMail, after we let agents sign up on their own, hundreds of accounts appeared whose owners didn't know their agent had made one, and most of our support requests started coming from agents.
If you block AI agents across your site, these agents can't sign up, and they'll use a tool that lets them in. But your sign-up page also gets scripts farming free accounts. The rest of this guide shows how to let the first group in and keep the second out.
Look at your traffic before you block anything
Before you change any settings, find out which bots cost you the most and which ones send you visitors or sign-ups. That helps you identify where to reduce load. Referral counts alone won’t tell you the full value of allowing a crawler.
Count requests by bot
If your site is on Cloudflare, open AI Crawl Control. It shows requests and data transfer for each AI crawler, which you can group by crawler, company or category. On paid plans it also shows referrals, the visits that came to you from sites like chatgpt.com and perplexity.ai.
In AI Crawl Control > Metrics, group requests by Crawler to see which bots hit your site the most.
If you're not on Cloudflare, use your server's access log. Each line records the user agent and the size of the response, so you can add up requests and bandwidth per bot. For Nginx or Apache logs in the standard format:
Bash
awk -F'"' ' match($6, /GPTBot|ClaudeBot|CCBot|Bytespider|meta-externalagent|OAI-SearchBot|Claude-SearchBot|PerplexityBot|ChatGPT-User|Claude-User|Perplexity-User/) { bot = substr($6, RSTART, RLENGTH) split($3, s, " ") reqs[bot]++; bytes[bot] += s[2] } END { for (b in reqs) printf "%-18s %10d requests %10.1f MB\n", b, reqs[b], bytes[b] / 1048576 }' access.log | sort -k2 -nrThen count visits that came from AI assistants:
Bash
grep -oE 'chatgpt\.com|claude\.ai|perplexity\.ai' access.log | sort | uniq -c | sort -nrThese counts trust the user agent, which can be faked. Before you block a bot that looks expensive, check a few of its IP addresses against the list its company publishes.
Compare cost with what comes back
For each company, divide the pages its crawlers read by the visits its assistant sent you. That's the crawl-to-referral ratio. If ClaudeBot read 50,000 pages last month and claude.ai sent you 20 visitors, the ratio is 2,500 to 1.
A high crawl-to-referral ratio shows that many requests produce few recorded visits. It doesn’t measure every benefit: someone can learn about your product in an AI answer without clicking through. Use the ratio to investigate costs, then try caching or targeted rate limits where appropriate. Also track whether assistants mention your brand for relevant questions. Don’t use low referral traffic alone as the reason to block training access.
Check your sign-ups separately
The crawler numbers above won't show you sign-up abuse. Scripts that farm free accounts look like normal browsers, so you have to look in your sign-up data instead. Pull the last 30 days of sign-ups, with a column that shows whether each account did something real afterwards, such as making its first API call. Then:
- Group sign-ups by email domain. In Postgres:
SQL
SELECT split_part(email, '@', 2) AS email_domain, count(*) AS signups, count(first_api_call_at) AS active FROM users WHERE created_at > now() - interval '30 days' GROUP BY email_domain ORDER BY signups DESC LIMIT 20; - Group by IP range. If you store sign-up IPs as
inet, swap the domain fornetwork(set_masklen(signup_ip, 24)) AS ip_rangeand group byip_range. Many inactive accounts from one range usually means one script is behind them. - Look for bursts. Group by
date_trunc('minute', created_at)and look for minutes with far more sign-ups than usual. Real customers rarely sign up in clusters like that. - Compare agent sign-ups with the rest. If you can tell which sign-ups came from agents, for example through your API sign-up endpoint or from agent email providers like AgentMail, compare how many of them become active. Agent accounts that go on to use your product are customers to keep.
Write down the domains, IP ranges, and patterns you find. They show you how much sign-up abuse you're dealing with, which tells you how strict your sign-up limits need to be later in this guide.
How to block training crawlers if you choose to opt out
Warning: don’t copy this blocklist as a default configuration. Restricting training access can reduce your long-term AI visibility, and some controls also restrict how your content appears in AI answers today. Keeping search crawlers allowed does not eliminate every potential consequence.
Use the following example only if you have decided that restricting content use or reducing crawler load outweighs those risks. Keep only the rules you intend to apply, and preserve your existing robots.txt directives.
Once you know which training crawlers you want gone, the first place to block them is robots.txt. It's a plain text file at the root of your site, at yoursite.com/robots.txt. Before a crawler reads your pages, it checks this file for rules addressed to its name. Each rule names a crawler and the paths it shouldn't read. Subdomains like docs.yoursite.com need their own file.
This file tells the main training crawlers to stay out and leaves the named AI search crawlers and fetchers allowed. Google-Extended also restricts some uses of your pages in Gemini answers:
Code
# Optional opt-out example. Review the visibility tradeoffs first.# Include only the restrictions you intend to apply.User-agent: GPTBotDisallow: /User-agent: ClaudeBotDisallow: /User-agent: CCBotDisallow: /User-agent: meta-externalagentDisallow: /User-agent: Google-ExtendedDisallow: /User-agent: Applebot-ExtendedDisallow: /# Everyone else: allowedUser-agent: *Allow: /Here's what each blocked name does, from the documentation of OpenAI, Anthropic, Common Crawl, Meta, Google and Apple:
| Name | Company | What blocking it does |
|---|---|---|
| GPTBot | OpenAI | Keeps your pages out of OpenAI's model training |
| ClaudeBot | Anthropic | Keeps your future pages out of Anthropic's model training |
| CCBot | Common Crawl | Keeps your pages out of Common Crawl's public web dataset, which AI companies often train on |
| meta-externalagent | Meta | Stops the crawler Meta uses for AI training and indexing |
| Google-Extended | Opts out of future Gemini training and some Gemini answer sources; no effect on Google Search | |
| Applebot-Extended | Apple | Keeps your pages out of Apple's model training, with no effect on Spotlight, Siri or Safari |
Google-Extended and Applebot-Extended aren't crawlers. They're rules that Google's and Apple's normal crawlers read, which is how you can opt out of training and stay in their search results.
Google is more complicated. Blocking Google-Extended doesn't affect ordinary Google Search, but it does restrict use of your pages for future Gemini training and for grounding answers in Gemini Apps and Vertex AI. Grounding means using web content to support an answer. So opting out of training isn't always free of tradeoffs for AI visibility.
The file leaves AI search crawlers (OAI-SearchBot, Claude-SearchBot and PerplexityBot) and user-triggered fetchers (ChatGPT-User, Claude-User and Perplexity-User) allowed, since they aren't named.
Keep in mind that robots.txt is a request. Each of these companies documents robots.txt as the way to opt out, but nothing forces a crawler to follow it, as the Perplexity example earlier shows.
Fetchers may skip it too: OpenAI says robots.txt rules may not apply to ChatGPT-User, and Perplexity says Perplexity-User generally ignores them. Blocking a crawler also only affects what it reads from now on. It doesn't remove your pages from models already trained on them.
Enforce it in Cloudflare
Cloudflare can block crawlers before they reach your server, so a crawler that ignores robots.txt still gets turned away. To block one crawler by name, use the toggle next to it in AI Crawl Control > Security, and Cloudflare creates a firewall rule for it.
Cloudflare also groups AI traffic into categories you can allow or block separately, on every plan, including Free:
- Search: crawlers that index your site to answer questions later.
- Agents: bots acting for a person right now, including fetchers like ChatGPT-User and browser agents like Claude driving Chrome.
- Training: crawlers that collect content to train models.
Step 1: Open the access policies
In your site's dashboard, go to Security > Settings, filter by Bot traffic, and open AI Crawler and Agent access policies.
Step 2: Set Search, Training and Agents
Leave Search and Agents on Allow. The Agents setting covers both the user-triggered fetchers and the customer agents from earlier, so blocking it turns your customers' agents away too.
If AI discovery is a priority, leave Training on Allow and use targeted controls for crawlers that overload your site.
If you deliberately choose to opt out, select Disallow and enable Bot Preference Sync. Cloudflare then adds training restrictions to robots.txt and blocks training-only crawlers at its edge, while allowing mixed-use crawlers to continue accessing the site. Review the generated directives before treating this as a search-safe configuration: rules such as Google-Extended can still restrict uses in AI answers. Cloudflare’s documentation
Block is broader: it can also stop crawlers used for both training and search. Review its impact on search visibility before enabling it. Cloudflare’s policy definitions
Disallow is an optional training opt-out. For sites prioritizing AI discovery, our starting recommendation is Allow.
Check the settings for your domain rather than assuming bots are blocked by default. New domains currently start with Search, Training and Agents allowed; existing settings may differ.
Step 3: Rate limit heavy crawlers
For crawlers that ignore your rules or hit you too hard, go to Security > Security rules and create a rate limiting rule. Match the pages crawlers hit hardest, like /docs/*, and set the limit well above what a person reading them would reach. The Free plan includes one rate limiting rule, which counts requests per IP address over a 10-second period.
This rule blocks any IP address that requests more than 100 docs pages in 10 seconds.
Stop abuse at sign-up
The robots.txt and Cloudflare settings above deal with bots that read your site. They don't stop people who use scripts to create lots of free accounts. Those scripts look like a normal browser, and so do your customers' agents. So you have to catch the abuse when the account is created, before it uses anything.
Here are the steps we'd follow, based on what we've learned running agent sign-ups at AgentMail.
Step 1: Give every agent account an owner
Start by making sure every account an agent creates is linked to its owner, the person or company running the agent. This lets you revoke access if things go south.
There are 2 ways to give agents an identity:
- If the agent works for an existing customer, let that customer create a separate API key or OAuth grant for each agent from their account. Each agent's access is then tied to the customer, and you can revoke one agent without locking the customer out. Stripe does this with restricted keys that customers can tag as belonging to an agent.
- If the agent is signing up on its own, add a sign-in that tells you who owns it. We built AgentID for this. When an agent signs up with AgentID, you know who owns it, so you can limit or cut off that owner's agents.
Context.dev's founder turned autonomous sign-ups back on with AgentID after locking them down because of fraud.
Whichever you use, store the owner on each account so you can find all of an owner's accounts later. You'll need that for the next steps.
Step 2: Cap how many accounts each owner can create
Next, limit how many accounts one owner can have. Without a cap, an owner who wants more free usage can have their agents keep creating accounts.
If you use AgentID, set Maximum signups per owner in your app's AgentID settings. It's unlimited until you change it.
In the AgentID console, open your app's Settings and enter a number in Maximum signups per owner.
Step 3: Start new accounts on a smaller allowance
Even with a cap, every account an owner creates gets your free tier. So give new accounts a smaller allowance for anything that costs you money, like free credits, API calls, or emails sent, and raise it as the account shows normal use.
You can raise it after a set number of days, once the account has been using your product normally for a while, or when the owner adds a payment method.
We do this at AgentMail by limiting how quickly a new organization can email addresses it hasn't contacted before, so a spammer with a fresh account can't email thousands of strangers on day one.
Let customer agents sign up with AgentID
Once your public pages are accessible to useful AI traffic, give agents a clear route from discovering your product to using it. A sign-up flow that records the agent and its owner lets you welcome those customers while applying the account limits described above.
We built Sign in with AgentID for that step. It uses OpenID Connect, with integration guides for supported auth providers. Agents sign in with their own identity, linked to the account that owns them. If you need a person to contact, a registered app can request the owner's name and verified email with the relevant scopes and permission to share those details.
You can also set Maximum signups per owner in your app's settings. AgentID enforces that cap per AgentMail organization, so creating more agents within the same organization doesn't create a new allowance. Your app decides which features those accounts can use and how much usage to allow.
To try it, run this from your app's root folder and follow the setup prompts:
Bash
npx @agentmail/agentid-cli initThen choose a sign-up cap, test a sign-in, and check that your app stores the agent and owner identifiers. Start with an allowance you can afford to offer a new account, and adjust it as you learn how agents use your product.
Follow the integration guide or open the AgentID console to configure your app.
FAQ
Does robots.txt actually block AI bots?
It asks crawlers to stay out. To stop crawlers that ignore it, enforce the block in Cloudflare or at your server.
Will blocking AI training crawlers hurt my visibility in AI search?
It can, although the effect depends on the provider and the restriction.
OpenAI lets you block GPTBot while allowing OAI-SearchBot, so a training opt-out does not automatically exclude your site from ChatGPT search. That separation does not establish that blocking has no long-term effect on AI visibility. OpenAI’s crawler documentation
Google-Extended has a more direct consequence: disallowing it also restricts your content’s use in certain Gemini answers, while leaving Google Search unaffected. Google’s documentation
If AI visibility matters, keep training access open unless you have a clear reason to restrict it. Manage excessive crawling with targeted controls first.
Can I identify an AI agent from its user agent?
Not reliably. Bots can fake their user agent, and customer agents often look like ordinary browsers. Signed requests can verify which company sent some agents.
If a bot is verified by Cloudflare, can I trust it with my app?
Verification identifies the operator, not the customer behind a request. Still require an account linked to an owner for sign-ups and API access.
Should I block AI agents from signing up?
If agents can use your product, let them sign up with an owner on record. Cap accounts per owner so you can contain abuse.



