Home » WordPress » Enable Wordfence 2 Factor Authentication

Enable Wordfence 2 Factor Authentication

Wordfence 2 Factor Authentication

Enabling 2 Factor Authentication in WordPress

This is a quick guide to enable 2 factor authentication (2FA) in WordPress using Wordfence Security.

To improve login security from hackers or other automatic bot login attack, you should enable 2 Factor Authentication in WordPress.

If you have previously installed Wordfence Security (one of the WordPress plugin for security and firewall) and completed the Wordfence setup, you can activate the 2-factor authentication for login which is a built-in feature in the Wordfence Security plugin.

200+ Free Traffic Sources - The Complete List

Promote Your Website with Free Traffic


Get the Complete List as a PDF Document

Download and Install the Authenticator App

Download and install this 2-factor Authentication app called Authenticator onto your phone.

Authenticator App 2FA

The screenshot shows the iPhone version of Authenticator in Apple Store. If you are using an Android mobile phone, you will need to download and install a similar app.

Enable Wordfence 2 Factor Authentication

Log in to your WordPress website the usual way.

Assume you have already installed Wordfence.

Select Wordfence on the left side main navigation, and click Login Security (from the drop-down menu).

Wordfence Login Security 2FA Page

Under the Two-Factor Authentication tab of Wordfence, you will see a QR Code.

Open your Authenticator app.

Click the + button (to add a new WP site).

Scan the QR code with the Authenticator app.

You will get a 6-digit 2FA code from the Authenticator app.

Wordfence Enter 6 Digit Code 2FA

Enter this 6-digit code into Wordfence.

Click the Activate button.

Login to WordPress

Next time when you log in to your WordPress site, you will enter your username and password (as usual).

Enter 6 digit 2FA code (into WordPress Wordfence)

You will then be prompted to enter the 2FA code.

Now open the Authenticator app. Get your new 6-digit code (or 2FA code).

Each time you open the  Authenticator app, it generates a new 6-digit code.

Enter this 6-digit code in the 2FA field.

Now you should have logged in to your WordPress site successfully.

Time-based One Time Password (TOTP) Apps for Wordfence 2FA

Time-based One Time Password (TOTP) apps that can be used with Wordfence Security 2FA include:

  • Google Authenticator
  • Sophos Mobile Security
  • FreeOTP Authenticator
  • 1Password
  • LastPass Authenticator
  • Microsoft Authenticator
  • Authy 2-Factor Authentication
  • Any other authenticator app that supports Time-based One-Time Passwords (TOTP)


Mobile-friendly WordPress theme allowing small businesses to quickly develop & launch fully functional websites. The theme comes with many powerful WP plugins including Ocean Sticky Header, etc.

Step-by-step guide to install WordPress. Register your domain, select your hosting plan & set up your WordPress website all on Siteground. Install plugins to enhance WordPress SEO & speed.