---
title: "Rate limiting"
description: "A rule that counts requests from each visitor and slows or blocks any that ask too often in a set time, often with a 429 status code."
url: https://ursy.com/wiki/rate-limiting/
updated: 2026-11-26T15:46:05+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/rate-limiting/
---

# Rate limiting

> A rule that counts requests from each visitor and slows or blocks any that ask too often in a set time, often with a 429 status code.

**Rate limiting is a rule that counts the requests coming from each visitor, such as each [IP address](https://ursy.com/wiki/ip-address/), and slows or blocks any that ask too often in a set time.** A server often answers with the status code `429 Too Many Requests`. Done well, it stops floods and scrapers while people and wanted crawlers carry on. Done badly, it locks out customers and tells [Google](https://ursy.com/wiki/google/) your site is overloaded.

## What is rate limiting? {#what-is-rate-limiting}

It is a speed limit for requests. The site counts how many requests one visitor makes in a window of time, and acts when the count goes over a set number. [MDN says](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/429) the `429` status means the client has sent too many requests in a given amount of time, and that asking the client to slow down is commonly called rate limiting. The code was defined in [RFC 6585](https://www.rfc-editor.org/rfc/rfc6585#section-4), published in April 2012. See [HTTP status code](https://ursy.com/wiki/http-status-code/).

## How does it work? {#how-does-it-work}

Every rule has the same parts. The [Cloudflare rate limiting docs](https://developers.cloudflare.com/waf/rate-limiting-rules/) name them: an expression that says which traffic to match, the characteristics that say who is counted (such as the IP address), the period in seconds, the number of requests allowed per period, the action, and how long the block lasts. RFC 6585 leaves the details to you: it does not define how the server identifies the user, nor how it counts requests. It also says `429` responses must not be stored by a cache.

## Why does it matter for search? {#why-does-it-matter-for-search}

Rate limiting protects a small site from scrapers, login floods and badly built [bots](https://ursy.com/wiki/bot-web-robot/) that can slow pages for everyone. But set too tight, it can block real search crawlers. [Google says](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) its crawlers treat a `429` as a sign the server is overloaded and temporarily slow down. If the errors go on, URLs already in the index can eventually be dropped. So a limit should stop abuse without starving [Googlebot](https://ursy.com/wiki/googlebot/) or the [AI search](https://ursy.com/wiki/ai-search/) crawlers you want. See [crawl budget](https://ursy.com/wiki/crawl-budget/).

## Why does it matter for AI answers? {#why-does-it-matter-for-ai-answers}

AI [answer engines](https://ursy.com/wiki/answer-engine/) read pages through their own bots. Some crawl ahead of time, such as [OAI-SearchBot](https://ursy.com/wiki/oai-searchbot/) for [ChatGPT search](https://ursy.com/wiki/chatgpt-search/). Others fetch one page when a person asks, such as [ChatGPT-User](https://ursy.com/wiki/chatgpt-user/); see [live fetcher](https://ursy.com/wiki/live-fetcher/). A live fetch that gets a `429` leaves the answer to be built from other sites. [Training crawlers](https://ursy.com/wiki/training-crawler/) such as [GPTBot](https://ursy.com/wiki/gptbot/) and [ClaudeBot](https://ursy.com/wiki/claudebot/) read for model training, not for a live answer, so a limit on them costs less. Decide which [AI crawlers](https://ursy.com/wiki/ai-crawler/) you want, then limit the rest.

## Worked example {#worked-example}

MDN shows what a rate-limited reply can look like when a client has sent too many requests in a minute:

```
HTTP/1.1 429 Too Many Requests
Content-Type: text/html
Retry-After: 3600

<html lang="en-US">
  <head>
    <title>Too Many Requests</title>
  </head>
  <body>
    <h1>Too Many Requests</h1>
    <p>You're doing that too often! Try again later.</p>
  </body>
</html>
```

`Retry-After: 3600` means try again in 3,600 seconds, which is 60 minutes. For a bakery’s order form, an hour’s lock-out after a burst of fake orders is sensible. For the whole site it is not: a crawler that trips the same limit is told the server is overloaded and backs off, and real customers behind one shared office or mobile network address can be locked out together.

## One limit or many? {#one-limit-or-many}

Set limits by path, not one for the whole site. A sketch for the same bakery:

| Path | Who is hammering it | A sensible rule |
| --- | --- | --- |
| Login and order form | Floods of fake orders | Tight limit per address; long block |
| Site search | Scrapers trying every word | Medium limit; short block |
| Product and guide pages | People, Googlebot, AI search bots | Loose limit, or none for checked crawlers |
| Pictures, scripts, styles | Every browser, on every page | Leave out of the count |

The numbers depend on your traffic. Start loose, watch who gets limited, then tighten.

## What does Retry-After tell a bot? {#what-does-retry-after-tell-a-bot}

[MDN says](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Retry-After) `Retry-After` tells the client how long to wait, either as a number of seconds or as a date. It is used with `429`, with `503 Service Unavailable`, and with some [redirects](https://ursy.com/wiki/redirect/). MDN notes support is still inconsistent, but some crawlers, like Googlebot, honour it. It suggests sending it with a `503` during planned downtime, so [search engines](https://ursy.com/wiki/search-engine/) keep indexing your site when the downtime is over.

## Can I just slow Googlebot down? {#can-i-just-slow-googlebot-down}

Only for a short time. Google’s [crawl rate guide](https://developers.google.com/crawling/docs/crawlers-fetchers/reduce-crawl-rate) says to return a `500`, `503` or `429` instead of `200`, and not for longer than 1-2 days. If Googlebot sees these codes on the same [URL](https://ursy.com/wiki/url/) for multiple days, the URL may be dropped from Google’s index. Google says not to use `401` or `403` to limit [crawling](https://ursy.com/wiki/crawling/); other 4xx codes, except `429`, have no effect on [crawl rate](https://ursy.com/wiki/crawl-rate/). The [robots.txt spec](https://developers.google.com/crawling/docs/robots-txt/robots-txt-spec) says Google does not support `crawl-delay`. [Anthropic says](https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler) it does support `Crawl-delay` for its bots.

## What if robots.txt gets limited? {#what-if-robots-txt-gets-limited}

That is worse. Search Console’s [Crawl stats help](https://support.google.com/webmasters/answer/9679690) counts a `429` or `5xx` on [robots.txt](https://ursy.com/wiki/robots-txt/) as an unsuccessful fetch, and says that if robots.txt stays unavailable for a day, Google halts crawling until it gets a valid answer. The robots.txt spec says that for a `5xx`, Google stops crawling the site for the first 12 hours while it keeps trying. Never put robots.txt behind a limit.

## Common mistakes {#common-mistakes}

- One limit for the whole site, when only the login or form is being hammered.
- Counting every request, so a single page with many pictures and scripts uses up a visitor’s allowance.
- Never checking who was limited, so a blocked crawler goes unnoticed for weeks.
- Rate limiting [verified bots](https://ursy.com/wiki/verified-bots/). Cloudflare’s docs warn that applying rate limiting rules to verified bots might affect [SEO](https://ursy.com/wiki/seo-search-engine-optimisation/).
- Trusting a bot’s name alone. Anyone can send “Googlebot” as their [user agent](https://ursy.com/wiki/user-agent/), so check the address before you exempt it.
- Using a `403` to slow Google down. Google says 4xx codes other than `429` do not change crawl rate.
- Leaving an emergency limit on for weeks. See [Under Attack Mode](https://ursy.com/wiki/under-attack-mode/) and [Cloudflare blocking Googlebot](https://ursy.com/wiki/cloudflare-blocking-googlebot/).

## How to check it {#how-to-check-it}

1. In Search Console, open Settings, then Crawl stats, and look for a rise in server errors or `429` responses. Check Host status for robots.txt fetch problems.
2. If you use Cloudflare, open Security, then the WAF, and review your rate limiting rules: what they match, the request count, the period and the action. See [web application firewall](https://ursy.com/wiki/web-application-firewall/), [bot score](https://ursy.com/wiki/bot-score/) and [Super Bot Fight Mode](https://ursy.com/wiki/super-bot-fight-mode/).
3. Check your [server logs](https://ursy.com/wiki/server-logs/) for `429` answers sent to known crawlers. The in-browser [AI Crawler Log Analyser](https://ursy.com/ai-crawler-log-analyzer/) is live. Write a pattern to find bot names with the [regex tester](https://ursy.com/webmaster-tools/regex-tester/).
4. A `429` may carry a `Retry-After` header saying how long to wait. Our [HTTP Header Checker](https://ursy.com/http-header-checker/) shows the status code and headers a page returns.
5. Before exempting a bot, check its address with [Verify an AI Bot](https://ursy.com/verify-ai-bot/). [Google](https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot) publishes its crawler IP lists and supports a [reverse DNS check](https://ursy.com/wiki/reverse-dns-bot-check/); [OpenAI](https://developers.openai.com/api/docs/bots) publishes lists for each of its bots. Work out a [network block](https://ursy.com/wiki/network-block/) with the [subnet calculator](https://ursy.com/webmaster-tools/subnet-calculator/).
6. Check that robots.txt answers `200` and says what you mean with the [Robots.txt Checker](https://ursy.com/robots-txt-checker/). See which AI bots it lets in with the [AI Bot Checker](https://ursy.com/ai-bot-checker/).
7. Check a page’s overall readiness for AI with the [AI Readiness Checker](https://ursy.com/ai-readiness-checker/), and set your site beside a rival’s with [Compare Two Websites](https://ursy.com/compare-websites/).
8. Find filter links that make endless pages and attract bots. The [Crawl Trap Checker](https://ursy.com/crawl-trap-checker/) and the [Edge Cache Checker](https://ursy.com/cache-checker/) are live. Pages served from the [edge cache](https://ursy.com/wiki/edge-cache/) cost your [origin server](https://ursy.com/wiki/origin-server/) little.
9. To see who is limited over time, the [log file analyser](https://ursy.com/pro/log-file-analyser/), [bot cost](https://ursy.com/pro/bot-cost/), [scraper and flood detector](https://ursy.com/pro/scraper-and-flood-detector/), [bot rules manager](https://ursy.com/pro/bot-rules-manager/) and [fake bot detector](https://ursy.com/pro/fake-bot-detector/) are in URSY Pro, opening in stages.

## What URSY.com counts {#what-ursy-counts}

Our [methodology](https://ursy.com/methodology/) counts every request from two places: the CDN’s edge log, cache [hits](https://ursy.com/wiki/hit-analytics/) included, and the website itself. Status codes, `429` included, are observed, so you can see which bots were limited and how often. Each named bot is checked against its company’s published IP list and marked real, fake or unknown. A machine’s run of requests from one network block is one [visit](https://ursy.com/wiki/bot-visit/), ending after 30 minutes of quiet.

## Questions {#questions}

### Is rate limiting the same as blocking? {#is-rate-limiting-the-same-as-blocking}

No. Blocking refuses a visitor every time. Rate limiting only acts when a visitor asks too often, then lets it back in.

### Will a 429 hurt my rankings? {#will-a-429-hurt-my-rankings}

A short burst slows Google’s crawling. Google says URLs that keep returning server errors are removed from the index, so do not let it run for days.

### Does rate limiting stop a DDoS attack? {#does-rate-limiting-stop-a-ddos-attack}

It helps against floods from a few addresses. A large [DDoS attack](https://ursy.com/wiki/ddos-attack/) from many addresses needs more, usually at the [CDN](https://ursy.com/wiki/cdn/).

### Should I rate limit AI crawlers? {#should-i-rate-limit-ai-crawlers}

Limit the ones you do not want, or [block them](https://ursy.com/wiki/block-ai-crawlers/). For the AI search bots that send you visitors, a loose limit is safer. Read [will AI crawlers slow my website?](https://ursy.com/guides/will-ai-crawlers-slow-my-website/)

### Is a CAPTCHA a better choice? {#is-a-captcha-a-better-choice}

A [CAPTCHA](https://ursy.com/wiki/captcha/) or a [managed challenge](https://ursy.com/wiki/managed-challenge/) asks a visitor to prove they are human. Use it on forms. Crawlers cannot pass one, so keep it off pages you want indexed.

## Related words {#related-words}

- [Web application firewall (WAF)](https://ursy.com/wiki/web-application-firewall/)
- [DDoS attack](https://ursy.com/wiki/ddos-attack/)
- [Crawl budget](https://ursy.com/wiki/crawl-budget/)
- [HTTP status code](https://ursy.com/wiki/http-status-code/)
- [Verified bots](https://ursy.com/wiki/verified-bots/)
- [Search crawler](https://ursy.com/wiki/search-crawler/)
- [AI crawler](https://ursy.com/wiki/ai-crawler/)
- [Server logs](https://ursy.com/wiki/server-logs/)
- [Cloudflare Bot Fight Mode](https://ursy.com/wiki/cloudflare-bot-fight-mode/)

## Sources {#sources}

- [MDN: 429 Too Many Requests (last modified 22 June 2026)](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/429), checked 24 November 2026
- [IETF RFC 6585: Additional HTTP Status Codes, section 4 (April 2012)](https://www.rfc-editor.org/rfc/rfc6585#section-4), checked 24 November 2026
- [MDN: Retry-After header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Retry-After), checked 24 November 2026
- [Google: How HTTP status codes affect Google’s crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes), checked 24 November 2026
- [Google: Reduce the Google crawl rate](https://developers.google.com/crawling/docs/crawlers-fetchers/reduce-crawl-rate), checked 24 November 2026
- [Google: How Google interprets the robots.txt specification](https://developers.google.com/crawling/docs/robots-txt/robots-txt-spec), checked 24 November 2026
- [Search Console Help: Crawl Stats report](https://support.google.com/webmasters/answer/9679690), checked 24 November 2026
- [Google Search Central: Verifying Googlebot and other Google crawlers](https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot), checked 24 November 2026
- [OpenAI: Overview of OpenAI crawlers](https://developers.openai.com/api/docs/bots), checked 24 November 2026
- [Anthropic Help Center: Does Anthropic crawl data from the web?](https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler), checked 24 November 2026
- [Cloudflare Docs: Rate limiting rules](https://developers.cloudflare.com/waf/rate-limiting-rules/), checked 24 November 2026

*Updated 24 November 2026 by URSY.com.*
