Azure Web Application Firewall (WAF) rate limiting (2024)

  • Article

Rate limiting for Web Application Firewall on Application Gateway allows you to detect and block abnormally high levels of traffic destined for your application. By using rate limiting on Application Gateway WAF_v2, you can mitigate many types of denial-of-service attacks, protect against clients that have accidentally been misconfigured to send large volumes of requests in a short time period, or control traffic rates to your site from specific geographies.

Rate limiting policies

Rate limiting is configured using custom WAF rules in a policy.

Note

Rate limit rules are only supported on Web Application Firewalls running the latest WAF engine. In order to ensure you are using the latest engine, select CRS 3.2 for the default rule set.

When you configure a rate limit rule, you must specify the threshold: the number of requests allowed within the specified time period. Rate limiting on Application Gateway WAF_v2 uses a sliding window algorithm to determine when traffic has breached the threshold and needs to be dropped. During the first window where the threshold for the rule is breached, any more traffic matching the rate limit rule is dropped. From the second window onwards, traffic up to the threshold within the window configured is allowed, producing a throttling effect.

You must also specify a match condition, which tells the WAF when to activate the rate limit. You can configure multiple rate limit rules that match different variables and paths within your policy.

Application Gateway WAF_v2 also introduces a GroupByUserSession, which must be configured. The GroupByUserSession specifies how requests are grouped and counted for a matching rate limit rule.

The following three GroupByVariables are currently available:

  • ClientAddr – This is the default setting and it means that each rate limit threshold and mitigation applies independently to every unique source IP address.
  • GeoLocation - Traffic is grouped by their geography based on a Geo-Match on the client IP address. So for a rate limit rule, traffic from the same geography is grouped together.
  • None - All traffic is grouped together and counted against the threshold of the Rate Limit rule. When the threshold is breached, the action triggers against all traffic matching the rule and doesn't maintain independent counters for each client IP address or geography. It's recommended to use None with specific match conditions such as a sign-in page or a list of suspicious User-Agents.

Rate limiting details

The configured rate limit thresholds are counted and tracked independently for each endpoint the Web Application Firewall policy is attached to. For example, a single WAF policy attached to five different listeners maintains independent counters and threshold enforcement for each of the listeners.

The rate limit thresholds aren't always enforced exactly as defined, so it shouldn't be used for fine-grain control of application traffic. Instead, it's recommended for mitigating anomalous rates of traffic and for maintaining application availability.

The sliding window algorithm blocks all matching traffic for the first window in which the threshold is exceeded, and then throttles traffic in future windows. Use caution when defining thresholds for configuring wide-matching rules with either GeoLocation or None as the GroupByVariables. Incorrectly configured thresholds could lead to frequent short outages for matching traffic.

Next step

Azure Web Application Firewall (WAF) rate limiting (2024)
Top Articles
Daytrading — Education — TradingView — India
Does the Amazon Credit Card Have Pre-Approval?
Swimgs Yuzzle Wuzzle Yups Wits Sadie Plant Tune 3 Tabs Winnie The Pooh Halloween Bob The Builder Christmas Autumns Cow Dog Pig Tim Cook’s Birthday Buff Work It Out Wombats Pineview Playtime Chronicles Day Of The Dead The Alpha Baa Baa Twinkle
Warren Ohio Craigslist
#ridwork guides | fountainpenguin
Zabor Funeral Home Inc
9192464227
Stl Craiglist
30% OFF Jellycat Promo Code - September 2024 (*NEW*)
What is international trade and explain its types?
Tanger Outlets Sevierville Directory Map
12 Best Craigslist Apps for Android and iOS (2024)
Ssefth1203
Gfs Rivergate
Craiglist Galveston
VMware’s Partner Connect Program: an evolution of opportunities
Hellraiser III [1996] [R] - 5.8.6 | Parents' Guide & Review | Kids-In-Mind.com
Sprinkler Lv2
Zoe Mintz Adam Duritz
Why Should We Hire You? - Professional Answers for 2024
Little Caesars 92Nd And Pecos
Best Mechanics Near You - Brake Masters Auto Repair Shops
Mc Donald's Bruck - Fast-Food-Restaurant
Melendez Imports Menu
Military life insurance and survivor benefits | USAGov
What Individuals Need to Know When Raising Money for a Charitable Cause
Vivification Harry Potter
Turns As A Jetliner Crossword Clue
Florence Y'alls Standings
Till The End Of The Moon Ep 13 Eng Sub
Http://N14.Ultipro.com
Nicole Wallace Mother Of Pearl Necklace
Tamilrockers Movies 2023 Download
De beste uitvaartdiensten die goede rituele diensten aanbieden voor de laatste rituelen
Gold Nugget at the Golden Nugget
Muziq Najm
Wattengel Funeral Home Meadow Drive
Craigslist Gigs Wichita Ks
Plead Irksomely Crossword
Levothyroxine Ati Template
Me Tv Quizzes
Verizon Outage Cuyahoga Falls Ohio
Weekly Math Review Q2 7 Answer Key
Bill Manser Net Worth
Inducement Small Bribe
Quick Base Dcps
All Weapon Perks and Status Effects - Conan Exiles | Game...
Amy Zais Obituary
Walmart Listings Near Me
Erica Mena Net Worth Forbes
Arnold Swansinger Family
Vt Craiglist
Latest Posts
Article information

Author: Jonah Leffler

Last Updated:

Views: 5601

Rating: 4.4 / 5 (45 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Jonah Leffler

Birthday: 1997-10-27

Address: 8987 Kieth Ports, Luettgenland, CT 54657-9808

Phone: +2611128251586

Job: Mining Supervisor

Hobby: Worldbuilding, Electronics, Amateur radio, Skiing, Cycling, Jogging, Taxidermy

Introduction: My name is Jonah Leffler, I am a determined, faithful, outstanding, inexpensive, cheerful, determined, smiling person who loves writing and wants to share my knowledge and understanding with you.