2009-05-04 15:14:21kenchinglee[書劍]

asp 真實ip 語法

<%=Request.ServerVariables("REMOTE_ADDR")%>

===========================================

function GetIp()
dim realip,proxy
realip = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
proxy = Request.ServerVariables("REMOTE_ADDR")
if realip = "" then
GetIp = proxy
else
GetIp = realip
end if
end function

我要回應(本篇僅限會員/好友回應,請先登入)