How to Clean a Hacked WordPress Website in 7 Easy Steps

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.

Nina Young About the author

I studied mathematics at university, taught myself software development, honed my skills with multinational companies such as IBM and have set up and sold my own businesses. My perspective covers the all important period when a business moves from small and successful to substantial and market-leading, and my personal experience allows me to provide online solutions that give business leaders mastery of their online presence and control over business development.

No Comments

Post a Comment