WordPress Security
WordPress Security
Posted By Gregory

What to do if your WordPress site has been hacked


  1. Immediately change passwords. Your WordPress user account and all accounts with administrative privileges on the website. The MySQL password for your website database and the password for MySQL server administrator. FTP too, if it is enabled.
  2. Reinstall WordPress. Manually remove old one and install again (do not forget to make backup of the uploads folder). Download latest stable release from wordpress.org.
  3. Reinstall all plugins and theme. Use latest stable releases.¬†Reinstall means remove all folders and files from previous installation. Don’t copy new files over files and folders that exists.
  4. Scan the website with free Cerber Security malware scanner and delete all detected malicious files.
  5. Change security keys in the wp-config.php file. Get it from: https://api.wordpress.org/secret-key/1.1/salt/
  6. Make chmod 444 for wp-config.php.
  7. Check uploads folder(s) for php files. Remove it without doubt.
  8. Put .htaccess file to the uploads folder with string in it
    php_flag engine off
  9. Check theme with Theme Check plugin.

Have any questions?

If you have a question regarding WordPress security or WP Cerber, leave them in the comments section below or get them answered here: G2.COM/WPCerber.


I'm a software engineer and team lead at Cerber Tech. I started coding in 1993 on IBM System/370 and today software engineering at Cerber Tech is how I make my living.

View Comments
There are currently no comments.