Export (0) Print
Expand All

HttpRequest.IsLocal Property

Gets a value indicating whether the request is from the local computer.

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)

member IsLocal : bool with get

Property Value

Type: System.Boolean
true if the request is from the local computer; otherwise, false.

The IsLocal property returns true if the IP address of the request originator is 127.0.0.1 or if the IP address of the request is the same as the server's IP address.

TopicLocation
How to: Display Safe Error MessagesBuilding ASP .NET Web Applications
How to: Display Safe Error MessagesBuilding ASP .NET Web Applications

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft