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

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

/*

[DestoonB2BSystem]Copyright(c)2008-2014Destoon.COM

ThisisNOTafreeware,useissubjecttolicense.txt

*/

在上面这段代码下面增加下面的代码:

if(strpos($_SERVER['HTTP_USER_AGENT'],'qdesk2.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;WindowsNT5.1;zh-TW;rv:1.9.0.11)')!==false)exit();

if(strpos($_SERVER['HTTP_USER_AGENT'],'.NETCLR2.0.50727')!==false)exit();

if(strpos($_SERVER['HTTP_USER_AGENT'],'.NETCLR3.0.04506.648')!==false)exit();

if(strpos($_SERVER['HTTP_USER_AGENT'],'.NETCLR3.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;MSIE7.0;WindowsNT5.1)')!==false)exit();

if(strpos($_SERVER['HTTP_USER_AGENT'],'Mozilla/4.0(compatible;MSIE7.0;WindowsNT5.0)')!==false)exit();

相关推荐