<% Dim IP,IPString,VisitIP '要禁止的IP地址 IPString="|218.58.194.90|218.58.194.218|218.58.194.222|" '获取IP地址 IP = Request.ServerVariables("HTTP_X_FORWARDED_FOR") If IP = "" Then IP = Request.ServerVariables("REMOTE_ADDR") End If VisitIP="|"&IP&"|" If instr(1,IPString,VisitIP)>0 Then Response.write "<Script Language=JavaScript>alert('本站禁止您的访问!');</Script>" response.end End If %>