【发布时间】:2017-12-25 21:53:40
【问题描述】:
<div style="position: absolute; top: -136px; overflow: auto; width:1241px;">
<h3><strong><a style="font-size: 11.335pt;" href="http://2giadinh.com/thoi-trang">thời trang
trẻ em</a></strong>
<strong><a style="font-size: 11.335pt;" href="http://themestotal.com">Wordpress Themes
Total Free</a></strong>
<em><a style="font-size: 10.335pt;" href="http://2xaynha.com">tư vấn xây nhà</a></em>
<em><a style="font-size: 10.335pt;" href="http://lanakid.com">thời trang trẻ em</a></em>
<em><a style="font-size: 10.335pt;" href="http://2giaynu.com">shop giày nữ</a></em>
<em><a href="http://magentowordpresstutorial.com/wordpress-tutorial/wordpress-plugins">download
wordpress plugins</a></em>
<em><a href="http://2xaynha.com/tag/mau-biet-thu-dep">mẫu biệt thự đẹp</a></em>
<em><a href="http://epichouse.org">epichouse</a></em>
<em><a href="http://fsfamily.vn/tag/ao-so-mi-nu">áo sơ mi nữ</a></em>
<em><a href="http://en.2xaynha.com/">House Design Blog - Interior Design and
Architecture Inspiration</a></em></h3>
</div>
我试过了:
setTimeout(function () {
$('a[href="http://themestotal.com"]').closest('div').remove()
}, 2000);
没用!
试过了:
编辑您的functions.php.. 查找包含wp_footer 的代码(因为您尝试删除的代码位于那里)。
但没有base64_decode 代码查找!
已检查 .htaccess、wp-config.php、index.php、footer.php、header.php 和 option.php 文件。
【问题讨论】:
-
那么您要删除那个(链接)
<a>还是整个 div? -
不要尝试使用 JavaScript 删除该代码。找到代码的来源(恶意软件?)并正确删除(也就是从 PHP 中删除)。
-
由于 WordPress 网站上动态添加的代码,我无法更正其在相应文件中的确切位置
-
@ankit 整个 div
-
我们可以访问您的网站还是在本地?
标签: javascript php wordpress .htaccess malware