首页 > 作文

PHP判断来访是蜘蛛还是普通用户

更新时间:2023-04-07 05:45:33 阅读: 评论:0

准备开始做正规的o,黑链代码依旧是用,只是有点特殊而已,当然,自己先测试下,是否可行。

要弄个php文档,记录来访是否蜘蛛还是普通用户,具体就是根据php的$_rver[‘http_ur_agent’]来进行判断

具体代码如下:



<?php

$tmp = $_rver[‘http_ur_agent’];

if(strpos($田径赛tmp, ‘googlebot’) !== fal){

ec鼠字开头的成语ho ‘谷歌’;

} el if(strpos($tmp, ‘baiduspider’) >0){

echo ‘百度’;

} el if(strpos($tmp, ‘yahoo! slurp’) !== fal){

echo ‘雅虎’;

} el if(strpos($tmp, ‘msnbot’) !== fal){

echo ‘msn’;

} el if(strpos($tmp, ‘sosospider’) !== fal){

echo ‘搜搜’;

} el if(strpos($tmp, ‘yodaobot’) !== fal || strpos($tmp, ‘outfoxbot’) !== fal){

echo ‘有道’;

} el if(strpos($tmp, ‘sogou web spider’) !== fal || strpos($tmp, ‘sogou orion spider’) !== fal){

echo ‘搜狗’;

} el if(strpos($tmp, ‘fast-webcrawler’) !== fal){

echo ‘alltheweb’;

} el if(strpos($tmp, ‘gaisbot学校物业管理方案217;) !== fal){

echo ‘gais’;

} el if(strpos($tmp, ‘ia_archiver’) !== fal){

echo ‘alexa’;

} el if(strpos($tmp, ‘altavista’) !== fal){

echo ‘altavista&理直气壮的反义词#8217;;

} el if(strpos($tmp, ‘lycos_spider’) !== fal){

echo ‘lycos’;

} el if(strpos($tmp, ‘inktomi slurp’) !== fal){

echo ‘inktomi’;

}

?>

以下来自百度,当然,以上也来自百度。我只是负责文章“伪原创”



www.2cto.com

<?php

$flag = fal;

$tmp = $_rver[‘http_ur_agent’];

if(strpos($tmp, ‘googlebot’) !== fal){

$flag = true;

} el if(strpos($tmp, ‘baiduspider’) >0){

$flag = true;

} el if(strpos($tmp, ‘yahoo! slurp’) !== fal){

$flag = true;

} el if(strpos($tmp, ‘msnbot’) !== fal){

$flag = true;

} el if(strpos($tmp, ‘sosospider’) !== fal){

$flag = true;

} el if(strpos($tmp, ‘yodaobot’) !== fal || strpos($tmp, ‘outfoxbot’) !== fal){

$flag = true;

} el if(strpos($tmp, ‘sogou web spider’) !== fal || strpos($tmp, ‘sogou orion spider’) !== fal){

$flag = true;

} el if(strpos($tmp, ‘fast-webcrawler’) !== fal){

$flag起伏不定 = true;

} el if(strpos($tmp, ‘gaisbot’) !== fal){

$flag = true;

} el if(strpos($tmp, ‘ia_archiver’) !== fal){

$flag = true;

} el if(strpos($tmp, ‘altavista’) !== fal){

$flag = true;

} el if(strpos($tmp, ‘lycos_spider’) !== fal){

$flag = true;

} el if(strpos($tmp, ‘inktomi slurp’) !== fal){

$flag = true;

}

if($flag == fal){

header(“location: /d/file/titlepic/www.hao123.com” . $_rver[‘request_uri’]);

// 自动转到/d/file/titlepic/www.hao123.com 对应的网页

// $_rver[‘request_uri’] 为域名后面的路径

// 或 换成header(“location: /d/file/titlepic/www.hao123.com/abc/d.php”);

exit();

}

?>

摘自 https://www.xssxss.com/fuck/505.xss

本文发布于:2023-04-07 05:45:22,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/zuowen/757420b3516d6db79f7c708fafb25884.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

本文word下载地址:PHP判断来访是蜘蛛还是普通用户.doc

本文 PDF 下载地址:PHP判断来访是蜘蛛还是普通用户.pdf

标签:田径赛   代码   反义词   转到
相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图