Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 3 additions & 15 deletions src/content/docs/workers/runtime-apis/bindings/rate-limit.mdx
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
---
pcx_content_type: configuration
title: Rate Limiting
head: []
description: Define rate limits and interact with them directly from your Cloudflare Worker
sidebar:
badge:
text: Beta

---

import { TabItem, Tabs, WranglerConfig } from "~/components"
Expand All @@ -20,16 +15,10 @@ You can use it to enforce:
* Resource-specific or path-specific limits (ex: limit per API route)
* Any combination of the above

The Rate Limiting API is backed by the same infrastructure that serves the [Rate limiting rules](/waf/rate-limiting-rules/) that are built into the [Cloudflare Web Application Firewall (WAF)](/waf/).

:::caution[The Rate Limiting API is in open beta]


* You must use version 3.45.0 or later of the [Wrangler CLI](/workers/wrangler)

We want your feedback. Tell us what you'd like to see in the [#workers-discussions](https://discord.com/channels/595317990191398933/779390076219686943) or [#workers-help](https://discord.com/channels/595317990191398933/1052656806058528849) channels of the [Cloudflare Developers Discord](https://discord.cloudflare.com/). You can find the an archive of the previous discussion in [#rate-limiting-beta](https://discord.com/channels/595317990191398933/1225429769219211436)

The Rate Limiting API is backed by the same infrastructure that serves [rate limiting rules](/waf/rate-limiting-rules/).

:::note
You must use version 3.45.0 or later of the [Wrangler CLI](/workers/wrangler).
:::

## Get started
Expand All @@ -41,7 +30,6 @@ First, add a [binding](/workers/runtime-apis/bindings) to your Worker that gives
```toml
main = "src/index.js"

# The rate limiting API is in open beta.
[[unsafe.bindings]]
name = "MY_RATE_LIMITER"
type = "ratelimit"
Expand Down