%
Dim IP,IPString,VisitIP
'要禁止的IP地址
IPString="|127.0.0.1|202.104.236.191|"
'获取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 "你非法采集本站信息,请立即在2天内删除盗版数据,证据已经被记录,再次采集侵权将付法律责任!"
response.end
End If
%>