0

hi friends.. i am doing asp.net project.. in that project in login page if any one enter wrongly more than 4 times username or password means i want to show dummy page that time i need to save that person IP Address and his details...my Question is how can i count the wrong attempt and how can i get IP address.. plz help me for me.. thanks in advance..send to my mail..


by SP

Edited by __avd: Email Snipped.

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by amitshrivas
0

hi friends.. i am doing asp.net project.. in that project in login page if any one enter wrongly more than 4 times username or password means i want to show dummy page that time i need to save that person IP Address and his details...my Question is how can i count the wrong attempt and how can i get IP address.. plz help me for me.. thanks in advance..send to my mail..


by SP

..................
To get the IP Address

Response.Write(Request.UserHostAddress.ToString());
        Response.Write(Request.UserHostName.ToString());
        Response.Write(Request.ServerVariables["REMOTE_HOST"]);
        Response.Write(Request.ServerVariables["REMOTE_ADDR"]);

They all give same output

and try to use static variable for counting number of logins..

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.