# Check rate limits

- Check 31.14 · AI crawler access and data policy · Critical
- Source: https://checklist-seo-geo.com/en/ai-crawler-access-data-policy/check-rate-limits
- Tune rate limiting on Nginx, Apache, Cloudflare, AWS WAF, fail2ban, Laravel or WordPress without choking search engine crawlers and AI crawlers.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/ai-crawler-access-data-policy/check-rate-limits.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

Rate limiting caps the number of requests a single IP address can send over a given period. Well tuned, it protects the server; too strict, it returns 429 or 403 errors to search engine crawlers and AI crawlers, which crawl in bursts. This check consists of taking stock of every active limit, measuring what crawlers actually receive, then setting caps that let verified bots through and respond cleanly (429 or 503 with `Retry-After`) when they need to slow down.

## Why it matters

Rate limits pile up without anyone thinking about it: one rule in the CDN (Content Delivery Network), another in Nginx, fail2ban on the server, a security plugin in the CMS. Each was tuned for a human visitor, who loads a few pages per minute.

A crawler does not behave that way. It requests dozens of URLs in a row, without cookies, from a small number of addresses. User-triggered fetchers (ChatGPT-User, Perplexity-User, Claude-User) add a special case: the requests of thousands of different users come out of the same vendor addresses. A per-IP limit calibrated for a human is quickly reached.

What happens next depends on the response:

- **Occasional 429 or 503**: the crawler slows down and comes back. Google documents these codes, along with 500, as the way to temporarily reduce its crawling, and specifies that `Retry-After` applies to 429 and 503 responses.
- **Prolonged 429 or 503**: Google warns that beyond one to two days, the affected URLs may drop out of the index, and that the slowdown affects the whole hostname.
- **403 or IP ban**: the crawler concludes that it is refused. A fail2ban that bans an OpenAI or Google address for an hour blocks all the crawling that goes through it.
- **CAPTCHA or JavaScript challenge**: no crawler solves it.

The `Crawl-delay` directive in robots.txt only solves part of the problem: it is not standard. Google does not support it, Bing honors it, Anthropic says it honors it for its crawlers; OpenAI and Perplexity do not mention it in their documentation.

## What it improves

- **Crawling**: verified bots no longer receive 429s under normal conditions, so they crawl and refresh your pages more regularly.
- **Indexing**: you avoid deindexing caused by 429 or 503 errors repeated over several days.
- **Live fetching by AI assistants**: on-demand reads succeed even when many users query your site at the same time. No guarantee of a citation, though.
- **Server stability**: abusive bots and scripts are slowed down before they reach the application.
- **Costs**: fewer useless requests served, especially on expensive pages (internal search, filters).

## How to check

**1. Measure what crawlers receive.** On a log in the combined format, count the 429s and 503s per crawler:

```bash
BOTS='OAI-SearchBot|GPTBot|ChatGPT-User|PerplexityBot|Perplexity-User|Claude-SearchBot|ClaudeBot|Claude-User|Googlebot|bingbot'
awk -F'"' -v bots="$BOTS" 'match($6, bots) {split($3, s, " "); if (s[1] == 429 || s[1] == 503) print s[1], substr($6, RSTART, RLENGTH)}' /var/log/nginx/access.log | sort | uniq -c | sort -rn
```

Compliant result: no lines, or a few isolated ones. Hundreds of 429s for a crawler you want to welcome indicate a limit that is too low.

**2. Measure a crawler's actual rate**, in requests per minute, to calibrate:

```bash
grep "GPTBot" /var/log/nginx/access.log | awk '{print substr($4, 2, 17)}' | sort | uniq -c | sort -rn | head
```

The first line gives the busiest minute. Your caps should sit above the peak observed for legitimate crawlers.

**3. Trigger the limit on your own site**:

```bash
for i in $(seq 1 40); do curl -s -o /dev/null -w "%{http_code}\n" https://example.com/; done | sort | uniq -c
```

If 429s appear, read the headers of the limited response: `curl -s -o /dev/null -D - https://example.com/ | grep -i -E "^HTTP|retry-after"`. Compliant result: a 429 code with a `Retry-After`, never a 403 or a challenge page.

> **Warning:** this test can get your own address banned by fail2ban or the firewall. Run it from a connection you can do without, and only on your own sites.

