Saturday, October 24, 2026The WordPress PlaygroundFacebookXPinterest
Glossary

Malware

Is your site suddenly sending visitors to strange pages, or is Google showing a red warning before people can reach it? These are classic signs of malware. Malware is nothing but malicious software: code written to harm your site, steal data or misuse your server.

A WordPress site with malware can lose traffic, rankings and visitor trust within days.

What is Malware in WordPress?

Malware works just like termites in a wooden house. It hides inside, and by the time you notice, the damage is already done. On a WordPress site, it is usually hidden PHP or JavaScript code inside a plugin, a theme, the uploads folder or even the database. Common types include:

  • Backdoors that let hackers return even after you change passwords.
  • Malicious redirects that send visitors to spam or scam sites.
  • SEO spam that adds hidden links or fake pharmacy pages.
  • Phishing pages that copy a bank's login page to steal details.

Most infections enter through outdated plugins, weak passwords or nulled themes. Our article on the problems of nulled themes and plugins explains why a "free" premium theme is rarely free.

Signs your site may be infected

  • Browsers show a warning like "This site ahead contains harmful programs".
  • You find admin users or files you don't recognize.
  • Your host suspends the account or sends a warning email.
  • Server load or outgoing emails spike for no clear reason.

What to do if you find malware

  1. First, take a backup of the infected site, so you have a copy for reference.
  2. Next, scan the site with a trusted security plugin or your host's malware scanner.
  3. Now, replace WordPress core, plugins and themes with fresh copies and delete anything you don't use.
  4. Then, remove unknown admin accounts and change every password, including database and hosting passwords.
  5. Finally, if Google flagged your site, request a review in Google Search Console.
Warning

Restoring an old backup alone is not enough. If you don't close the hole the hacker used, the malware usually comes back.

Malware is a nasty problem, but quick action and good habits keep it away. That's all for now. If you have ever cleaned up a hacked site, share your experience in the comments below.