Skip to content

Commit aba71eb

Browse files
zeinjaberpedrosousa
authored andcommitted
[WAF] Rate limiting: Update best-practices.mdx (#26480)
Addresses PCX-19114 --------- Co-authored-by: Pedro Sousa <[email protected]>
1 parent 768d312 commit aba71eb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/content/docs/waf/rate-limiting-rules/best-practices.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,20 @@ A common use case is to limit the rate of requests performed by individual user
2828
| Rate (Requests / Period) | 100 requests / 10 minutes |
2929
| Action | Managed Challenge |
3030

31+
### Limit reuse of a single `cf_clearance` cookie
32+
33+
After a visitor successfully passes a Managed Challenge, Cloudflare issues a `cf_clearance` cookie to identify them as verified. However, malicious actors may attempt to reuse or share a single valid `cf_clearance` value across multiple requests or devices to bypass additional challenges.
34+
35+
This rate limiting rule helps mitigate such abuse by restricting how many requests can be made with the same `cf_clearance` value within a defined period. Legitimate human users will remain unaffected, while automated or replayed requests using a single clearance token will be blocked once the threshold is exceeded.
36+
37+
| Setting | Value |
38+
| ------------------------ | -------------------------------------- |
39+
| Matching criteria | URI Path equals `/checkout` |
40+
| Expression | `http.request.uri.path eq "/checkout"` |
41+
| Counting characteristics | Cookie (`cf_clearance`) |
42+
| Rate (Requests / Period) | 100 requests / 10 minutes |
43+
| Action | Block |
44+
3145
### Allow specific IP addresses or ASNs
3246

3347
Another use case when controlling access to resources is to exclude or include IP addresses or Autonomous System Numbers (ASNs) from a rate limiting rule.

0 commit comments

Comments
 (0)