How to Access WordPress Site if Locked out by Wordfence 2FA

Photo of author

By Victor Ashiedu

Published

If Wordfence 2FA (Two-Factor Authentication) has locked you out of your WordPress site, follow the two steps in this guide to regain access.

Step 1: Install FileZilla

FileZilla is a popular Secure File Transfer Protocol (SFTP) software required to FTP to your WordPress site’s backend. If you have not installed FileZilla, download and install it before proceeding to Step 2 below.

Step 2: Disable Wordfence

  1. Open FileZilla and enter your WordPress hosting Server’s IP address in the Host field, SFTP username and password, and the port (22 for SFTP). After entering the details, click Quickconnect.
Step 2: Disable Wordfence
  1. Once you successfully FTP to the server, navigate to “/public_html/wp-content/plugins,” right-click the wordfence folder, select Rename and append “_” to the end without the quotes.
Renaming the Wordfence plugin folder automatically disables the plugin and the 2fa.
Once you successfully FTP to the server, navigate to "/public_html/wp-content/plugins," right-click the wordfence folder, select Rename and append "_" to the end without the quotes.

Step 3: Sign in to WordPress

After disabling the Wordfence plugin, you should be able to sign in without 2fa.

Step 4: Re-enable Wordfence

While logged in to WordPress, return to the FileZilla and rename the Wordfence plugin folder to its original name, without the “_”. Once you do that, the plugin will be activated.

Once it is activated, open the Wordfence Login Security page. Then, disable and re-enable 2FA.

Conclusion

If you’re locked out of your WordPress site by Wordfence 2FA, it can be scary, but recovering your site is very straightforward. As this guide demonstrates, all you need to do is sign in to the host server via an FTP client like FileZilla.

Once you sign in, navigate to the Wordfence plugin folder and rename it. After renaming the folder, the plugin is deactivated, which allows you to sign in without requiring a 2FA.

Finally, from the FTP, rename the Wordfence folder to its original name, then, back in your WordPress dashboard, deactivate and reactivate 2FA.

I’m confident I made your day with this guide, but I would like to hear from you. Provide feedback by clicking the “Was this page helpful?” feedback request below.

About the Author

Photo of author

Victor Ashiedu

Victor is the founder of InfoPress Media, publishers of Ilifeguides and Itechguides. With 20+ years of experience in IT infrastructure, his expertise spans Windows, Linux, and DevOps. Explore his contributions on Itechguides.com for insightful how-to guides and product reviews.

Related Articles

Get in Touch

We're committed to writing accurate content that informs and educates. To learn more, read our Content Writing Policy, Content Review Policy, Anti-plagiarism Policy, and About Us.

However, if this content does not meet your expectations, kindly reach out to us through one of the following means:

  1. Respond to "Was this page helpful?" above
  2. Leave a comment with the "Leave a Comment" form below
  3. Email us at [email protected] or via the Contact Us page.

Leave a comment

Send this to a friend