两个方法解决腾讯域名报毒
2017-11-26 防红

qqaq-hostcoz.JPG

两个小方法能将腾讯网址安全检测系统屏蔽掉,使检测系统无法判断网站内容,也能屏蔽掉一些小人恶意举报。

一,iptables屏蔽

iptables屏蔽以下ip段:

- 58.60.9.0~58.60.9.255
- 58.61.32.0~58.61.33.255
- 103.238.16.0~103.238.19.255
- 116.57.254.0~116.57.255.255
- 119.147.15.0~119.147.18.255
- 125.218.29.0~125.218.29.255
- 203.195.64.0~203.195.95.255
- 203.205.128.0~203.205.255.255
- 219.133.60.0~219.133.60.255
- 219.133.62.0~219.133.62.255
- 219.133.234.164~219.133.234.167
- 101.198.0.0~101.199.255.255
- 101.226.33.0~101.226.33.255
二,判断HEADER

if(preg_match("/manager/", strtolower($_SERVER['HTTP_USER_AGENT'])) || strpos($_SERVER['HTTP_USER_AGENT'], 'Mozilla')===false && strpos($_SERVER['HTTP_USER_AGENT'], 'ozilla')!==false || isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'urls.tr.com')!==false || isset($_COOKIE['ASPSESSIONIDQASBQDRC']) || empty($_SERVER['HTTP_USER_AGENT']) || strpos($_SERVER['HTTP_USER_AGENT'], 'HUAWEI G700-U00')!==false && !isset($_SERVER['HTTP_ACCEPT']) || preg_match("/Alibaba.Security.Heimdall/", $_SERVER['HTTP_USER_AGENT'])) {
        exit(pr_html('欢迎使用!'));
}
if( strpos($_SERVER['HTTP_USER_AGENT'], '360Spider')!==false || strpos($_SERVER['HTTP_USER_AGENT'], 'haosouspider')!==false ) {
        exit(pr_html('欢迎使用!'));
}
if(strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone OS 9_3_4')!==false && $_SERVER['HTTP_ACCEPT']=='*/*' || strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone OS 8_4')!==false && $_SERVER['HTTP_ACCEPT']=='*/*' || strpos($_SERVER['HTTP_USER_AGENT'], 'Android 6.0.1')!==false && strpos($_SERVER['HTTP_USER_AGENT'], 'MQQBrowser/6.8')!==false && $_SERVER['HTTP_ACCEPT']=='*/*' || strpos($_SERVER['HTTP_ACCEPT_LANGUAGE'], 'en')!==false && strpos($_SERVER['HTTP_ACCEPT_LANGUAGE'], 'zh')===false || strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone')!==false && strpos($_SERVER['HTTP_USER_AGENT'], 'en-')!==false && strpos($_SERVER['HTTP_USER_AGENT'], 'zh')===false) {
        exit(pr_html('您当前浏览器不支持或操作系统语言设置非中文,无法访问本站!'));
}
//if(preg_match("/Windows NT 6.1/", $_SERVER['HTTP_USER_AGENT']) && $_SERVER['HTTP_ACCEPT']=='*/*'|| preg_match("/Windows NT 5.1/", $_SERVER['HTTP_USER_AGENT']) && $_SERVER['HTTP_ACCEPT']=='*/*' || preg_match("/vnd.wap.wml/", $_SERVER['HTTP_ACCEPT']) && preg_match("/Windows NT 5.1/", $_SERVER['HTTP_USER_AGENT'])){
        /*exit(pr_html('该设备太落后了,请更新设备!'));
}*/
function pr_html($text)
申述通道

如果域名已经被报毒 解决办法只有申诉

电脑管家地址https://guanjia.qq.com/online_server/m_complain.html

安全联盟地址https://appeal.anquan.org

电脑管家论坛http://bbs.guanjia.qq.com/forum-77-3.html

腾讯客服QQ:800090241[这个有用算我输]

转载自: 橙影 http://www.hostloc.com/thread-409662-1-1.html

发表评论

如果您是第一次在本站留言,需要审核后才会显示内容!