An AI crawler is a program that visits your site and reads pages. When it visits at a polite pace, it is useful: it lets your products show up in AI answers. When it visits too fast, it is a load problem: pages slow down for real shoppers, and your server spends its time answering a bot instead of a customer. Rate limiting is the middle path. It slows a crawler down without shutting it out, so your products stay visible and your shoppers stay fast.

Platform screens change. If a menu name here does not match what you see, check the vendor docs linked in Sources for the current path. The edge controls in this guide sit with your hosting provider or your CDN, and the screens differ by provider.

What this guide covers

This guide covers the full job in order. First, you find out which crawler is loading your site, and how fast it is visiting. Second, you slow it with the gentlest tool, a crawl delay where the crawler supports one. Third, you add an edge rule that caps the pace for a named crawler, with a challenge instead of a block. Fourth, you protect the pages that matter, the checkout and the cart, from crawler load. Fifth, you watch your logs and your shop speed, and you adjust the pace.

Who does each step

Marketer work is spotting the problem, a slow shop at the same time each day, and deciding which crawlers your business wants to keep. Developer work is reading the server logs, writing the robots.txt lines, and building the edge rule.

Step 1: find out which crawler is loading your site, and how fast

Start with your server logs, not with a guess. Look for the user agent string on each visit, the name the crawler sends with its request, and count the requests per minute from each one. A crawler that visits a few pages a minute is not your problem. A crawler that visits hundreds of pages a minute, at the same time your shoppers slow down, is. OpenAI runs GPTBot for training, OAI-SearchBot for ChatGPT search, and ChatGPT-User for a fetch a person asked for, and each one takes its own line in robots.txt. Anthropic runs ClaudeBot for training, Claude-SearchBot for search, and Claude-User for a fetch a person asked for. Perplexity runs PerplexityBot for search results and Perplexity-User for a fetch a person asked for. A rule written for one does nothing to the others. That is the first thing to get right, because a rule that names the wrong crawler either does nothing or blocks the wrong one.

Step 2: slow it with a crawl delay, where the crawler supports one

The gentlest tool is a crawl delay line in robots.txt, which asks a crawler to wait a number of seconds between requests. It is not part of the robots.txt standard. RFC 9309, the standard that defines robots.txt, defines Allow and Disallow, and it does not define Crawl-delay. That means every crawler treats it its own way, and you must check support crawler by crawler instead of assuming it works everywhere.

Anthropic supports it. Its crawler documentation says it supports the non standard Crawl-delay extension to robots.txt, and its example sets a delay of one second for ClaudeBot. Google does not support it. Google lists Crawl-delay as an unsupported field, and a site that needs Googlebot to slow down is told to use other means, such as returning 429, 500, or 503 responses. So a Crawl-delay line will slow some crawlers and be ignored by others, and that is normal. Write it for the crawlers that support it, and use the edge rule in the next step for the ones that do not.

One trap matters here. A crawler follows the group that names it, and it ignores the general group once it finds its own. RFC 9309 says a crawler must obey the group with the matching product token, and it falls back to the general group only when no matching group exists. So once you add a ClaudeBot group with a Crawl-delay line, ClaudeBot ignores your general group. Copy any Disallow lines you still need into the named group.

Step 3: add an edge rule that caps the pace, with a challenge instead of a block

When a delay line is not enough, or the crawler ignores it, add a rate limiting rule at the edge, in front of your server, where your CDN or firewall runs. Cloudflare documents rate limiting rules as a way to define limits for requests that match an expression, and the action to take when the limit is reached. A rule has an expression that says which requests it matches, characteristics that say how the rate is counted, a period, a number of requests per period, and a duration for the action.

Match the rule to one crawler, by its user agent, not to all traffic. Cloudflare gives an example of limiting by user agent, allowing a maximum of 100 requests in 10 minutes, with a Managed Challenge as the action. Use the same shape for a crawler: match its user agent, set a generous rate, and set the action to a challenge, not a block. A challenge slows a bot and lets a person through.

Cloudflare also warns that rate limiting rules are not designed to allow a precise number of requests to reach your origin server, and that there may be a delay of a few seconds between detecting a request and updating the counters. So set the rate with room in it, and expect rough enforcement, not exact counting.

Step 4: protect the pages that matter, and keep the search crawlers in

Rate limiting is not only about one crawler. It is also about which pages a crawler can reach at speed. Keep the cart, the checkout, the account pages, and any page behind a login out of the crawler path, in robots.txt, so crawler visits spend their pace on product and guide pages instead of pages no shopper wants cited. That is a Disallow, not a rate limit, and it belongs in the named group for each crawler, because of the group rule in step two.

