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
下一篇:第五屆台灣駭客研討會