|
代码很简单但很有效,转载请注明出处!
<%
'Copyright by mdcsoft 2006,www.mdcsoft.cn
if session("PreAntiCC")<> 1 then
Session("PreAntiCC")=1
response.redirect("/default.asp")
response.end()
End if
if Request.ServerVariables("HTTP_X_FORWARDED_FOR")<>"" then
response.write("Sorry,Ban proxy!")
response.end()
end if
if session("AntiCC") =now then
response.write("Sorry,Ban refresh!")
response.end()
end if
if session("AntiCC") = "" then
session("AntiCC")="RightVisit"&now
response.redirect("/default.asp")
response.end()
end if
session("AntiCC")=now
%>  |