How to Set Up Two-Factor Authentication (2FA) in cPanel
Two-Factor Authentication (2FA) significantly improves the security of your hosting account by requiring a second verification step in addition to your password. Even if someone obtains your password, they will not be able to access your account without the verification code generated by your mobile device.
Why Enable 2FA?
- Prevents unauthorized access
- Protects sensitive website data
- Reduces risk of brute-force attacks
- Strengthens compliance with security best practices
Step 1: Log into cPanel
- Access your hosting client area.
- Select your active hosting service.
- Click Login to cPanel.
Step 2: Navigate to Two-Factor Authentication
- Scroll to the Security section.
- Click on Two-Factor Authentication.
- Select Set Up Two-Factor Authentication.
Step 3: Configure Authenticator App
- Download an authentication app such as Google Authenticator or Authy.
- Open the app and scan the QR code displayed on your screen.
- Enter the 6-digit code generated by the app.
- Click Configure.
Testing Your Configuration
Log out of cPanel and log back in. After entering your password, you should be prompted for your 6-digit authentication code.
Important Security Tips
- Store your recovery codes securely.
- Do not share authentication codes with anyone.
- Use a strong password along with 2FA.
Enabling 2FA is one of the most effective ways to protect your hosting account.