How do I implement Rate Limiting for app with webforms in .net framework

428 Views Asked by At

I am working on a legacy app with webforms in .net framework. and I need to implement Rate Limiting functionality for the login page, here the Login action is event based written in code behind file (login.aspx.cs) void cmdSubmit_Click(object sender, EventArgs e) {}

my login action triggers on submit click which is attach as event to handler. cmdSubmit.Click += new EventHandler(cmdSubmit_Click);

whatever I have looked so far is all pointing towards the .net core solution with webapithrottle and actionfilter methods. or deals with startup.cs or program.cs but nothing related to the Global.ascx which we are using.

I am not sure If I can implement the action filter method here or not. If yes can you please help me out how.

Is there any other way I can implement the rate limiting on my login action.

0

There are 0 best solutions below