取得真实IP地址
日期:2017-06-15
dim user_ip '//////// 取得真实IP地址
if request.servervariables("http_x_forwarded_for")="" then
user_ip=request.servervariables("remote_addr")
else
user_ip=request.servervariables("http_x_forwarded_for")
end if
if request.servervariables("http_x_forwarded_for")="" then
user_ip=request.servervariables("remote_addr")
else
user_ip=request.servervariables("http_x_forwarded_for")
end if