How to Clean a Hacked WordPress Website in 7 Easy Steps

by | Nov 21, 2015 | 0 comments

This FAQ shows you how to quickly clean your WordPress website after it has been hacked. Follow our 7 easy steps to clean your infected WordPress website:

  1. Reinstall WordPress via the UPDATES page in admin.
  2. Update all the plugins and themes via the UPDATES page in admin*.
  3. Change your website database password and update the config.php file with the new password.
  4. Change all WordPress administrator level passwords.
  5. Replaced the .htaccess files with a clean .htaccess file (copy from installation files for WordPress).
  6. Repeat for all websites on the same hosting account. This is very important.
  7. Install the Sucuri Security plugin for WordPress and which is very good. It tells you what’s wrong with your website after running a scan via the plugin ‘Malware Scan’ page.

Use this site check to see if your website has been infected: and then check it again after you’ve followed the steps above.

*Please note that some plugins will not show that they need an update via the Updates section in your WordPress administrator section.  For example the popular ‘WPBakery Visual Composer’ plugin has multiple XSS security vulnerabilities prior to version 4.7.4. and because it’s a commercial plugin it doesn’t show in the Updates section. You’ll need to either manually check for updates and/or get on your plugin’s mailing lists so that you will be alerted of important updates.

Keeping your WordPress software, plugins and themes up to date is essential if you want to keep your website free from viruses, malware and other nasties! We hope that this FAQ has helped you to quickly clean your hacked WordPress website. Please post any questions below.


Submit a Comment

Your email address will not be published. Required fields are marked *

elan creative

We’re like the in-house website design team you always dreamed of, able to tell your story like nobody else, and focus on your bottom line along with you….

Elan Creative
UK: +44 (0)121 288 3449
NL: +31 (0)20 893 2923

freelance-website-designer s


Get a free quote for your website design project: