Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase rate limit block window from 1 to 5 minutes #1148

Merged
merged 2 commits into from
Jul 10, 2024
Merged

Conversation

DrizzlyOwl
Copy link
Collaborator

A larger window size with the smallest acceptable request count threshold is the most effective configuration for preventing DDoS attacks. This configuration is more effective because when an attacker reaches the threshold they're blocked for the remainder of the rate limit window.

Therefore, if an attacker is blocked in the first 30 seconds of a one-minute window, they're only rate limited for the remaining 30 seconds. If an attacker is blocked in the first minute of a five-minute window, they're rate limited for the remaining four minutes.

Setting larger time window sizes (for example, five minutes over one minute) and larger threshold values (for example, 200 over 100) tend to be more accurate in enforcing close to rate limit's thresholds than using the shorter time window sizes and lower threshold values.

Azure Front Door WAF rate limiting operates on a fixed time period. Once a rate limit threshold is breached, all traffic matching that rate limiting rule is blocked for the remainder of the fixed window.

@DrizzlyOwl DrizzlyOwl requested a review from Stretch96 as a code owner July 10, 2024 16:14
@DrizzlyOwl DrizzlyOwl enabled auto-merge (squash) July 10, 2024 16:14
@DrizzlyOwl DrizzlyOwl merged commit 233a8dd into main Jul 10, 2024
1 check passed
@DrizzlyOwl DrizzlyOwl deleted the rate-limit branch July 10, 2024 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants