Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you tell if an an ASP.NET request is remote or from localhost?

Tags:

c#

.net

asp.net

How can you programmatically determine if an an ASP.NET request is remote or from the localhost?

like image 878
Ronnie Overby Avatar asked May 25 '10 12:05

Ronnie Overby


1 Answers

I found it: HttpContext.Current.Request.IsLocal

like image 99
Ronnie Overby Avatar answered Oct 26 '22 20:10

Ronnie Overby