wordpress页面F12时源码多出的内容在index.php header.php找不到
2024-10-19 18:33:28
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便可。
最新文章
- jQuery--.wrap()方法
- 【poj3017】 Cut the Sequence
- Web Service平台概述
- 带优先级的队列 - PHP实现
- jQuery UI 实例 - 对话框(Dialog)(zhuan)
- Osmocom-BB多信道修改代码相关
- nginx下面部署fast-cgi和C++【原】
- C#基础--局部类型Partial
- dorado7第一次使用感受
- 搭建ganglia集群而且监视hadoop CDH4.6
- Apache 实现ProxyPass转发URL到Tomcat并实现http自动转https【转载】
- .Net 配置的简陋解决方案
- 《springCloud系列》——Eureka 进行服务治理
- SimInfo获取(MCC, MNC, PLMN)
- POJ 1703 Find them, Catch them (并查集)
- linux mongodb 及php-mongo扩展安装
- tensorflow中 tf.train.slice_input_producer 和 tf.train.batch 函数(转)
- 31_网络编程-struct
- node - 使用request发送http请求
- python3学习笔记(2)_list-tuple