Overview

Two-Factor Authentication (2FA) is one of the most effective ways to secure your WordPress login. By enabling 2FA through the Wordfence plugin, you’ll add a second layer of protection, requiring both your password and a unique code from your mobile device to access your site.

Prerequisite

Two-Factor Authentication in Wordfence is designed to work with the standard WordPress login page. If you’re using a custom login form or a login page created by another theme or plugin, 2FA may not function as expected.

Instructions

1. Log in to Your WordPress Dashboard

2. Navigate to the Wordfence 2FA Settings

  • From the left-hand menu, click Wordfence > Login Security.
  • You’ll see the Two-Factor Authentication section at the top.

3. Scan the QR Code

  • Open your authenticator app on your phone.
  • Select Add Account > Scan QR Code.
  • Use your camera to scan the QR code displayed on your WordPress dashboard.
    (If scanning doesn’t work, you can manually enter the setup key shown beneath the QR code.)

4. Enter the Verification Code

  • Your authenticator app will generate a 6-digit code.
  • Enter this code in the “Authentication Code” field on your WordPress site and click Activate.

5. Save Your Backup Codes

  • Wordfence will display a set of backup codes.
  • Download or print these and store them somewhere safe.
    (These can be used if you lose access to your mobile device.)

6. Confirm Setup

  • Once activated, you’ll see a confirmation message.
  • Next time you log in, you’ll be asked for both your password and the 6-digit code from your authenticator app.

Testing 2FA

  1. Log out of your WordPress site.
  2. Attempt to log in again.
  3. After entering your username and password, you should be prompted for your authenticator code.

If successful, you’re now protected with 2FA!


What to Do If You Lose Access

  • Use your backup codes to log in.
  • If you don’t have your codes, you’ll need access to your WordPress database or FTP to disable the plugin and regain entry.
  • Disable Wordfence plugin via WPToolkit.
  • Contact your hosting provider (such as Conetix Support) for assistance if needed.

Best Practices

  • Always store your backup codes securely.
  • Consider registering more than one device (if your authenticator app supports it).
  • Regularly update both WordPress and the Wordfence plugin for the best protection.

Need Help?

If you’re unable to set up or access Two-Factor Authentication, our team can assist:

Was this article helpful?