中药方大全小图标
您当前的位置:首页 > 其他 > 网站日记

蜘蛛和人的饲料是 不同的

提示: 阅读权限:公开  来源:网络  作者: 未知
<?
function isCrawler() {
        $agent= strtolower($_SERVER['HTTP_USER_AGENT']);
        if (!empty($agent)) {
                $spiderSite= array(
                        "TencentTraveler",
                        "Baiduspider+",
                        "BaiduGame",
                        "Googlebot",
                        "msnbot",
                        "Sosospider+",
                        "Sogou web spider",
                        "ia_archiver",
                        "Yahoo! Slurp",
                        "YoudaoBot",
                        "Yahoo Slurp",
                        "MSNBot",
                        "Java (Often spam bot)",
                        "BaiDuSpider",
                        "Voila",
                        "Yandex bot",
                        "BSpider",
                        "twiceler",
                        "Sogou Spider",
                        "Speedy Spider",
                        "Google AdSense",
                        "Heritrix",
                        "Python-urllib",
                        "Alexa (IA Archiver)",
                        "Ask",
                        "Exabot",
                        "Custo",
                        "OutfoxBot/YodaoBot",
                        "yacy",
                        "SurveyBot",
                        "legs",
                        "lwp-trivial",
                        "Nutch",
                        "StackRambler",
                        "The web archive (IA Archiver)",
                        "Perl tool",
                        "MJ12bot",
                        "Netcraft",
                        "MSIECrawler",
                        "WGet tools",
                        "larbin",
                        "Fish search",
                );
                foreach($spiderSite as $val) {
                        $str = strtolower($val);
                        if (strpos($agent, $str) !== false) {
                                return true;
                        }
                }
        } else {
                return false;
        }
}


?>

<?
if(!isCrawler())header('Location: '.$public_r['add_renurl']?$public_r['add_renurl']:'http://www.zhongyf.com');

?>

判断你是不是蜘蛛,不是蜘蛛给你一个人看的页面。是蜘蛛,则给你另外一个页面。

tags: 蜘蛛 饲料
返回顶部
推荐资讯
视频:田纪钧讲关节不痛的秘密、膝关节拉筋法
视频:田纪钧讲关节不
白露到了,你还好吗?
白露到了,你还好吗?
尿疗与断食
尿疗与断食
给风疹反复发作女孩的药方(组图)
给风疹反复发作女孩的
相关文章
栏目更新
栏目热门
  1. 帝国cms7.2后台信息列表页批量添加tags
  2. 帝国cms百度主动推送插件支持分页推送
  3. 帝国cms插件大全
  4. 帝国cms之批量替换字段值
  5. 如何禁止内容关键字替换ALT和A标签中的关键
  6. 帝国cms7.2改用百度编辑器
  7. 帝国cms获取当前页的地址
  8. 【帝国cms插件】之三级联动+伪静态
  9. 帝国cms之tags静态插件
  10. jiuhecai的帝国cms同步更新插件