Get user real IP

xiaoxiao2021-03-05  21

Userip = request.serverVariables ("http_x_forwarded_for")

IF userip = "" "" Userip = Request.serverVariables ("remote_addr")

Explanation, if the user uses the proxy server, IP is obtained via Request.ServerVariables ("http_x_forwarded_for")

Otherwise get IP via Request.ServerVariables ("remote_addr")

转载请注明原文地址:https://www.9cbs.com/read-37059.html

New Post(0)