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.

  • 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 9:23
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.

| improve this answer | |
-1

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

| improve this answer | |
  • I don't see any option to do rate limiting. Only option to block ips permanently. – Bruno Jul 20 '17 at 3:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.