How to configure custom rate limiting rule for Azure Front Door Standard Web Application Firewall

BH 30 Reputation points
2025-04-28T10:04:47.63+00:00

I want to configure a rate limiting rule in the web application firewall for Azure Front Door Standard. When requests from a client IP address exceed the set threshold, the requests should be blocked. I cannot find examples for this scenario. I find only match conditions based on path.

The AI answer does not match the available options in the Azure portal rule configuration UI. Specifically, when Rule type is set to Rate Limit, the conditions Match Type options are presented as Geo location, IP address, Size, String. There is no RequestUri that I can find.

How would I configure a rate limiting rule for the WAF used by AFD that blocks requests from a client IP address when the requests exceed a specified threshold within the specified period of time?

Azure Web Application Firewall
{count} votes

Accepted answer
  1. Sindhuja Dasari 940 Reputation points Microsoft External Staff Moderator
    2025-04-28T12:20:08.55+00:00

    Hello BH

    I understand that you are trying to configure custom rate limiting rule for Azure Front Door Standard Web Application Firewall.

    If you are looking for the option with RequestUri, you could find it as below:

    Under Custom rule, conditions-->Select Match Type as String or Size-->Match Variable as RequestUri

    Please refer to the screenshot for reference:

    Rate

    If you want to configure it using the IP ranges, then

    • Match Type =IP Address
    • Set the range
      User's image
    • Please add the range 0.0.0.0/0 in IP address details.
    • Set the Action: Choose Block -this will block the requests after the threshold is breached, so they’ll receive a 403 Forbidden response.

    Finalize and apply the changes.

    Refer Custom Rate Limit-Azure for the detailed steps to configure the rate limit

    By default, WAF policies may be in Detection mode, switch to prevention mode.


    Please don’t forget to close the thread by clicking "Accept the answer" and "Yes" wherever the information provided helps you, as this can be beneficial to other community members.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.