Identify if request is coming from local network (intranet)

后端 未结 4 1553
名媛妹妹
名媛妹妹 2021-02-06 02:43

I need to identify if a request comes from Internet or Intranet using either client-side or server-side.

The problem I\'m trying to solve is: our web site can be accesse

4条回答
  •  你的背包
    2021-02-06 03:20

    Use the Request.UserHostAddress property to determine whether the request came from a public or private network

提交回复
热议问题