How can you tell if an an ASP.NET request is remote or from localhost?
How can you programmaticall开发者_Python百科y determine if an an ASP.NET request is remote or from the localhost?
I found it: HttpContext.Current.Request.IsLocal
You can check the Request.UserHostAddress property.
yes HttpContext.Current.Request.IsLocal will must works. I am also using it in one of my project and working fine.
精彩评论