Demo Hub
Interactive Demo

Rate Limiting Demo

Test Cloudflare's rate limiting capabilities by sending requests and observing how thresholds affect traffic.

Block Action

/test-endpoint-block
Threshold --
Period --

Requests exceeding the threshold are completely blocked with a 429 response for the mitigation period.

Throttle Action

/test-endpoint-throttle
Threshold --
Period --

Requests exceeding the threshold are slowed down, adding latency to responses instead of blocking.

Send Test Requests

Interval between requests: 800ms (25 requests over 20 seconds)
0
Total
0
Success (200)
0
Rate Limited (429)
0
Errors
Request Timeline
Success Rate Limited Threshold
Threshold: --
Click "Start Test" to send requests to the rate-limited endpoint

How It Works

  1. Two Cloudflare WAF rate limiting rules protect different endpoints with different actions
  2. Block action completely rejects requests exceeding the threshold with a 429 response for the mitigation timeout period
  3. Throttle action applies the configured action only to requests over the limit, while allowing other requests through (mitigation_timeout = 0)
  4. Adjust thresholds (5-100 requests) and periods (10s, 20s, 60s) to test different configurations
  5. Send test requests to observe how each action type handles traffic differently
  6. Rules automatically reset to 20 requests per 20 seconds at midnight UTC daily