Home » Read & Learn » WordPress » How to Implement 2FA (and why you need it) on Your WordPress Website

How to Implement 2FA (and why you need it) on Your WordPress Website

Setup 2FA security for your WordPress Website

Identity theft and hacking are up by 70%. That’s a crazy increase. This is why I have 2FA (Two-factor Authentication) on everything I can when the option is available, including all my WordPress websites.

2FA Before It’s Too Late

Two-factor authentication is one last step (albeit sometimes a PIA) that can prevent all kinds of data and identity theft compromises. Now that so much of your data is in databases, you need to take this critical step to do everything in your power to protect yourself.

Last year, someone accessed my business PayPal account and then added a Visa gift card. They then “filled” the gift card with funds from my PayPal balance. PayPal has since upgraded its security.

It was like they had not seen that one coming. PayPal admitted it should never have happened without my confirmation as the account owner. That’s the thing with technology: something new can happen at any time, and you have to react—fast.

WordPress Websites and 2FA

The last thing you want is for your website to be compromised where your server and resources are used for nefarious activities. Or your customer data gets swiped — that’s a big-time liability issue.

Scammers and hackers tend to target the little guys because they know they tend to not set up security properly. So, let’s get you all set up and secure!

WordPress Security is a Thing

When it comes to my WordPress websites, they are locked down because that is in my control to control. Not infallible, nothing is, but I have the peace of mind of knowing I’ve covered all the bases that I can.

When I login to a site that doesn’t have 2FA in place, I immediately make that recommendation. But recommending doesn’t mean they follow through.

Is it because there is an extra step to look at your phone and type in a code? That extra step is the exact thing that prevents strangers from accessing your data.

Believe me, if your site gets compromised, you’ll look at those extra steps differently. After having to go through a site recovery, 2FA will be something you actually enjoy.

Compromising WordPress Websites

Your WordPress website can be compromised in two ways: on the server side and through your dashboard. The first is through hosting, and the second is through your setup choices.

This is where a quality host comes into play. A website host is responsible for securing their servers and network. One of the easiest things you can do is have a complicated and long password to access your hosting and FTP accounts.

The same goes for your WordPress dashboard login. The more complex the password, the better.

If you don’t want to remember whacky passwords — check out LastPass. I have it on my desktop, tablet, and phone. Once a password is saved, I don’t have to worry about typing it in again.

Setting Up 2FA The Easy Way

By setting up 2FA to access your WordPress website’s dashboard, you and any other users you designate will need to enter the 2FA code sent only to their phones to gain access. Without that code, there will be no entry.

I install Wordfence on all the WordPress websites I work on. WordFence is a security plugin that allows you to monitor suspicious activity on your WordPress website. The 2FA settings are located in Wordfence > Login Security.

You’ll see two tabs: Two-factor Authentication and Settings. Let’s start with the Two-factor Authentication tab:

WordPress 2FA Setup
  • You must now install the Google Authenticator app on your phone. It is free and available for iOS (Apple App Store) and Android (Google Play Store).
  • Once installed, go to the Left Sidebar: WordFence > Login Security
  • Scan the QR code on that page with your authenticator app (open the app and click the + sign).
  • Download the recovery codes to your computer if you don’t have your phone sometime in the future and need to login to your site.
  • Enter the code from the app into the 123456 box and activate it.

Once you are set up, when you login to your site, another step will appear to add the code from the app into the 2FA box. This code will refresh to a different code each time you log in.

You’ll notice an option to not ask for a login code for 30 days. Check that.

2FA Settings Tab

Go to the Settings tab, where the user summary notes if 2FA is active.

  • Enable 2FA for these roles: This sets the user levels at which you want to use 2FA on your site.
  • Require 2FA for all administrators: Admins have the most permissions within your dashboard. Therefore, at minimum, you should require that all Admins have 2FA activated.
  • Grace period to require 2FA: You can set the date before 2FA kicks in and click SEND NOTIFICATION to inform all Admins.
  • Allow remembering device for 30 days: If enabled, users with 2FA enabled may choose to be prompted for a code only once every 30 days per device.
  • Enable reCAPTCHA on the login and user registration pages: eCAPTCHA v3 does not require users to solve puzzles or click a checkbox like in previous versions. The only visible part is the reCAPTCHA logo. If a visitor’s browser fails the CAPTCHA, Wordfence will email the user’s address with a link they can click to verify that they are your site’s user.

Safe and Secure

Review my article Tips to Secure Your WordPress Website for more tips to secure your WordPress website. Then, you can relax knowing that you added a security layer to ensure your WordPress dashboard can only be accessed by those you designate.

Remember, nothing is 100% guaranteed. However, adding 2FA combined with standard and customary security practices can dramatically minimize your risk.

At your service,

*Some of the links on this page are to companies with which I have a professional affiliation.
Read my complete affiliate statement here.

Trusted and Reliable WordPress Products and Services