Do not block by IP address. Anthropic warns that blocking its address ranges may not work correctly or persistently guarantee an opt out, because doing so stops its bots from reading the robots.txt file that would otherwise tell them to stay away. The same logic holds for any crawler: an address block that stops the crawler from reading your rules stops your rules from working. Use robots.txt for the ask, and the edge rule for the pace, and leave the address list for verification, not for blocking.

Keep the search crawlers in while you do this. Allowing OAI-SearchBot, Claude-SearchBot, and PerplexityBot is what keeps your products eligible for the answers those systems give. If you slow them, slow them gently, and watch whether your pages still appear.

Step 5: watch your logs and your shop speed, and adjust the pace

A rate limit is a setting, not a fix you set once. Watch two things after you change it: your server logs, and your shop speed at the times the crawler used to visit. The logs should show the named crawler visiting at the pace you set, with fewer bursts. The shop should feel fast for real shoppers at those times. If the logs show the crawler still bursting, tighten the rate a little, or add the delay line if you have not. If the logs show real shoppers hitting the challenge, loosen the rate, or narrow the rule so it matches only the crawler user agent.

Cloudflare documents that when a rule threshold is crossed, further requests are answered with an HTTP 429 response, with a Retry-After header that says when the client can resume sending requests. A well behaved crawler reads that header and waits. If a visitor ignores it and keeps hammering, that visitor is not behaving like the named crawler, and it belongs in a different conversation, about abuse, not about rate limiting.

Add three checks to your routine after any change: open the logs and confirm the named crawler is visiting at the new pace, open the shop at the busy time and confirm it is fast for a real shopper, and open your robots.txt and confirm the named groups still carry the Disallow lines they need.

Machine-readable version you can copy

This section gives you two copy-ready blocks, built only from fields verified in the vendor docs linked in Sources. Replace the example values with your own.

First, a robots.txt group that slows ClaudeBot with the delay Anthropic documents, while keeping the cart and checkout closed to it. Remember the group rule: once ClaudeBot has a group of its own, it ignores the general group, so the Disallow lines it needs must sit in this group.

code
User-agent: ClaudeBot
Crawl-delay: 1
Disallow: /cart/
Disallow: /checkout/

Second, the settings for an edge rate limiting rule in the shape Cloudflare documents in its best practices, matching one crawler by user agent, with a challenge as the action. This is a settings block, not a file. Enter these values in your provider dashboard, and check the provider docs in Sources for the current screen.

code
Match: user agent equals GPTBot
Rate: 100 requests per 10 minutes
Action: Managed Challenge
Count by: IP address

Worked example: a tea merchant whose shop slowed down every afternoon

Take a small tea merchant whose shop slowed down every afternoon, at the same time each day, while mornings were fast. The owner first assumed her hosting plan was too small. When her developer opened the server logs, the pattern was clear. One crawler, GPTBot, was visiting hundreds of product pages a minute in the afternoon, and the shop slowed exactly when the visits peaked. She did not want to block it. She wanted it slower.

She added an edge rule that matched the GPTBot user agent, allowed 100 requests in 10 minutes, and answered anything over that with a Managed Challenge. She left the search crawlers alone, and she confirmed the cart and checkout were closed to crawlers in robots.txt.

She watched the logs for a week. The afternoon bursts flattened, the shop stayed fast in the afternoon, and her products still appeared in ChatGPT search, because OAI-SearchBot was never touched. A month later a second crawler arrived under a new name and the load came back, and she added a second named rule for it, instead of tightening the first one.

Frequently Asked Questions

What is the difference between rate limiting and blocking a crawler?

Rate limiting caps how fast a crawler can visit, and lets it keep visiting. Blocking stops it entirely. A block on a search crawler takes your products out of the answers it feeds. A rate limit keeps them in, at a pace your server can handle.

Does Crawl-delay work for every crawler?

No. Crawl-delay is not part of RFC 9309, the robots.txt standard, so every crawler treats it its own way. Anthropic says it supports the Crawl-delay extension. Google lists it as an unsupported field. Write it for the crawlers that support it, and use an edge rule for the ones that do not.

Will a rate limiting rule block my real shoppers?

It can, if the rule is too tight or matches too broadly. Match the rule to one crawler by its user agent, set a generous rate, and use a challenge instead of a block. Watch the logs after any change, and loosen the rate if real shoppers hit the challenge.

Should I block a crawler by its IP address?

No. Anthropic warns that blocking its address ranges may not work correctly, because doing so stops its bots from reading the robots.txt file that would otherwise tell them to stay away. Use robots.txt for the ask, and the edge rule for the pace, and use the published address list to verify a visitor, not to block it. No. Anthropic warns that blocking its address ranges may not work correctly, because doing so stops its bots from reading the robots.txt file that would otherwise tell them to stay away. Use robots.txt for the ask, and the edge rule for the pace, and use the published address list to verify a visitor, not to block it.