Skip to main content

iilTech Business Solutions

Hacked WordPress Site? What to Do Right Now, Step by Step

Hacked WordPress Site? What to Do Right Now, Step by Step

Hacked WordPress Site? What to Do Right Now, Step by Step

Hacked WordPress Site? What to Do Right Now, Step by Step

By Zakaria Bishai
1 October 2026

The short answer: If you discover you have a hacked WordPress site, don’t rush to delete anything. Change every password immediately (dashboard, hosting, FTP and database), take a copy of the site as it is for analysis, check the files and users, then clean the site or restore a clean backup. After that, update all plugins and themes, and ask Google to review the site if it shows a warning. Most important of all after the cleanup: close the hole the attacker got in through.

First: why should you stay calm before taking any step?

You opened your website and found it redirecting to a betting site, or a client sent you a screenshot of a red Google warning. It’s stressful, but it’s very common, and it can be fixed.

The mistake that makes things worse is acting at random: deleting files without understanding them, or reinstalling the site without finding the vulnerability.

How can you tell you have a hacked WordPress site?

  • The site redirects to websites that aren’t yours, sometimes only on mobile.
  • A “This site is not secure” warning in the browser or in search results.
  • Strange pages in other languages appear under your site’s name on Google.
  • Users with administrator access that you didn’t add.
  • A message from your hosting provider saying it has suspended the site, or that spam is being sent from it.

What are the emergency steps, in order?

  1. Change every password: the WordPress dashboard for all users, the hosting account, FTP, the database and the email linked to them.
  2. Take a copy of the current state: not to go back to it, but to find out what changed.
  3. Put the site in maintenance mode, so visitors aren’t harmed.
  4. Check the users: delete any administrator you don’t recognize.
  5. Scan the files with a trusted security scanner, focusing on recently modified files.
  6. Clean or restore: if you have a backup you know for sure is clean, restore it. If not, clean the infected files and the database.
  7. Update everything: WordPress, plugins and themes. Delete any unused plugin, and any theme from an unofficial source.
  8. Ask Google for a review: in Google Search Console, open the Security Issues section and request a review once the cleanup is done.
Is your site hacked right now? Talk to the iilTech team on WhatsApp, and we’ll assess the situation and tell you the next step quickly. Contact us

Why do WordPress sites get hacked?

CauseProtection
Outdated plugins and themesRegular updates, and removing what you don’t use
Premium themes downloaded from unofficial sourcesBuying from the official source only
Weak or reused passwordsStrong passwords and two-factor authentication
Cheap hosting with no protectionReliable hosting with a firewall and scanning
No backupsAutomatic backups stored in a separate location
Too many users with administrator accessEach person gets only the access they need

A simple monthly security checklist

  • ☐ Update WordPress, plugins and themes.
  • ☐ Confirm your backups are working and can be restored.
  • ☐ Review the list of users.
  • ☐ Run a security scan of the files.
  • ☐ Check Google Search Console.

From our projects: cleaning up a hacked WordPress site

We cleaned up a hacked WordPress site for an interior design company we work with, brought the site back to normal working order, and closed the vulnerabilities the attack came through. And through our website hosting and maintenance service, we keep track of updates and backups instead of waiting for problems to happen.

The bottom line

A hack isn’t the end of your website. Change your passwords, clean up calmly, close the vulnerability, then make security a regular routine rather than a reaction.

Contact the iilTech team or explore our hosting and security service, which looks after your site before problems happen.

Frequently asked questions

Should I just rebuild the site from scratch and be done with it?

Usually, you don’t need to. A proper cleanup and closing the vulnerability are enough in most cases. Rebuilding the site without finding the vulnerability can leave it open to the same attack again. So first understand how the attacker got in, then decide: a cleanup, or a new website design if your site was outdated anyway.

Does a hack affect my site’s ranking on Google?

Yes, it can, especially if the attacker added spam pages or a warning appeared on the site. After you clean up and request a review in Google Search Console, your SEO rankings recover gradually. So act quickly, because every day the warning stays visible drives visitors away and weakens your customers’ trust.

Are security plugins enough?

No. Security plugins are useful, but they aren’t enough on their own. They don’t replace regular updates, backups, reliable hosting and strong passwords. Think of them as an extra layer on top of these basics, not a complete solution. The monthly checklist above covers all of these basics in very little time.

Is WordPress itself insecure?

No. An up-to-date WordPress installation is highly secure. Most hacks come from outdated plugins and themes or weak passwords, not from WordPress itself. So the problem usually lies in how the site is managed and maintained. If you keep up with updates, backups and the right user permissions, your site stays much safer.

Written by: Zakaria Bishai
Founder & CEO, iilTech Business Solutions