IIS7 and ASP.NET how to throttle user requests

I use ASP.NET with IIS7, and today an error on one of my pages caused the server to go down. The script used ajax to request a resource at a speed of ~ 1000 requests per second. The requests are authenticated, so I know what the user requested on which page.

My question is that either through IHttpModule, or otherwise, how can I limit at the server level the maximum number of requests per second (or minute) that a client can make, and then enter a delay so that their requests are throttled?

+4
source share
1 answer

Open IIS Manager and select the application pool signed by your asp.net application. Open the advanced settings for this pool and set the query limit so that shuold is above zero.

enter image description here

-6
source

All Articles