Troubleshoot Rate Limiting (previous version)
Last updated Apr 16, 2026 A few common rate limiting configuration issues prevent proper request matches:
- Including HTTP or HTTPS protocol schemes in rule patterns (such as
https://example.com/*). To restrict rules to match only HTTP or HTTPS traffic, use the schemes array in the request match. For example,"schemes": [ "HTTPS" ]. - Forgetting a trailing slash character (
/). Cloudflare Rate Limiting only treats requests for the homepage (such asexample.comandexample.com/) as equivalent, but not any other path (such asexample.com/path/andexample.com/path). To match request paths both with and without the trailing slash, use a wildcard match (for example,example.com/path*). - Including a query string or anchor (such as
example.com/path?foo=barorexample.com/path#section1). A rule likeexample.com/pathwill match requests forexample.com/path?foo=bar. - Overriding a rate limit with IP Access rules.
- Including a port number (such as
example.com:8443/api/). Rate Limiting does not consider port numbers within rules. Remove the port number from the URL so that the rate limit rule triggers as expected.
Common API errors
The following common errors may prevent configuring rate limiting rules via the Cloudflare API:
Decoding is not yet implemented– Indicates that your request is missing theContent-Type: application/jsonheader. Add the header to your API request to fix the issue.Ratelimit.api.not_entitled– Enterprise customers must contact their account team before adding rules.
Note
The origin_traffic parameter can only be set on Enterprise plans. Setting "origin_traffic" = false for a rule on a Free, Pro, or Business domain is automatically converted into "origin_traffic" = true.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/waf/rate-limiting-rules/troubleshooting/#page","headline":"Troubleshoot Rate Limiting (previous version)","description":"Troubleshoot issues with the previous version of Rate Limiting.","url":"https://developers.cloudflare.com/waf/rate-limiting-rules/troubleshooting/","inLanguage":"en","image":"https://developers.cloudflare.com/waf/reference/legacy/old-rate-limiting/troubleshooting/og.png?v=5e67242954c68c6a","dateModified":"2026-04-16","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Guide on upgrading rate limiting rules from the previous version to the new version. title: Rate limiting (previous version) upgrade image: https://developers.cloudflare.com/waf/reference/legacy/old-rate-limiting/upgrade/og.png?v=cccfe52c2c659055
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/waf/llms.txt
Use this file to discover all available pages before exploring further.
Docs