简体   繁体   English

如何从我的网站中删除HTML注入

[英]How to remove html injection from my website

Today I was looking for my cached page of my website then I find that Google indexed lot of spammy pages which I cannot find in my website. 今天,我正在寻找网站的缓存页面,然后发现Google索引了很多我在网站中找不到的垃圾页面。

My website is a college website but in Google there are pages of " nike air max 95 at jd sports " and all my url's are rewrite but in Google it showing a new url (this is similar like my URL: http://example.com/?nike-max-air-343.html ). 我的网站是一个大学网站,但在Google中有“ jd sports的nike air max 95 ”页面,我的所有URL都被重写,但是在Google中它显示了一个新URL(这与我的URL类似: http:// example。 com /?nike-max-air-343.html )。

When I try to find this page in my website I didn't find any of these pages. 当我尝试在我的网站中找到此页面时,没有找到任何这些页面。 Kindly provide me any possible solutions so the Google can't list a 请为我提供任何可能的解决方案,以便Google不会列出

"This site maybe Hacked" “此网站可能被黑客入侵了”

message on SERP. 在SERP上的消息。

Whenever this happended to me I started the lookforbadguys.php script, you can find here 每当我发生这种情况时,我就会启动lookforbadguys.php脚本,您可以在此处找到

https://gist.github.com/jasperf/3191259 https://gist.github.com/jasperf/3191259

Copy this file into the DOCUMENT_ROOT of your page and then call in browser 将此文件复制到页面的DOCUMENT_ROOT中,然后在浏览器中调用

http://example.com/lookforbadguys.php http://example.com/lookforbadguys.php

It then scans your file-system under document root for suscpicious file names and code 然后,它会在文档根目录下扫描您的文件系统,查找可疑的文件名和代码。

It may create a long list of hits, and you have to check every single one (if you don't know exactly that you made it yourself). 它可能会创建一长串命中列表,并且您必须检查每一个命中列表(如果您不完全知道自己是否成功)。 This is tedious, but I works. 这很乏味,但我可以。

One little hint: Save the output of the scan as html file and open that file in browser. 一个小提示:将扫描输出保存为html文件,然后在浏览器中打开该文件。 This prevents the script to scan on reload. 这样可以防止脚本在重新加载时进行扫描。

After that you must identify the security holes of your server. 之后,您必须确定服务器的安全漏洞。 You may have to update installed software and/or your scripts. 您可能必须更新已安装的软件和/或脚本。

I don't think you have to do anything. 我认为您不必做任何事情。 I had a similar warning today. 我今天也有类似的警告。

"Hacked by Andreas Rehm 2006..." seems to be part of the source code for the file on line# 353 Source for file OLERead.php on grad.clemson.edu “由Andreas Rehm 2006入侵……”似乎是第353行上该文件的源代码的一部分grad.clemson.edu上文件OLERead.php的源代码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM