How to Set Up Two-Factor Authentication on WordPress

13 Oct 20265 min read
Sefat Hossain, WordPress security specialist
By Sefat Hossain
Share
How to Set Up Two-Factor Authentication on WordPress

Quick answer

To set up two-factor authentication on WordPress, install a reputable 2FA plugin (like Wordfence Login Security or a dedicated 2FA plugin), scan the QR code with an authenticator app such as Google Authenticator or Authy, save your backup codes, and enforce 2FA for all admin and editor accounts.

Key takeaways

  • 2FA blocks logins even when a password has been stolen.
  • An authenticator app is more secure than SMS-based codes.
  • Enforce it for every admin and editor, not just your own account.

If you do one thing to secure your WordPress site this week, make it two-factor authentication. It means a stolen password alone isn't enough to log in — the attacker also needs the code from your phone. Here's how to set it up.

Choose a 2FA method

An authenticator app (Google Authenticator, Authy) or a hardware security key is the strongest option. Avoid SMS where you can — it's better than nothing, but it can be intercepted.

Install a 2FA plugin

Use a reputable plugin such as Wordfence Login Security or a dedicated two-factor plugin. Install and activate it from the official plugin directory.

Scan the QR code

Open your authenticator app, scan the QR code the plugin shows, and enter the generated code to confirm the pairing.

Save your backup codes

The plugin gives you one-time backup codes for when you don't have your phone. Store them somewhere safe — a password manager is ideal.

Enforce it for everyone who can edit

Require 2FA for all admin and editor accounts. A single un-protected admin account undoes the benefit for everyone else.

Free security check

Worried your site is infected?

Get a free security assessment — I'll tell you if your WordPress site is compromised and exactly what it needs. No obligation.

Follow-up questions

People also ask

An authenticator app (like Google Authenticator or Authy) or a hardware key is more secure than SMS, which can be intercepted or SIM-swapped.

Worried about your own site?