- Update WordPress to the latest version
- Remove all unused themes
- Update themes to the latest version available
- Check for mixing content
- Delete all deactivated plugins
- Deactivate all unused or unecessary plugins
- Install Limit Login Attempts plugin (https://wordpress.org/plugins/login-lockdown/)
- Update password of all users
- Delete users that are not being used
- run
wp search-replace "stage-url.rockstage.io" "domain.com"
to update all urls - run
wp search-replace "http://stage-url.rockstage.io" "https://domain.com"
to force all urls to use HTTPS - Always use SSL (HTTPS)
- Add mod_headers extra security code to .htaccess (file attached)
- Disable file edit in wp-config
define('DISALLOW_FILE_EDIT', TRUE);
- Disable XML-RPC (See https://www.wpbeginner.com/plugins/how-to-disable-xml-rpc-in-wordpress/)