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.
Last posts from WordPress security blog
- Development version 7.6.1 September 4, 2018
- WP Cerber Security 7.6 August 31, 2018
- Get WordPress protected: rename the plugins folder August 27, 2018
- Development version 7.5.2 August 24, 2018
- WP Cerber Security 7.5 August 20, 2018
WP Cerber Security 7.2