wordpress页面F12时源码多出的内容在index.php header.php找不到

wordpress页面按F12时源码多出的内容在index.php header.php找不到

比如类似这样的内容:

<div style="position:absolute;filter:alpha(opacity=0);opacity:0.001;z-index:10;"><b>
<a href="http://www.mh52.com/">空乘招生</a>
<a href="http://www.wazige.com/">锌钢护栏</a>
</b></div>
那么请注意了,你的网站被黑客攻击了,这样你的网站页面隐藏了一些链接,你网站的流量会被别人的网站吸引过去,因为设置了opacity:0.001,所以你看不到,但是点击却是别人的链接,

此刻处理办法是找到wordpress根目录下的index.php文件,此文件肯定被别人改过,改成类似如下的样子:

<div style="position:absolute;filter:alpha(opacity=0);opacity:0.001;z-index:10;"><b>

<a href="http://www.mh52.com/">空乘招生</a>

<a href="http://www.wazige.com/">锌钢护栏</a>

</b></div>

<?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('./wp-blog-header.php');

  你只要用wordpress原先的index.php文件覆盖之便可解决此问题。假如你的wordpress不是最新版本,那么请升级wordpress便可。

原文地址:https://www.cnblogs.com/oymx/p/3639957.html