WP 2FA – Two-factor authentication for WordPress



Add an extra layer of security to your WordPress website login page and its users. Enable two-factor authentication (2FA), the best protection against users using weak passwords, and automated password guessing and brute force attacks.

Features | Getting Started | 14-Day Premium Trial

Use the WP 2FA plugin to enable two-factor authentication for your WordPress administrator user, and to enforce your website users, or some of them to use 2FA. This plugin is very easy to use. It has wizards with clear instructions, so even non technical users can setup 2FA without requiring technical assistance.

Maintained & Supported by WP White Security

WP White Security builds high-quality WordPress security & admin plugins such as WPassword, and WP Activity Log, the #1 user-rated activity log plugin for WordPress.

Browse our list of WordPress security plugins to see how our plugins can help you better manage and improve the security of your WordPress websites and users.

WP 2FA Key plugin features & capabilities

Extend the functionality of WP 2FA & automate more

Upgrade to WP 2FA Premium to:

  • 2FA over SMS, Push notification, WhatsApp and incoming call via Authy integration
  • Add trusted devices – no need for 2FA code each time you log in
  • Whitelabel all the 2FA pages – for a consistent user experience
  • Give the users more 2FA methods to choose from and use
  • Configure different 2FA policies for different user profiles
  • More alternative 2FA backup methods
  • Easily get an overview of users’ 2FA setup with the reports
  • And many other features

Refer to the features and benefits page to learn more about the benefits of upgrading to WP 2FA Premium.

Free and Premium Support

Support for WP 2FA is free on the WordPress support forums.

Premium world-class support is available via email to all WP 2FA Premium users.

Note: paid customer support is given priority and is provided via one-to-one email and over the phone. Upgrade to Premium to benefit from priority support.

For any other queries, feedback, or if you simply want to get in touch with us please use our contact form.

As Featured On:

Related Links and Documentation

From within WordPress

  1. Visit ‘Plugins > Add New’
  2. Search for ‘WP 2FA’
  3. Install & activate the WP 2FA from your Plugins page.


  1. Download the plugin from the WordPress plugins repository
  2. Unzip the zip file and upload the wp-2fa folder to the /wp-content/plugins/ directory
  3. Activate the WWP 2FA plugin through the ‘Plugins’ menu in WordPress


  • The first-time install wizard allows you to setup 2FA on your website and for your user within seconds.
  • The wizards make setting up 2FA very easy, so even non technical users can setup 2FA without requiring help.
  • You can require users to enable 2FA and also give them a grace period to do so.
  • Users can also use one-time codes via email as a two-factor authentication method.
  • You can use policies to require users to instantly set up and use 2FA, so the next time they login they will be prompted with this.
  • It is recommended for all users to also generate backup codes, in case they cannot access the primary device.
  • In the user profile users only have a few 2FA options, so it is not confusing for them and everything is self explanatory.
  • The plugin blocks the accounts of users who are required to have 2FA but fail to enable it within the grace period, so they do not jeopardize the security of your website.


2022년 9월 9일
I want to report this plugin will trigger firewall loged your "/wp-login.php?action=validate_2fa" as a failed login(even you got the right username and password), if they can fix it , this will more help.
2022년 9월 2일
I installed it on two sites and set it up to receive an email. On one of them, after two days it was not sending the code. When I went to the support forum I saw that this was a recurring problem. And it's coming from the plugin itself, because the smtp server works perfectly.
2022년 7월 8일
We ran into a bug when using this plugin and the support folks and the lead developer dug in and solved it right away. One of the best support experiences we've had.
2022년 6월 22일
Installed this plugin years ago and was very satisfied. However since today I could not enter my site anymore. Got a message that I only can enter my site after upgrading to the 'PRO' version. Took me 2 hours to get access to my own site again. Deleting the plugin was not enough. the plugin installed three other files -which I found too- enabling me to access my own site. I think this plugin in general should be deleted from the WordPress repository.
2022년 6월 1일
Excellent 2FA plugin. They have a great support team. I had a conflict with another plugin, and they detected and solved my problem quickly.
모든 79 평가 읽기

기여자 & 개발자

“WP 2FA – Two-factor authentication for WordPress”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.


“WP 2FA – Two-factor authentication for WordPress”(이)가 8(으)로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “WP 2FA – Two-factor authentication for WordPress”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.


2.3.0 (2022-09-06)

Release notes: More white labelling options & better licensing

  • New features

    • Added a new plugin setting so admins can disable the 2FA wizards styling.
  • Improvements

    • Several UI and styling improvements in the plugin’s settings pages.
    • User’s 2FA configuration is removed when user is excluded.
    • Applied improved and responsive styling to the user 2FA wizards.
    • Better out-of-the-box support for websites on which access to wp-login.php & wp-admin is blocked.
    • Super administrators can now log in and use 2FA even if they do not have any role on any sub sites.
    • Added support for websites hosted on Godaddy that also have the Sucuri plugin enabled (Sucuri plugin was breaking the 2FA code page).
    • Better UX for when creating the front-end 2FA page settings.
    • Updated the Freemius SDK to version 2.4.5 to support PHP 8.1.
    • Applied several updates to the “user 2FA status check” code for more reliable status reporting.
    • Applied several maintenance and WP coding standards checks.
    • Plugin bails out early instead of trying to process users with ID 0.
    • Placeholders in plugin settings have been replaced by onces which allow you to see all the content without scrolling.
    • Improved the process that extracts the user role on multisite networks resulting in improvement of how the plugin handles users with multiple roles.
    • Rmoved the words “Google Authenticator” from all the wizards and using “2FA app” instead – plugin supports multiple 2FA apps.
    • Fixed the “focus” in the user 2FA wizard so the cursor is always in the expected location – user does not have to click to select where to enter the verification code.
  • Security Improvement

    • Plugin now uses the WordPress salts to store and encrypt 2FA data in the database.
    • Improved the comparison of authentication codes – ensuring the plugin is not vulnerable to time-based side-channel attacks.
  • Bug fixes

    • Fixed: QR code not loading in user 2FA wizard in some edge cases on a multisite network.
    • Fixed: the setting “Hide Remove 2FA button” was not properly reflecting the status on multisite networks.
    • Fixed: grace period check cron called the wrong settings.
    • Fixed: two emails are sent when a backup code over email is requested.
    • Fixed: incorrect 2FA methods count was showing in the user wizard.

Refer to the complete plugin changelog for more detailed information about what was new, improved and fixed in previous version updates of WP 2FA.