Click here to Skip to main content
15,895,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to throttle the number of request of a particular page in website while user is try to hitting the same page more than n number of times in the same session.

Looking for asp c# code.
Posted
Comments
[no name] 25-Jun-12 11:08am    
What have you tried? What errors do you get?
sunsecurity84 26-Jun-12 4:24am    
As of now , I tried to throttle the request for the Particular page , by having Apache over IIS.
But I want to implement in IIS itself.
sunsecurity84 10-Jul-12 5:03am    
Hi,
Thanks for the reply.

First let me explain the problem in detail.

I am having a web app hosted on IIS 6 and exposed to internet. IN this app, I am having a webpage called newcomings.asp. The external users are using some bots and automatically hitting this page (i.e 20 per sec) due to which some time , the site goes down.
But basically, I want to throttle the request which are coming from the client at the maximum of 5 per sec also I dont want to use any capcha kind of stuff.

So I am just checking is there any way , we can handle in IIS itself or we can do by any handlers.



1 solution

If you want to do this per-session in the code itself, this Stack Overflow question will get you started:

http://stackoverflow.com/questions/8709141/net-throttle-algorithm[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900