问题原文
原帖链接 · gentrobot · CC BY-SA 3.0
A few days ago, my site was affected by malware. There were lot of URLs that linked to my site and the malware used to redirect to some place. I have gotten rid of all the malware, but still there are a lot of URLs that appear as, linked to my website and is being reported as 404 errors. How do I get rid of those, so that I stop getting these 404 errors in my webmaster tool.
已采纳解答
原帖链接 · DocRoot · CC BY-SA 3.0
Unfortunately there's not much you can do. You can't prevent these other (hacked) sites from linking to you. Besides, once Google has found these (now erroneous) URLs, it is likely to continue crawling them for sometime to come, even when the inbound link is (eventually) removed.
You are already doing the correct thing, in returning a 404. A genuine 404 is not a bad thing, but (as you have found) it is annoying that they unnecessarily pollute your reports.
You can try returning a 410 Gone instead, but if the URLs aren't actually indexed anyway then it probably won't make that much of change to the GSC report (at least initially).
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
