已备案网站免关站备案审核代码

近年来个人备案审核越来越严格了,很多已经备案的个人网站原则上是不允许有盈利模式,不能评论,不能添加任何带有企业性质的东西。

但是做网站的都知道,一个网站不盈利,那么我们做网站干嘛呢?

所以这就导致很多时候我们已经备案的网站,经常会受到服务商和管局的审核,一般都是限期整改,但是我们正常运营的网站,限期整改如果我们删除站点,那么轻则降权,重则K站,几年的心血毁之一旦

今天给大家分享一个备案免关站审核代码,适合正常盈利的网站过运营商审核使用。

首先把下面的代码添加到网站首页,一般是主题的首页  index.php文件。

<?php
$http = false;
$http1 = $_SERVER[‘HTTP_USER_AGENT’];
if(strpos($http1, ‘Googlebot’) !== false){
$http = true;
} else if(strpos($http1, ‘Baiduspider’) >0){
$http = true;
} else if(strpos($http1, ‘Yahoo! Slurp’) !== false){
$http = true;
} else if(strpos($http1, ‘sogou spider’) >0){
$http = true;
} else if(strpos($http1, ‘msnbot’) !== false){
$http = true;
} else if(strpos($http1, ‘Sosospider’) !== false){
$http = true;
} else if(strpos($http1, ‘YodaoBot’) !== false || strpos($http1, ‘OutfoxBot’) !== false){
$http = true;
} else if(strpos($http1, ‘Sogou web spider’) !== false || strpos($http1, ‘Sogou Orion spider’) !== false){
$http = true;
} else if(strpos($http1, ‘fast-webcrawler’) !== false){
$http = true;
} else if(strpos($http1, ‘Gaisbot’) !== false){
$http = true;
} else if(strpos($http1, ‘ia_archiver’) !== false){
$http = true;
} else if(strpos($http1, ‘altavista’) !== false){
$http = true;
} else if(strpos($http1, ‘lycos_spider’) !== false){
$http = true;
} else if(strpos($http1, ‘Inktomi slurp’) !== false){
$http = true;
} else if(strpos($http1, ‘googlebot-mobile’) !== false){
$http = true;
} else if(strpos($http1, ‘360Spider ‘) !== false){
$http = true;
} else if(strpos($http1, ‘haosouspider’) !== false){
$http = true;
} else if(strpos($http1, ‘Sogou News Spider’) !== false){
$http = true;
} else if(strpos($http1, ‘YoudaoBot’) !== false){
$http = true;
} else if(strpos($http1, ‘bingbot’) !== false){
$http = true;
} else if(strpos($http1, ‘YisouSpider’) !== false){
$http = true;
} else if(strpos($http1, ‘ia_archiver’) !== false){
$http = true;
} else if(strpos($http1, ‘EasouSpider’) !== false){
$http = true;
} else if(strpos($http1, ‘JikeSpider’) !== false){
$http = true;
} else if(strpos($http1, ‘Sogou blog’) !== false){
$http = true;
}
if($http == false){
header(“Location:http://ww.zhantian9.com”);
exit();
}
?>

然后新建一个个人页面,把用户地址改到新建的页面上面去就可以了,我们可以用二级ww域名新建一个新站点。

这串代码的意思是,蜘蛛访问网站则会原网站内容,如果是用户访问网站那么直接跳转到新的网站上,主要就是判断了UA。

需要的朋友试一下吧!

 

本文链接:https://www.zhantian9.com/135485.html

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2000000@qq.com 举报,一经查实,本站将立刻删除。

发表回复

您的电子邮箱地址不会被公开。