WordPress India

WordPress Site Hacked? First 7 Steps to Take

WordPress Site Hacked? First 7 Steps to Take

If your WordPress site is hacked, contain it first, then clean it, then close the hole that let the attacker in. Acting in the right order prevents a second hack.

The 7 steps

  1. Don’t panic, and don’t delete everything. You may need files and logs to find the cause.
  2. Change all passwords: WordPress admins, hosting, FTP, database and email.
  3. Put the site in maintenance mode or ask your host to restrict access, so visitors are not exposed.
  4. Restore a clean backup from before the hack, if you have one you trust.
  5. Scan and clean remaining files and the database for malware and unknown admin users.
  6. Update everything and remove unused or pirated plugins and themes, the usual entry points.
  7. Request a review in Google Search Console if Google flagged your site, and monitor it for a few weeks.

Prevent it happening again

  • Regular updates and off-site backups.
  • Two-factor login for admins.
  • A firewall and scheduled malware scans.

Need urgent help? We fix hacked WordPress sites; see maintenance and one-off fixes.

Frequently asked questions

How do I know my site is hacked?

Common signs are strange redirects, unknown admin users, spam pages in Google results, or a warning from your host or browser.

Will restoring a backup fix it?

It removes the infection, but unless you fix the cause, the site can be hacked again.


Need help with your WordPress website? WP-India builds WordPress websites from ₹4,999 with domain, hosting and email included for the first year. WhatsApp us or see our packages.