0

Is there a way to add rate limiting to azure VM? We have a VM that generates images dynamically and a few users are abusing it by hitting the server hundreds of times at once. I implemented an application level check that stores the user's IP address along with the time and if the same IP made a request more than 5 times in the last minute, it will block the request.

It's helping but I don't like this solution and would prefer something that would block the user from even reaching the server to save resources.

Cloudflare has this feature but would prefer to just use azure instead and take advantage of the benefits Azure is currently offering us.

Bruno
  • 113
  • 6
  • It may be possible with Azure Web Application Firewall, but I'm not sure if you can customise a rule exactly the way that you need. give it a try and let us know the result. :) – Bruno Faria Jul 20 '17 at 09:23

2 Answers2

0

You do not say what platform your image generation service uses. That would help guide answers.

For example, if you're running ASP.NET, request throttling was added in version 4.7.

Larry Silverman
  • 567
  • 6
  • 13
-1

You might use Azure Network Access Control List. Check - https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-acl