Support » Plugin: Wordfence Security - Firewall & Malware Scan » 2FA locked me out my site

  • Resolved vandermeer.jp

    (@vandermeerjp)


    Hello,

    I have enabled 2FA through Wordfence for the administrator login on my blog.
    But spontaneously I cannot login anymore.
    I am NOT being asked for the 2FA code at all.
    In stead I get this error:

    LOGIN BLOCKED: 2FA is required to be active on all administrator accounts.

    But how can I be blocked when I’m not even asked to give in the code?
    And more importantly, how can I fix this when I cannot get acces to my site?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support WFAdam

    (@wfadam)

    Hello @vandermeerjp and thanks for reaching out to us!

    Lets get you back into your site first. Follow these steps:

    The first way is if you have added the site in Wordfence Central (a free site management tool in your account on wordfence.com):

    • Login to Wordfence.com and look for the Configuration tab.
    • Click the gear icon at the end of the row that the site you need to access is on.
    • Scroll down to the Login Security Options section and expand it by clicking the small black arrow to the right.
    • In the section that says “Whitelisted IP addresses that bypass 2FA” add your public facing IP address.
      NOTE : You can get your public facing IP by clicking this link.
    • Scroll back to the top of the screen and save the changes.
    • You should now be able to login to your site with just a username and password.

    If you haven’t added your site to Wordfence Central follow these steps:

    • 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.
    • Go to your user profile and add 2FA back to your account, making sure to download the backup codes in case of problems in the future.

    Once you get logged back in, you can try to set up your 2FA again, if you have any questions about it, just let me know!

    https://www.wordfence.com/help/tools/two-factor-authentication/#how-to-enable-two-factor-authentication is also a great guide from our docs!

    Thanks!

    Thread Starter vandermeer.jp

    (@vandermeerjp)

    Thank you ver very much!

    I did exactly as you said and it succeeded.

    Great support!

    Plugin Support WFAdam

    (@wfadam)

    Great! Glad you could get logged back in!

    Let us know if you need anything else!

    Thanks again!

    @wfadam I have the same problem with 2FA.
    I have not added my site to Wordfence Central.
    I have rename the wordfence directory to wordfence.bak.
    And now I am getting this error:
    ERROR: An error was encountered while trying to authenticate. Please try again.

    Can you help me solve this?

    Plugin Support WFAdam

    (@wfadam)

    @liede
    As per forum guidelines below, could you please open your own topic and we would be glad to assist you:
    “Unless users have the exact same version of WordPress on the same physical server hosted by the same hosts with the same plugins, theme, and configurations, then the odds are the solution for one user will not be the same for another. For this reason, we recommend people start their own topics.”

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘2FA locked me out my site’ is closed to new replies.