What to do if your WordPress site has been hacked
- 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.
- 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.
- 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.
- Scan the website with free Cerber Security malware scanner and delete all detected malicious files.
- Change security keys in the wp-config.php file. Get it from: https://api.wordpress.org/secret-key/1.1/salt/
- Make chmod 444 for wp-config.php.
- Check uploads folder(s) for php files. Remove it without doubt.
- Put .htaccess file to the uploads folder with string in it
php_flag engine off
- 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.
WordPress Security How ToNext Post
Optimizing export performance