dt/destoon防止注册机/代理发布的解决办法

阅读更多

在根目录的common.inc.php文件中增加如下代码:

/*
[Destoon B2B System] Copyright (c) 2008-2014 Destoon.COM
This is NOT a freeware, use is subject to license.txt
*/
在上面这段代码下面增加下面的代码:
if(strpos($_SERVER['HTTP_USER_AGENT'], 'qdesk 2.3.1186.202') !== false) exit();
if(strpos($_SERVER['HTTP_USER_AGENT'], '.NET4.0C') !== false) exit();
if(strpos($_SERVER['HTTP_USER_AGENT'], 'SV1') !== false) exit();
if(strpos($_SERVER['HTTP_USER_AGENT'], 'Mozilla/4.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.9.0.11)') !== false) exit();
if(strpos($_SERVER['HTTP_USER_AGENT'], '.NET CLR 2.0.50727') !== false) exit();
if(strpos($_SERVER['HTTP_USER_AGENT'], '.NET CLR 3.0.04506.648') !== false) exit();
if(strpos($_SERVER['HTTP_USER_AGENT'], '.NET CLR 3.5.21022') !== false) exit();
if(strpos($_SERVER['HTTP_USER_AGENT'], 'InfoPath.2') !== false) exit();
if(strpos($_SERVER['HTTP_USER_AGENT'], '.NET4.0E') !== false) exit();
if(strpos($_SERVER['HTTP_USER_AGENT'], 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)') !== false) exit();
if(strpos($_SERVER['HTTP_USER_AGENT'], 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.0)') !== false) exit();

你可能感兴趣的:(destoon)