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.


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.
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.
Excellent 2FA plugin. They have a great support team. I had a conflict with another plugin, and they detected and solved my problem quickly.
The 2FA plugin works just fine. It's simple to use and the "remember me" feature is greatly appreciated by our staff. Additionally, dealing with the company and support is smooth and courteous.
Meda boss ahda ka website ko mahfoz ker ta jaldi jaldi ker. aa plugin na sari flim change ker dati ha..
Прочитати всі 77 відгуків

Учасники та розробники

“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.2.1 (2022-05-02)

  • Security fix

    • Fixed a reflected cross-site scripting issue in plugin’s admin page – reported by Utkarsh Agrawal.
  • Improvements

    • Beefed up the escaping and filtering of all user input in the plugin’s admin pages.

2.2.0 (2022-04-14)

Release notes: 2FA with SMS, Push notifications, WhatsApp & more!

  • New features

    • New setting to configure how to handle logins if an external 2FA service is unavailable during login.
  • Improvements

    • Added the functionality to exclude users and roles from 2FA, regardless of the type of 2FA enforcement policy you have configured.
    • Improved the function that checks which policies apply to the user logging in based on the user role (to address some inconsistencies when users’ roles are changed).
    • Applied several styling tweaks to the user 2FA setup wizard and plugin settings.
    • Improved the text used in the white labelling settings.
    • Removed the word “WordPress” from all 2FA user wizards.
    • Added more validation checks to some of the plugin settings that accept user input.
    • Improved the text in several notifications to better explain the issue to the user.
    • Redirects after first-time install wizard improved to better guide administrators.
  • Security Fix

    • Insecure Direct Object Reference issue that allows users to disable another users’ 2FA settings through a specific URL request. Issue reported by Maycon Vitali.
  • Bug fixes

    • Fixed: Fatal error caused in some edge causes, which was caused from the removal of premium code during the build process.
    • Fixed: Plugin only redirecting user to a custom “after 2FA setup URL” if they generate the backup codes.
    • Fixed: Addressed a PHP warning triggered during logging in when there is are no set policies -(support ticket).
    • Fixed: JavaScript responsible for storing the email backup code was removed from the admin part.

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