# How to Enable Two-Factor Authentication in Wordfence

When your website uses Wordfence two-factor authentication, activate it on your first sign-in: scan the QR code with an authenticator app and enter the code.

Two-factor authentication (2FA) adds a second check when you sign in to your website. After your password, you enter a six-digit code from an app on your phone.

If your website uses Wordfence 2FA, you'll need to activate it the first time you sign in after we switch it on. This guide shows how.

## Activate it on your first sign-in

When we switch on 2FA, your account gets a short grace period. Activate 2FA during your first successful sign-in.

If the grace period runs out before you activate it, Wordfence locks the account. If that happens, [contact us](/contact/) and we'll extend the grace period so you can finish.

## Step 1: Open Wordfence Login Security

Sign in to your website's dashboard. In the menu on the left, go to **Wordfence > Login Security**.

On some websites, **Login Security** appears directly in the menu instead.

![The WordPress dashboard menu, with Wordfence highlighted](/images/blog/wordfence-menu.jpg)

## Step 2: Install an authenticator app

On your phone, install an authenticator app such as **Google Authenticator**. It's free from the Apple App Store and the Google Play Store.

![Google Authenticator in the Apple App Store](/images/blog/wordfence-authenticator-app.jpg)

## Step 3: Scan the QR code

Open the authenticator app and sign in or create an account. Tap the **+** button, then select **Scan a QR code**.

![Google Authenticator's add menu, with Scan a QR code highlighted. Existing codes are blurred.](/images/blog/wordfence-scan-qr-code.jpg)

Point your phone's camera at the QR code on the Login Security page. The app adds your website and starts showing a six-digit code that changes every 30 seconds.

## Step 4: Enter the code and activate

Type the current six-digit code from the app into the field on the right of the Login Security page. Then select **Activate**.

![The Wordfence two-factor authentication screen. The QR code and recovery codes are blurred, and the code field is highlighted.](/images/blog/wordfence-activate.jpg)

The same page offers five recovery codes. Select **Download** and store them somewhere safe. Each one signs you in once if you lose your phone.

Keep your QR code and recovery codes to yourself. Anyone who has them can generate your sign-in codes.

From now on, each time you sign in, the website asks for the current code from the app.

## In short

| Step | What you do |
|---|---|
| 1 | Sign in and go to Wordfence > Login Security |
| 2 | Install an authenticator app, such as Google Authenticator |
| 3 | In the app, tap + and scan the QR code |
| 4 | Enter the six-digit code, select Activate, and download your recovery codes |

## Feedback

If anything in Wordfence doesn't work the way this guide describes, [get in touch](/contact/) and we'll sort it out.