> For the complete documentation index, see [llms.txt](https://learn.sitecove.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.sitecove.com/how-to-guides/web-hosting/security-and-backups/how-to-enable-two-factor-authentication-2fa.md).

# How to Enable Two-Factor Authentication (2FA)

#### Introduction

Two-Factor Authentication (2FA) is an essential security feature that adds an extra layer of protection to your website, server, and online accounts. By requiring a second form of verification—like a code sent to your phone or generated by an authenticator app—2FA makes it much harder for hackers to gain access even if your password is compromised. In this guide, we’ll walk you through the steps to enable 2FA for your website and hosting accounts.

***

#### Why Enable Two-Factor Authentication?

Enabling 2FA significantly improves your website’s security by:

* **Preventing unauthorized access**: Even if your password is stolen, hackers can’t log in without the second verification step.
* **Protecting sensitive data**: Keeps personal, financial, and customer information safe.
* **Reducing the risk of brute force attacks**: Adds an extra barrier against automated login attempts.

***

#### How to Enable 2FA in cPanel

#### Step 1: Access Security Settings

1. Log in to your **cPanel** account.
2. Go to the **Security** section and click **Two-Factor Authentication**.

#### Step 2: Set Up 2FA

1. Click **Set Up Two-Factor Authentication**.
2. Open your preferred authenticator app (like Google Authenticator or Authy).
3. Scan the **QR code** displayed on your screen.
4. Enter the **6-digit code** from your app and click **Configure 2FA**.

#### Step 3: Confirm Setup

Once configured, cPanel will confirm that 2FA has been successfully enabled. You’ll now be required to enter a code from your authenticator app whenever you log in.

***

#### How to Enable 2FA in Plesk

#### Step 1: Access Extensions

1. Log in to your **Plesk** control panel.
2. Go to **Extensions** and search for **Google Authenticator** or a similar 2FA extension.
3. Install and activate the extension.

#### Step 2: Configure 2FA

1. Go to **My Profile** and click **Two-Factor Authentication**.
2. Open your authenticator app and scan the **QR code**.
3. Enter the **6-digit code** from the app and save your settings.

***

#### How to Enable 2FA for WordPress

#### Step 1: Install a 2FA Plugin

1. Log in to your **WordPress dashboard**.
2. Go to **Plugins** > **Add New**.
3. Search for a 2FA plugin like **Two-Factor** or **Wordfence Login Security**.
4. Install and activate the plugin.

#### Step 2: Set Up 2FA

1. Navigate to the plugin’s settings.
2. Choose your **authentication method** (e.g., an authenticator app).
3. Scan the **QR code** and enter the **verification code**.

#### Step 3: Test and Confirm

Log out and log back in to ensure that 2FA is working correctly.

***

### Additional Security Tips

* **Backup recovery codes**: Store recovery codes in a safe place in case your device is lost.
* **Use a trusted authenticator app**: Google Authenticator, Authy, and Microsoft Authenticator are widely recommended.
* **Enable 2FA on your hosting account**: If your hosting provider offers it, enable 2FA for your main hosting login.

***

### Conclusion

Two-Factor Authentication is one of the simplest and most effective ways to secure your website and online accounts. By following these steps, you add a powerful layer of security, protecting your data and reducing the risk of unauthorized access. Make sure to enable 2FA wherever possible and regularly review your security settings.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://learn.sitecove.com/how-to-guides/web-hosting/security-and-backups/how-to-enable-two-factor-authentication-2fa.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
