There are a couple of steps we could do to go through and alter some things or the easiest thing to do in my opinion is to completely reinstall Wordfence to guarantee it’s all done correctly for your new host.
You can backup your Wordfence settings via the Export option. Navigate to Wordfence > Tools > Import/Export Options and click Export. You can also take note of the current Whitelisted URLs you have in Wordfence > Firewall > All Firewall Options > Whitelisted URLs as these are NOT included in the Import/Export, and will be lost during the re-install.
Here is what is exported: https://www.wordfence.com/help/tools/import-export/
During the export, you will be given a long string of text. Keep this safe, you’ll need it in a few minutes.
To ensure you have completely removed Wordfence, follow these steps:
- Remove extended protection manually (https://www.wordfence.com/help/firewall/optimizing-the-firewall/#removing-the-optimization)
- Remove the
wordfence
plugin folder located in wp-content/plugins
- Remove the
wflogs
folder located in wp-content
- Remove
wordfence-waf.php
located in the root of you WordPress installation
- Remove all Wordfence related database tables from the database, using for example phpMyAdmin or Wordfence Assistant plugin.
- Check either
.htaccess
file or .user.ini
depending on your server configuration and remove any code snippets wrapped by # Wordfence WAF and # END Wordfence WAF.
Then install Wordfence and follow the prompts. It will be like setting Wordfence up for the first time. You will need to enter an email address, and then go into Tools > Import/Export Options and paste that string of text into the Import Wordfence Options field and click the button there. Make sure to Optimize the Firewall again as well!
Let me know how this goes!
Thanks!