Free auditStart free
GuideError · HTTP status codes

429 Too Many Requests on Cloudflare

A Cloudflare 429 or error 1015 comes from a rate limiting rule. Find the rule in Security Events, tune period, duration and counting, and protect verified bots.

5 min
read
10
sources
Oct 29, 2026
updated
Scaplet Editorial Team
author
The short answer

On a site behind Cloudflare, a 429 Too Many Requests usually comes from a rate limiting rule, and visitors blocked by one see error 1015, "You are being rate limited". The default block response code is 429. Find the rule in Security Events, then change its request count, period, duration or counting characteristics. A 429 with no matching event came from your origin or another layer.

  1. Who sent the 429: your rule, the Cloudflare API, or your origin
  2. Tune the rate limiting rule
  3. Keep search crawlers out of the blast radius
30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01How it works

Who sent the 429: your rule, the Cloudflare API, or your origin

Cloudflare's docs describe 429 as the client sending too many requests in a specified amount of time, as determined by the server's rate-limiting rules, and add that Cloudflare "will generate a 429 response when a request is being rate limited". Three sources produce it, and each is fixed in a different place. The generic meaning is on 429 Too Many Requests.
  1. 1

    Reproduce and capture the headers

    Run curl -sSI https://example.com/path for the failing request and note whether Retry-After is present. The Cloudflare docs say a server may include it to say when the client can try again.

  2. 2

    Open Security Events

    In the Cloudflare dashboard, open the zone's security events and look at the Events by service section, which lists activity per feature, including Rate limiting rules. Open the matching event to see which rule fired.

  3. 3

    No event? Test the origin directly

    If nothing matches, the 429 was not generated by a Cloudflare rule. Request the origin by its own address and check the app's limiter.

Three sources of a 429 on Cloudflare
SourceTell-taleWhere to fix it
A rate limiting rule on your zoneVisitors see error 1015 "You are being rate limited"; the event appears under Security Events as Rate limiting rulesEdit the rule: threshold, period, duration, characteristics
The Cloudflare API limitCalls to api.cloudflare.com fail. The docs give a global limit of 1,200 requests per five minute period per user, and say all API calls for the next five minutes are blocked once you exceed itBatch calls and back off; Enterprise customers can ask Support to raise it
Your origin or appNo matching event in Security Events; the response body and headers come from your appFix the app's own limiter. See 429 in nginx
02Rule settings that cause surprise blocks

Tune the rate limiting rule

Setting

Period and requests

What the docs say
Requests per period over a window in seconds. A very short period catches bursts. For 1015, Cloudflare suggests that if a rule blocks within a short period such as one second, "try increasing the time period to 10 seconds"
Common fix
Use a longer period with a proportionate count
Setting

Duration (mitigation timeout)

What the docs say
Once the rate is reached, further requests are blocked for this duration, regardless of the request rate in that time (unless throttling is available on your plan)
Common fix
Lower it, for example from 1 hour to 1 minute
Setting

Characteristics

What the docs say
Counters are kept per unique combination of characteristics. IP-only counting groups everyone behind one NAT address
Common fix
On plans that allow it, add a header or cookie, or use IP with NAT support
Setting

Cached assets

What the docs say
By default cached requests count too; the option "Also apply rate limiting to cached assets" can be disabled on plans that offer it
Common fix
Count only requests that reach the origin
Setting

Counters per data center

What the docs say
Counters are not shared across data centers, apart from those in the same geographical location
Common fix
Do not expect an exact global count
Create a rule through the Rulesets API (from Cloudflare's example)
curl "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/rulesets/$RULESET_ID/rules" \
  --request POST \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --json '{
    "description": "My rate limiting rule",
    "expression": "(http.request.uri.path matches \"^/api/\")",
    "action": "block",
    "ratelimit": {
      "characteristics": ["cf.colo.id", "ip.src", "http.request.headers[\"x-api-key\"]"],
      "period": 60,
      "requests_per_period": 100,
      "mitigation_timeout": 600
    }
  }'

Rules are deployed to the http_ratelimit phase entry point ruleset and must appear at the end of the rules list. When the action is Block you can set a custom response; the code must be between 400 and 499 and the default is 429, with a body limit of 30 KB (custom responses need a Pro plan or above).

03Your call

Keep search crawlers out of the blast radius

Cloudflare warns that applying rate limiting rules to verified bots might affect SEO, and its SEO troubleshooting list says to check that rate limiting rules are allowing Verified Bots. Google's docs say 429 is treated as a server error, which prompts its crawlers to slow down, and that URLs already indexed are kept in the index but eventually dropped if the errors persist. Exclude the Verified Bot field in the rule's expression, or scope the rule to paths bots do not need, such as login or API routes.
If this fits

Raise the limit or period when

  • Real users hit 1015 during normal browsing, for example with a one second window
  • Many users share one IP address
  • The rule counts static assets that Cloudflare serves from cache
Or

Keep it tight when

  • The path is a login, OTP or checkout route that attackers target
  • The origin cannot absorb bursts
  • You can use a challenge action rather than a hard block

After a change, repeat your curl test over a few minutes and check the Security Events list for new rate limiting entries. Cloudflare notes that counters can lag by a few seconds, so some excess requests may still reach the origin. For the crawl effect of 4xx and 429 codes, see 4xx errors.

Sources · 10

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • cloudflare.com
  • google.com
  1. 01Cloudflare Support: Error 429developers.cloudflare.com · checked 2026-11-01
  2. 02Cloudflare Support: Error 1015developers.cloudflare.com · checked 2026-11-01
  3. 03Cloudflare WAF: Rate limiting rulesdevelopers.cloudflare.com · checked 2026-11-01
  4. 04Cloudflare WAF: Rate limiting parametersdevelopers.cloudflare.com · checked 2026-11-01
  5. 05Cloudflare WAF: Request rate calculationdevelopers.cloudflare.com · checked 2026-11-01
  6. 06Cloudflare WAF: Create a rate limiting rule via APIdevelopers.cloudflare.com · checked 2026-11-01
  7. 07Cloudflare WAF: Create a rate limiting rule in the dashboarddevelopers.cloudflare.com · checked 2026-11-01
  8. 08Cloudflare WAF: Security Eventsdevelopers.cloudflare.com · checked 2026-11-01
  9. 09Cloudflare: Improve SEOdevelopers.cloudflare.com · checked 2026-11-01
  10. 10How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-11-01
Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01What is Cloudflare error 1015?

Error 1015 reads "You are being rate limited". Cloudflare says the site owner has configured rate limiting rules restricting how many requests a visitor can make in a given time period, and that exceeding the limit returns 1015.

02I am a visitor. How do I get unblocked?

Wait and try again later, and do not retry repeatedly in a short time, because Cloudflare says that may extend the block. If you stay blocked, contact the site owner, since Cloudflare does not control which visitors are rate limited.

03Can I change the status code of a rate limit block?

Yes, on plans that support custom responses. With the Block action you can choose a code between 400 and 499; the default is 429.

04Why are my Cloudflare API calls returning 429?

The global API limit is 1,200 requests per five minutes per user across the dashboard, API keys and tokens. After you exceed it, calls are blocked for the next five minutes. Some endpoints, such as cache purge, have separate limits.

Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane