UnderHost
Knowledgebase Docs

Two-factor authentication for WordPress and cPanel

Add two-factor authentication to WordPress admin and cPanel to protect against password theft. Plugin and native options for 2FA on your hosting accounts.

On this page

Two-factor authentication requires a second form of verification (usually a one-time code from your phone) in addition to your password. Even if someone steals your password, they cannot log in without the second factor. Enable 2FA on every account that controls your hosting.

Why 2FA for hosting

Hosting accounts are high-value targets. A compromised cPanel, WordPress admin, or CustomerPanel account gives an attacker full control of your website, email, and data. Password reuse, phishing, and data breaches are common ways credentials are stolen-2FA stops these attacks even when the password is known.

2FA for WordPress admin

Use a 2FA plugin to protect the WordPress login. Popular options:

PluginNotes
WP 2FAFree, easy setup, supports TOTP apps and email codes
Two Factor Authentication (by David Anderson)Lightweight, free, widely trusted
Google Authenticator for WordPressSimple TOTP integration
Wordfence SecurityFull security suite including 2FA

Install WP 2FA:

  1. WordPress Admin → Plugins → Add New → search "WP 2FA"
  2. Install and activate
  3. Follow the setup wizard to configure TOTP authentication
  4. Scan the QR code with your authenticator app
  5. Optionally enforce 2FA for all admin users

2FA for cPanel

  1. Log in to cPanel
  2. Go to Security → Two-Factor Authentication
  3. Click Set Up Two-Factor Authentication
  4. Scan the QR code with your authenticator app
  5. Enter the 6-digit code to verify
  6. Click Configure Two-Factor Authentication

After setup, every cPanel login requires your password plus the current 6-digit code from your authenticator app.

2FA for CustomerPanel

See the dedicated guide: How to enable two-factor authentication in CustomerPanel

Was this article helpful?

Strengthen your security

Enable 2FA on your CustomerPanel account for additional protection of your hosting account.

Related articles

Back to Security