**4. Inventory the layers.** For each one, note the threshold, the period, the key (IP, session), the action and the blocking duration: CDN or WAF (Web Application Firewall), web server, fail2ban, application, security plugin, hosting provider limits.

## How to implement

### Before you start

Five rules keep you from choking crawlers:

- **Calibrate from the logs**, not from a value found in a tutorial. The figures in the examples below are starting points to adjust.
- **Exempt verified bots, or raise their cap, based on their IP**, never on the strength of the user agent. See [verify crawler identity against official IP ranges if possible](https://checklist-seo-geo.com/en/ai-crawler-access-data-policy/verify-crawler-identity-against-official-ip-ranges-if-possible).
- **Allow bursts** (`burst` parameter or equivalent): a crawler can request twenty pages in two seconds and then nothing for an hour.
- **Respond with a 429 and `Retry-After`**, not a 403 or a CAPTCHA. For unavailability, [use a temporary 503](https://checklist-seo-geo.com/en/http-redirects/use-503-during-temporary-maintenance).
- **Reserve strict limits for expensive paths**: login, internal search, API, cart. Content pages served from a cache can handle generous caps.

### Crawl-delay in robots.txt

For crawlers that honor it, `Crawl-delay` sets a delay in seconds between two requests:

```txt
User-agent: bingbot
Crawl-delay: 2
Disallow: /panier/

User-agent: ClaudeBot
Crawl-delay: 2
Disallow: /panier/
```

A named group replaces the `User-agent: *` group for that crawler: repeat your `Disallow` rules in it. For Bing, the crawl control setting in Bing Webmaster Tools is more granular. Google no longer offers a crawl rate setting: only 429, 500 and 503 codes make it slow down, to be used for a short time.

### Nginx

Versions: Nginx 1.18 and later, including 1.30 (stable) and 1.31 (mainline).

The `limit_req` module applies the limit. The example creates two zones: one for visitors, a larger one for crawlers whose address appears in the official lists. An empty key is not counted, which lets you route each request to a single zone. In the `http` context, for example in `/etc/nginx/conf.d/limites.conf`:

```nginx
geo $robot_verifie {
    default 0;
    include /etc/nginx/robots-verifies.geo;
}

map $robot_verifie $cle_visiteur {
    0 $binary_remote_addr;
    1 "";
}

map $robot_verifie $cle_robot {
    0 "";
    1 $binary_remote_addr;
}

limit_req_zone $cle_visiteur zone=visiteurs:10m rate=5r/s;
limit_req_zone $cle_robot zone=robots:10m rate=20r/s;
limit_req_status 429;
limit_req_log_level warn;
```

In the `server` block:

```nginx
location / {
    limit_req zone=visiteurs burst=20 nodelay;
    limit_req zone=robots burst=60 nodelay;
    try_files $uri $uri/ /index.php?$query_string;
}

error_page 429 @trop_de_requetes;

location @trop_de_requetes {
    add_header Retry-After 60 always;
    return 429;
}
```

The `/etc/nginx/robots-verifies.geo` file contains one `RANGE 1;` line per official range. Without `limit_req_status 429`, Nginx responds with a 503. Adapt the `try_files` to your application, then reload:

```bash
sudo nginx -t && sudo systemctl reload nginx
```

Behind a CDN, `$binary_remote_addr` contains the CDN's address: restore the visitor's address with `set_real_ip_from` and `real_ip_header`, otherwise all traffic shares the same limit.

### Apache

Versions: Apache 2.4; third-party mod_evasive and mod_qos modules as provided by Debian and Ubuntu.

Three modules go by the name of “limiting”, with different roles.

**mod_ratelimit** limits the bandwidth of a response, in KiB per second. It does not count requests and therefore does not protect against a burst; it is used to throttle large downloads:

```apache
<Location "/telechargements/">
    SetOutputFilter RATE_LIMIT
    SetEnv rate-limit 512
    SetEnv rate-initial-burst 1024
</Location>
```

**mod_evasive** temporarily bans an IP that exceeds a number of requests. `libapache2-mod-evasive` package on Debian and Ubuntu, configuration in `/etc/apache2/mods-available/evasive.conf`:

```apache
DOSHashTableSize    3097
DOSPageCount        20
DOSPageInterval     1
DOSSiteCount        200
DOSSiteInterval     1
DOSBlockingPeriod   60
DOSWhitelist        66.249.64.*
DOSWhitelist        66.249.65.*
```

`DOSPageCount` is the number of requests for the same URL per interval, `DOSSiteCount` the total number per IP. `DOSWhitelist` only accepts per-octet wildcards, not CIDR notation, which makes exempting crawlers tedious. The module responds with a 403 by default, a misleading signal for a crawler: if your version offers the `DOSHTTPStatus` directive, set it to 429. Keep the blocking period short.

**mod_qos** offers finer control, in particular over simultaneous connections per IP, with exclusions:

```apache
QS_ClientEntries        100000
QS_SrvMaxConnPerIP      40
QS_SrvMaxConnExcludeIP  66.249.
```

`QS_SrvMaxConnExcludeIP` accepts an address or a prefix ending with a dot. Refusals issued at the connection level usually respond with a 500 error, which the `QS_ErrorResponseCode` directive does not change in that case: watch for these 500s in the crawler logs. For a limit based on a number of events (`QS_ClientEventPerSecLimit`), refer to the module's documentation.

To add `Retry-After` to every 429 or 503 response produced by Apache:

```apache
Header always set Retry-After "60" "expr=%{REQUEST_STATUS} == 429"
Header always set Retry-After "3600" "expr=%{REQUEST_STATUS} == 503"
```

```bash
sudo apachectl configtest && sudo systemctl reload apache2
```

### Fail2ban

Fail2ban reads the logs and bans, in the firewall, the addresses that trigger too many errors. It is the most dangerous layer for crawlers, because a ban cuts off every connection. In `/etc/fail2ban/jail.local`:

```ini
[DEFAULT]
ignoreip = 127.0.0.1/8 ::1 66.249.64.0/19 20.171.206.0/24

[nginx-limit-req]
enabled  = true
port     = http,https
logpath  = /var/log/nginx/error.log
findtime = 600
maxretry = 30
bantime  = 600
```

Complete `ignoreip` with the official ranges of the crawlers you welcome. Also check the `apache-badbots` filter if it is active: it bans based on a list of user agents, so review that list. Useful commands:

```bash
sudo fail2ban-client status
sudo fail2ban-client status nginx-limit-req
sudo fail2ban-client set nginx-limit-req unbanip 20.171.206.10
sudo systemctl reload fail2ban
```

### Cloudflare

Versions: Cloudflare dashboard, all plans (number of rules and periods depending on the plan), November 2026.

Open [`Security > Security rules`](https://dash.cloudflare.com/?to=/:account/:zone/security/security-rules), then create a rate limiting rule (`Security > WAF > Rate limiting rules` in the old navigation). Example that protects internal search without affecting verified bots:

```txt
(http.request.uri.path contains "/recherche" and not cf.client.bot)
```

Then set the counting characteristic (IP), the number of requests, the period, the `Block` action and the mitigation timeout. The number of rules, periods and durations available depend on the plan: the Free plan is limited to one rule over a ten-second window. Review existing rules: a rule without the `not cf.client.bot` condition, applied to the whole site, also hits Googlebot. Rate-limited requests appear in [`Security > Events`](https://dash.cloudflare.com/?to=/:account/:zone/security/analytics).

### AWS

Versions: AWS WAF, rate-based rules, November 2026 console.

In AWS WAF ([console](https://console.aws.amazon.com/wafv2/homev2)), a rate-based rule counts requests per IP over a 60, 120, 300 or 600-second window, with a minimum threshold of 10. Here, the scope-down statement excludes verified bots, and the custom response replaces the default 403 with a 429:

```json
{
  "Name": "limite-debit-par-ip",
  "Priority": 30,
  "Statement": {
    "RateBasedStatement": {
      "Limit": 1000,
      "EvaluationWindowSec": 300,
      "AggregateKeyType": "IP",
      "ScopeDownStatement": {
        "NotStatement": {
          "Statement": {
            "IPSetReferenceStatement": {
              "ARN": "arn:aws:wafv2:us-east-1:123456789012:global/ipset/robots-verifies/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
            }
          }
        }
      }
    }
  },
  "Action": {
    "Block": {
      "CustomResponse": {
        "ResponseCode": 429,
        "ResponseHeaders": [
          { "Name": "Retry-After", "Value": "300" }
        ]
      }
    }
  },
  "VisibilityConfig": {
    "SampledRequestsEnabled": true,
    "CloudWatchMetricsEnabled": true,
    "MetricName": "limite-debit-par-ip"
  }
}
```

Behind CloudFront or an Application Load Balancer, the web ACL sees the client's address. Behind another proxy, aggregate on the address forwarded in the `X-Forwarded-For` header.

### Plesk

Versions: Plesk Obsidian 18.0 for Linux, with nginx.

Two places to check: Fail2ban (`Tools & Settings > IP Address Banning (Fail2Ban)`, `Jails` and `Trusted IP Addresses` tabs, where you add the crawlers' ranges) and the Nginx directives. `limit_req_zone` is declared at the `http` level, so in an `/etc/nginx/conf.d/limites.conf` file created by the administrator; the `limit_req` directive is then pasted into `Websites & Domains > example.com > Apache & nginx Settings > Additional nginx directives`.

### cPanel

Versions: cPanel & WHM 110 and later with EasyApache 4; CloudLinux for resource limits.

Limits are set on the server side, in WHM: `mod_evasive` installed through EasyApache 4, firewall connection limits. cPHulk only covers login attempts. On hosting running CloudLinux, exceeding the resources allocated to the account produces a “508 Resource Limit Is Reached” error for every visitor, crawlers included: check Resource Usage in cPanel.

### Shared hosting

You do not control the hosting provider's firewall, but you can reduce the load per request: page caching, [a robots.txt that keeps crawlers away from useless URLs](https://checklist-seo-geo.com/en/ai-crawler-access-data-policy/configure-robotstxt-match-these-goals), `Crawl-delay` for crawlers that honor it. If the logs show 429s, 503s or 508s you did not configure, ask support for the threshold applied.

### Vercel

Versions: Vercel Firewall (WAF Rate Limiting), all plans, November 2026.

The project's firewall (`Firewall`) offers custom rules with the `Rate Limit` action, on all plans: one rule per project on Hobby, with a window of 10 seconds to 10 minutes (one hour on Enterprise). The default action responds with `429 Too Many Requests`. Check that they target specific paths (API, authentication) rather than the whole site.

### WordPress

Versions: WordPress 6.4 to 7.1; Wordfence 9.x (current version in November 2026).

- **Wordfence**: [`Wordfence > Firewall > All Firewall Options`](https://www.wordfence.com/help/firewall/rate-limiting/), *Rate Limiting* section. Set how Google's crawlers are treated to “Verified Google crawlers will not be rate-limited”, prefer the “throttle” action over “block”, and raise the thresholds for crawlers.
- **Solid Security, All-In-One Security, Sucuri**: look for bot detection, “404 detection” and automatic banning options; add the crawlers' ranges to the trusted lists.
- **Login limiting plugins**: they only cover `wp-login.php`, with no effect on crawlers.
- **Managed WordPress hosts**: they apply their own limits; ask for their documentation.

Page caching remains the best protection: a page served from the cache costs little, crawler or not.

### Laravel

Versions: Laravel 10 to 13. The limiter is the same everywhere; only the declaration of trusted proxies changes from Laravel 11 onwards.

Declare a named limiter in `app/Providers/AppServiceProvider.php`. Verified bots, whose ranges are read from the configuration, are not limited:

```php
<?php

namespace App\Providers;

use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\RateLimiter;
use Illuminate\Support\ServiceProvider;
use Symfony\Component\HttpFoundation\IpUtils;

class AppServiceProvider extends ServiceProvider
{
    public function boot(): void
    {
        RateLimiter::for('pages', function (Request $request): Limit {
            $ip = (string) $request->ip();

            if (IpUtils::checkIp($ip, config('services.verified_bots.ranges', []))) {
                return Limit::none();
            }

            return Limit::perMinute(120)->by($ip);
        });
    }
}
```

Apply it to the relevant routes:

```php
Route::middleware('throttle:pages')->group(function () {
    Route::get('/recherche', [SearchController::class, 'index'])->name('search');
});
```

Laravel responds with a 429 and adds the `Retry-After` header itself. Do not apply `throttle` to every public page if an HTTP cache already serves them.

Behind a proxy or a CDN, declare the trusted proxies, otherwise `$request->ip()` returns the proxy's address and all visitors share the same limit.

#### Laravel 11 to 13

In `bootstrap/app.php`:

```php
->withMiddleware(function (Middleware $middleware): void {
    $middleware->trustProxies(at: [
        '192.0.2.0/24',
    ]);
})
```

#### Laravel 10

In `app/Http/Middleware/TrustProxies.php`:

```php
protected $proxies = [
    '192.0.2.0/24',
];
```

## Common mistakes

- **Responding with a 403 instead of a 429**: the crawler understands “forbidden”, not “later”.
- **Banning instead of limiting**: a one-hour ban on a crawler address cuts off crawling well beyond the peak.
- **Exempting on the user agent**: every abusive script will present itself as Googlebot.
- **Forgetting a layer**: the CDN limit is correct, but the WordPress plugin's still returns 503s.
- **Limiting by IP behind a proxy without restoring the real address**: all visitors share the same counter.
- **Letting a 429 or a 503 last for days**: beyond one to two days, Google may remove the URLs from its index.
- **Relying on `Crawl-delay` for Google**: it ignores it.
- **Copying thresholds without looking at your logs**: see [fix excessive 429s](https://checklist-seo-geo.com/en/http-redirects/fix-excessive-429s) for the calibration approach.

## Frequently asked questions

### What code should I return to a crawler that sends too many requests?

Return a 429 code with a `Retry-After` header, or a 503 in case of temporary unavailability: the crawler understands that it must slow down and comes back later. Avoid the 403, which it interprets as a refusal, as well as CAPTCHAs and JavaScript challenges, which no crawler solves. Google specifies that `Retry-After` applies to 429 and 503 responses.

### Can 429 errors get my pages deindexed?

Yes, if they last. Google uses 429, 500 and 503 codes to temporarily reduce its crawling, but warns that beyond one to two days, the affected URLs may drop out of the index, and that the slowdown affects the whole hostname. Overly strict rate limiting, applied continuously to Googlebot, therefore ends up costing visibility.

### Does Google honor the Crawl-delay directive?

No, Google does not support the `Crawl-delay` directive in robots.txt and no longer offers a crawl rate setting: only 429, 500 and 503 codes, for a short time, make it slow down. Bing honors it, and Anthropic says it honors it for its crawlers; OpenAI and Perplexity do not mention it in their documentation.

### Why do AI user-triggered fetchers reach limits so quickly?

User-triggered fetchers such as ChatGPT-User, Perplexity-User or Claude-User carry the requests of thousands of different users, all coming out of the same vendor addresses. A per-IP limit calibrated for a human visitor is therefore quickly reached. Exempt these crawlers or raise their cap based on their official addresses, rather than letting them receive 429s.

## Resources

- [Google: reduce the Googlebot crawl rate](https://developers.google.com/crawling/docs/crawlers-fetchers/reduce-crawl-rate)
- [Anthropic: Claude's crawlers and Crawl-delay support](https://support.claude.com/en/articles/8896518)
- [OpenAI: crawlers and user agents](https://developers.openai.com/api/docs/bots)
- [Bing Webmaster Tools](https://www.bing.com/webmasters/)
- [MDN: 429 Too Many Requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/429) and [Retry-After header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Retry-After)
- [Nginx: limit_req module](https://nginx.org/en/docs/http/ngx_http_limit_req_module.html)
- [Apache: mod_ratelimit](https://httpd.apache.org/docs/2.4/mod/mod_ratelimit.html)
- [mod_qos: documentation](https://mod-qos.sourceforge.net/)
- [Cloudflare: rate limiting rules](https://developers.cloudflare.com/waf/rate-limiting-rules/)
- [AWS WAF: rate-based rules](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-type-rate-based.html)
- [Laravel: rate limiting](https://laravel.com/docs/rate-limiting)

Next steps: [analyze AI crawler logs](https://checklist-seo-geo.com/en/ai-crawler-access-data-policy/analyze-ai-crawler-logs) and [check automatic blocking and CAPTCHAs](https://checklist-seo-geo.com/en/ai-crawler-access-data-policy/check-automatic-blocking-captchas).
