Divi: The best WordPress theme of all time!

With over 901.000 downloads, Divi is the most popular WordPress theme in the world. It is complete, easy to use and comes with more than 62 free templates.

Have you noticed that popular websites like Facebook and Google now give you the option to add two-factor authentication to improve security?

Well, you can also add two-factor authentication to your WordPress website. This will guarantee maximum security for the latter.

In this tutorial, we will show you how to add two-factor authentication to WordPress using the Twilio SMS service.

But first, if you've never installed WordPress, find out How to Install a WordPress Blog in 7 Steps et How to search, install and activate a WordPress theme on your blog 

Then let's go to why we are here.

Add two-factor authentication on wordpress

Why add two-factor authentication for WordPress login?

One of the most common hacks used by hackers is called the brute force attack. Using automated scripts, hackers try to guess the username and password to break into a WordPress website.

Protect your work by reading How to protect your WordPress work on client websites

If they steal your password or guess it accurately, they can infect your website with malware.

One of the easiest ways to protect your WordPress website from a stolen password is to add two-factor authentication. This way, even if someone has stolen your password, they will have to enter a security code which is only sent to your cell phone.

There are several ways to configure dual factor authentication. This tutorial will focus on one of two:

So let's take a look at how to easily add two-factor verification to your WordPress blog. 

But before, if you have never installed WordPress discover How to Install a WordPress Blog in 7 Steps et How to search, install and activate a WordPress theme on your blog.

Then, back to why we are here.

Adding dual factor authentication on WordPress

This method adds two-step SMS verification to your WordPress login screen. After entering the username and password, you will receive an SMS text message to your phone with a code.

But, you need to install the plugins first Two Factor et Two Factor SMS. For more details, see our step by step guide on how to install a WordPress plugin.

The first plugin called " Two Factor »Offers several ways to configure 2-step verification in WordPress. The second plugin, which is called " Two Factor SMS Is an extension for the first plugin. It adds SMS support for verification in 2 steps. You will need these two plugins installed and activated.

Easily create your website with Elementor

Elementor lets you create Easily and Free any website or blog design with a professional look. Stop paying a lot for a website you can do yourself.

After activation, you must go to " users> Your profile page And scroll down to the "Two Factors Options" section.

Two-factor option

Check the box next to the option " SMS (Twilio) And click on the checkbox to make it the primary verification method.

After that, scroll down to the Twilio section.

Twilio wordpress section

You will need to provide your Twilus account information.

Twilio is an online service that offers voice, voicemail and SMS services for use with your own applications. They also have a limited free plan that would be enough for our tutorial.

Visit Twilio  website and create your free account.

Create a twilio wordpress account

Dance the registration page, you will be asked for usual personal information. Then you will be asked which products you want to use first.

Service to use twilio wordpress

You need to select SMS and then select the option of 2-factor authentication. Finally, select PHP for your programming language.

Do you want to sell your products on the internet?

Download WooCommerce for free, the best e-commerce plugins to sell your physical and digital products on WordPress and easily create your online store. Perfect for beginners.

Once you have your account, you will access your Twilio dashboard where you have to click on the button " Start "(Get Started).

Twlio dashboard

This brings you to a configuration wizard where you have to click on the button " Get your first Twilio Number ».

Get a twilio wordpress number

A popup will be displayed with a US-based phone number. Copy and save this number to a text file, then click on the button " Choose this number ».

Twilio wordpress number

You can now exit the wizard and access the " Settings> Geo Permissions ».

Here you have to select the countries where you will send SMS. Since you use the service to receive SMS yourself, you can select the country in which you live and the countries where you travel.

Selection of twilio countries wordpress tutorial

Then, you need to visit the Twilio console dashboard to copy your SID account (Account ID) and the Auth Token (Connection token).

Twilio account ID and login token

Now you have all the information you need.

See also: How to add Gmail authentication on WordPress

Go to the user's profile page on your website and enter the Twilio account SID, authenticator phone number, and sender phone number.

Add your own phone number as "Phone number of the receiver».

Do not forget to click on the button « Update profile "To save your settings.

You can now log out of your website to see the plugin in action.

On the login screen, you will first provide your WordPress username and password. Then you will receive an SMS notification on your phone, and you will need to enter the code you received.

Twilio wordpress authentication code

Other recommended resources

We also invite you to consult the resources below to go further in the grip and control of your website and blog.


Here ! That's it for this tutorial, hopefully it will allow you to add two-factor authentication to your WordPress blog. 

However, you will also be able to consult our resources, if you need more elements to carry out your projects of creation of Internet sites, by consulting our guide on the WordPress blog creation or the one on Divi: the best WordPress theme of all time.

If you have some Comments or suggestions, please let us know in the section reserved for them. If you liked this article, ndo not hesitate to share on your favorite social networks