判断访问是否来自搜索引擎的函数,有兴趣的可以试试! 中国站.长.站
| 以下为引用的内容: <% '检查当前用户是否是蜘蛛人 Function check(user_agent) allow_agent=split("Baiduspider,Scooter,ia_archiver,Googlebot,FAST-WebCrawler,MSNBOT,Slurp",",") check_agent=false For agenti=lbound(allow_agent) to ubound(allow_agent) If instr(user_agent,allow_agent(agenti))>0 then check_agent=true exit for end if 站长.站 Next check=check_agent End function user_agent=Request.ServerVariables("HTTP_USER_AGENT") 'check(user_agent)=true则判定访问为蜘蛛人 %> |
文章整理:西部数码--专业提供域名注册、虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!




