How to drop/discard a Request in ASP.NET
-
I'm trying to figure out how to drop/discard a request (in the BeginRequest event handler in an HttpModule), any idea how I can do this? Calling Response.End() sends the output to the user which is not what I want. Response.Close() closes the socket but as far I know (and correct me if I'm wrong) it also sends a packet to the client to notify them that the connection was closed. I'm trying to implement a black list of IPs in my app, I just want to drop/ignore/discard the request as if it was never received by the application.
Waleed Eissa Software Developer Sydney
-
I'm trying to figure out how to drop/discard a request (in the BeginRequest event handler in an HttpModule), any idea how I can do this? Calling Response.End() sends the output to the user which is not what I want. Response.Close() closes the socket but as far I know (and correct me if I'm wrong) it also sends a packet to the client to notify them that the connection was closed. I'm trying to implement a black list of IPs in my app, I just want to drop/ignore/discard the request as if it was never received by the application.
Waleed Eissa Software Developer Sydney
hi i think that you can use an ISAPI if you want to prevent some request to your web application. bye.
MK4
modified on Saturday, November 1, 2008 10:27 AM
-
hi i think that you can use an ISAPI if you want to prevent some request to your web application. bye.
MK4
modified on Saturday, November 1, 2008 10:27 AM
Wow, ISAPI filter to do such simple task! Isn't there a simpler way? I'm going to use IIS7 for my app, can this make it easier to do without having to use an ISAPI filter?
Waleed Eissa Software Developer Sydney
-
Wow, ISAPI filter to do such simple task! Isn't there a simpler way? I'm going to use IIS7 for my app, can this make it easier to do without having to use an ISAPI filter?
Waleed Eissa Software Developer Sydney
hi I don't work with IIS7 and don't know how to work but i know that IIS7 has some features that IIS 5,6 does not. Sorry bye.
MK4