php 判断instr,php和asp判读蜘蛛与人工浏览,用于备案

php代码:

说明:header("Location:default.php".$_SERVER['REQUEST_URI']); 要跳转到新的页面去。当然也可以echo出来。可参考eot写法,此处不举例了。fetch_array($news)){

echo <

new.gif[{$rs[date]}]

EOT;

?>

asp代码: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

if instr(1,s_agent,"Sosospider",1) >0 then

GetBot="soso"

end if

if instr(1,s_agent,"Sogou+web+spider",1) >0 then

GetBot="Sogou"

end if

if instr(1,s_agent,"YodaoBot",1) >0 then

GetBot="Yodao"

end if

end function

%>

"" then

%>

加载你的网页代码

网站备案中

请为这篇文章评分:

2671074cfa3e5c158b3876d60fe9a6f4.png

2671074cfa3e5c158b3876d60fe9a6f4.png

2671074cfa3e5c158b3876d60fe9a6f4.png

2671074cfa3e5c158b3876d60fe9a6f4.png

2671074cfa3e5c158b3876d60fe9a6f4.png

( 已有 2 人评分, 平均得分: 3.5 分 )

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值