Title: 2fa code invalid
Last modified: July 3, 2024

---

# 2fa code invalid

 *  Resolved [lordsnake](https://wordpress.org/support/users/lordsnake/)
 * (@lordsnake)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/2fa-code-invalid/)
 * not able to login to site as it keeps saying 2fa code is invalid.
 * it was working fine 1 week ago.
   In another topic it says I can whitelist my IP
   from wordfence central, but there is no such option under the 2fa section.

Viewing 1 replies (of 1 total)

 *  Plugin Support [wfmargaret](https://wordpress.org/support/users/wfmargaret/)
 * (@wfmargaret)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/2fa-code-invalid/#post-17867185)
 * Hi [@lordsnake](https://wordpress.org/support/users/lordsnake/),
 * The option to allowlist your IP in Wordfence Central can be found in **Configuration**.
   In the **Configuration **tab, click on your domain. In the **Login Security Options**
   section, expand **General**. The first option there — **Allowlisted IP addresses
   that bypass 2FA and reCAPTCHA **— is the one you will want to add your IP to.
 * If you can’t locate this option, you might try using one of your 2FA recovery
   codes or adding the 2FA code to the end of your password. For example, if your
   password is **w0rdf3nce#!** and the code is **233455**, enter **w0rdf3nce#!233455**.
 * If needed, you can also deactivate the plugin temporarily by doing the following:
    - 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**.
    - Once you have logged in to your WordPress admin you can name the folder back
      to **wordfence **again.
    - Refresh your dashboard and you should be able to see Wordfence Active again.
      If not, go to the Plugins page and Activate it.
 * Please let us know if you run into any issues!
 * Thanks,
   Margaret

Viewing 1 replies (of 1 total)

The topic ‘2fa code invalid’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [wfmargaret](https://wordpress.org/support/users/wfmargaret/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/2fa-code-invalid/#post-17867185)
 * Status: resolved