request.servervariables("remote_host")
取得服务器的主机名和客户端的的IP
<%
clientip=request.servervariables("REMOTE_ADDR")
strip=cstr(clientip)
for i=1 to 2
strip=right(strip,len(strip)-instr(1,strip,"."))
next
if (left(clientip,5)<>"10.62" or strip<"9" or strip>"99") then %>
<P><font color=red>对不起,您的IP是<%=rip%>,本页可以访问的ip为10.62.9.*到10.62.99.*之间的用户。<br></font></p>