Connect with the Cloudflare Community

How do I set up two-factor authentication?

Two-factor authentication (2FA) adds an extra layer of security to your Cloudflare account. Cloudflare strongly recommends that all users take advantage of this feature when logging in to the Cloudflare dashboard.

Enable two-factor authentication

To set up two-factor authentication:

1. Log in to the Cloudflare dashboard (dash.cloudflare.com). You will see the Accounts home page, which lists each account that you're a member of.

2. In the top right corner, click the dropdown next to the user icon.

3. Select My Profile.

2. In the MyProfile page, scroll down to the Two-Factor Authentication panel to pick one of the options supported. If you are unsure, choose Authy or Google Authenticator.

Configuring Authy

1. After clicking Authy in the My Profile page, an Enable Two-Factor Authentication pop-up appears instructing you to install the Authy app in your mobile phone. If you already have Authy, skip the installation.

Configuring Google Authenticator

3. In the My Profile page of the Cloudflare dashboard, click Google Authenticator. A Set Up Two-Factor with Google Auth dialog displays.

4. Back in Google Authenticator in your mobile device, scan the barcode displayed in the Cloudflare dashboard. A verification code now displays in your mobile device.

5. Go back to the Cloudflare dashboard and enter the code generated in your mobile device.

6. Make a note of your second-factor backup code. This will help you recover your two-factor authentication code if you ever need to replace your mobile.

7. Finally, click Verify code.

Two-factor authentication is now active for your Cloudflare account. The next time you log in to the Cloudflare dashboard, you will need to enter a two-factor authentication code from Google Authenticator.

If you need to disable two-factor authentication at a later time, you can do so in the My Profile page of the Cloudflare dashboard.