How can you programmatically determine if an an ASP.NET request is remote or from the localhost?
Which can be spoofed. And not reliable if the host has multiple nics.
Oded
2010-05-25 12:55:58
It can't be spoofed. It's no less reliable than Request.IsLocal (in fact, if you look in Reflector, IsLocal is implemented in terms of UserHostAddress!)
Dean Harding
2010-05-25 13:32:06
A:
yes HttpContext.Current.Request.IsLocal will must works. I am also using it in one of my project and working fine.
Harendra
2010-05-25 13:04:22