Request.IsLocal与Request.Url.IsLoopback的区别
均在服务器上访问时:
http://localhost:17810
Request.IsLocal =》 true
Request.Url.IsLoopback =》 true
http://192.168.1.100
Request.IsLocal =》 ture
Request.Url.IsLoopback =》 false
在其他服务器上面访问时,当然都是 false 。。。
均在服务器上访问时:
http://localhost:17810
Request.IsLocal =》 true
Request.Url.IsLoopback =》 true
http://192.168.1.100
Request.IsLocal =》 ture
Request.Url.IsLoopback =》 false
在其他服务器上面访问时,当然都是 false 。。。