Hi @nijntjepluis, thanks for reaching out to us.
I’m happy to provide instructions on how to get back into your site:
- Please use FTP/SFTP — or any file manager your web host provides via their administration panel.
- Look inside the /wp-content/plugins/ directory and rename the wordfence directory to wordfence.bak. This will deactivate Wordfence and allow you to login without the 2FA code.
- Once you have logged in to your WordPress admin you can name the folder back to wordfence again.
It sounds from the sudden change of behavior that an automatic update by another plugin or theme may have affected the JavaScript on that page, causing a conflict. If our scripts don’t load properly due to an error earlier in the loading process, this is the most common cause of behavior such as this. The best way to test for this is to run Wordfence has your only enabled plugin and enable 2FA. If you’re able to log in, then reenable your plugins one-by-one until it breaks again to find the cause.
Also bear in mind that our Login Security features are designed to work with the default WordPress and WooCommerce login/registration screens so may be incompatible with custom forms or login pages generated by plugins other than WooCommerce.
Thanks,
Peter.