Security Blog
Security Blog
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
  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:
  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 team lead in Cerber Tech. I'm a software & database architect, WordPress - PHP - SQL - JavaScript developer. I started coding in 1993 on IBM System/370 (yeah, that was amazing days) and today software engineering at Cerber Tech is how I make my living. I've taught to have high standards for myself as well as using them in developing software solutions.

View Comments
There are currently no comments.