C
C
Cyril2021-07-01 22:42:32
Search Engine Optimization
Cyril, 2021-07-01 22:42:32

How to remove malicious links in google indexing?


There is a small site on vp, which has only a couple of pages, and it turned out that the malware created links like https://website.com/helicopter22/dgdfgfeg.htm using php in a couple of months,
and so on as much as 25 billion, because no one is Monitored)

I would be grateful if someone came across to share advice? I deleted the malware, all links are no longer available, but I can’t imagine what to do with Google.

There are already fewer of them visible after a couple of hits, but the rest, even those that are 404 now, are indexed and writes "Indexed, but it is not in the Sitemap"

Made by Robots. txt and sitemap with only the necessary pages

robots

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

Sitemap: https://website.com/sitemap_index.xml



There is an idea to either close the site for two weeks completely, so that all links are removed and start again, or leave it as it is, and over time they will go away, but this indexing creates a load on the server, so to speak, two chairs)

Thank you

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Cyberaslan, 2021-07-02
@jensen6720185

The only correct method and the most efficient one is to give a special code 410 Gone (the address is permanently disabled). Priority removal from the index is performed by both Yandex and Google.
Something like this htaccess:
RewriteCond %{REQUEST_URI} (.)*keyword
RewriteRule ^.*$ https://url [R=410,L]
Here the guy wrote "Pages with 404 errors will gradually disappear from the index." This is silly. It's funny that he has an SEO telegram channel.

R
Rinat Haisman, 2021-07-02
@Rinat_Haisman

Pages with 404 errors will gradually disappear from the index. If certain pages are not removed for a long time, use the removal tool in Google Search Console, here is a link to the tool.
Quoting the official help of this Google tool:

You can exclude the URL from Google Search results, as well as remove the current page description and cached version (which will be recreated after the next crawl). URLs will disappear from Search for approximately six months. If you want them to never show up there, block indexing of the pages or remove them from the site.

Additional information from Google 's official recommendations: https ://developers.google.com/search/docs/advanced...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question