If Request.ServerVariables("HTTP_X_FORWARDED_FOR") then
userip = Request.ServerVariables("HTTP_X_FORWARDED_FOR")'透过代理服务器取得客户端的真实IP地址
else
userip = Request.ServerVariables("REMOTE_ADDR")'取得远程主机的IP地址
End if
set rs=server.createobject("adodb.recorderset")
rs.open"select * from table where userip="&userip,conn,1,1
if not rs.eof then