How to check a request is from local host with ASP.NET technic

I am implementing a private page where it's only public to request from local hosts rather than exterior ones.

What technical stacks may I employ to check the request sources? Thanks.

Answers


you can check it with the bool property Request.IsLocal


Need Your Help

Difference between an application server and a servlet container?

java java-ee terminology application-server

I am trying to understand the difference between a full fledged application server (e.g. Weblogic, JBoss etc.) and a servlet container (Tomcat, Jetty etc.).

Which general purpose programming languages/implementations compile to C

compiler-construction programming-languages

I'm currently using Eiffel (SmartEiffel/ISE Eiffel) which is compiling to c.