website hacked: working correctly only Google result is malicious


I just noticed by accident that my wordpress website got hacked. It’s working perfectly except for the Google result showing malicious content. Any advise on how to solve this pls?

Here you can see the search result:

Thank you! Kris

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello there

I would like to add that even when the malware is removed, Google search or even using Chrome might return a warning that the site is compromised.

What you’ll need to do is to request reindexing (recrawl) to get the warning message removed.

You can find more information here


Hi there,

You can install malware detection software like Linux Malware Detect, also known as Maldet or LMD. It will help you to locate any malicious files on your droplet.

If you’re interested in securing your droplet (everyone should be in general) you can double-check our tutorial - An Introduction to Securing your Linux VPS.

The article will cover the basic and some more advanced steps in website and server security.

You can check the article here:

Hope that this helps!

Hi Everyone,

thank you for all the input. It has been a tough one. I first hired an expert which was cleaning the website but it got infected within 24hours again.

After a week of letting him try, I bought a software called Malcare - Blogvault. It found a script hidden on the server that was infecting the website day after day. It also had his challenges but afterall I think this was the solution. I think as Google is still showing 6700 created spam pages. Different files from plugins were infected and needed to be deleted. It also mentioned some unharmful files as well. So you have to keep your eyes open before clicking the delete button.

The malware found was ‘Japanese keyword hack’. It’s a black hat SEO spam technique.

Hopefully, this will help someone after me.

Thanks again! Kris