时时商务社区

标题: ASP识别搜索引擎蜘蛛的代码(谷歌、百度、雅虎、搜狐、MSN) [打印本页]

作者: wx_pylelnL4    时间: 2018-2-18 04:48

                  ASP识别搜索引擎蜘蛛(谷歌、百度、雅虎、搜狐、MSN)代码如下:
0 then
GetBot="google"
end if
if instr(1,s_agent,"msnbot",1) >0 then
GetBot="MSN"
end if
if instr(1,s_agent,"slurp",1) >0 then
GetBot="Yahoo"
end if
if instr(1,s_agent,"baiduspider",1) >0 then
GetBot="baidu"
end if
if instr(1,s_agent,"sohu-search",1) >0 then
GetBot="Sohu"
end if
if instr(1,s_agent,"lycos",1) >0 then
GetBot="Lycos"
end if
if instr(1,s_agent,"robozilla",1) >0 then
GetBot="Robozilla"
end if
end function
if GetBot="baidu" then
'给百度定制的内容
elseif GetBot="google" then
'给google 定制的内容
end if
%>





欢迎光临 时时商务社区 (http://bbs.4435.cn/) Powered by Discuz! X3.2