Your website's admin password protects your website. Your cPanel password protects everything: every site on the account, every mailbox, every database, every backup and every file. If someone gets into your control panel, they don't need to hack your site. They already own it.
That makes your cPanel account one of the most important things to secure. The steps below are practical, mostly take a few minutes each, and use features built into cPanel itself. Exact menu names can vary a little depending on your host's version and theme.
1. Use a strong, unique password
Start with the basics. Your cPanel password should be long, randomly generated and used nowhere else. A password manager makes this painless.
You can usually change it under Preferences > Password & Security in cPanel. Some hosts manage the cPanel password through their client area instead, so check there if you don't see the option.
2. Turn on two-factor authentication
cPanel includes built-in Two-Factor Authentication under the Security section. It works with standard authenticator apps that generate time-based codes.
- Open Security > Two-Factor Authentication.
- Click Set Up Two-Factor Authentication.
- Scan the QR code with your authenticator app.
- Enter the code from the app to confirm.
Store your authenticator backup or recovery method somewhere safe, so a lost phone doesn't lock you out. If the Two-Factor Authentication icon isn't visible, your host may need to enable the feature.
Our guide to strong passwords and two-factor authentication explains why this matters so much.
3. Secure your client area and email too
Your cPanel account is often reachable through other doors:
- Your hosting client area or billing portal, which may offer password resets or single sign-on into cPanel. Enable 2FA there if available.
- The email address on file with your host, since password reset links go there. Protect that mailbox with a strong password and 2FA.
An attacker who controls your contact email can often reset everything else.
4. Give team members their own logins
Don't share the main cPanel password with developers, designers or staff. cPanel's User Manager lets you create sub-accounts with access to specific services such as email, FTP or Web Disk, without exposing the main account.
Benefits:
- You can remove access for one person without changing everyone's password.
- Each person only gets what they need.
For developers who need full control, consider a temporary password you change after the work is done.
5. Use SFTP or FTPS instead of plain FTP
Plain FTP sends usernames and passwords unencrypted. Prefer:
- SFTP (over SSH), if your host provides SSH access
- FTPS (FTP with TLS encryption), which most FTP clients support
In Files > FTP Accounts, review every FTP account:
- Delete accounts you no longer use
- Restrict each account to the folder it needs, rather than the whole home directory
- Use strong, unique passwords
6. Use SSH keys if you have shell access
If your plan includes SSH access, use key-based authentication instead of passwords. In cPanel, Security > SSH Access lets you generate or import keys and authorize them. Protect private keys with a passphrase and never share them. Remove keys belonging to people who no longer need access.
7. Keep an eye on email account passwords
Every mailbox on your domain is a potential entry point and spam source. In Email > Email Accounts, check that:
- Every account has a strong password
- Old staff accounts are deleted or converted to forwarders
- No unexpected accounts exist
Also review Forwarders and Email Filters for anything you didn't set up. Attackers sometimes add silent forwarders to copy your incoming mail.
8. Review login and access history
Get into the habit of checking for unusual activity:
- cPanel often shows the last login IP on the main dashboard or in the account information area.
- Metrics > Raw Access and Errors logs show web requests and errors.
- Your security tools or the Track Delivery email tool can reveal unusual outgoing mail.
If you see logins from places you don't recognize, change your password immediately and contact your host.
9. Block or restrict access when needed
- Security > IP Blocker lets you block specific IP addresses or ranges from your website.
- Security > Directory Privacy adds password protection to a folder, a handy extra layer for admin areas like
wp-admin. - Hotlink Protection stops other sites from embedding your images and using your bandwidth.
Use IP blocks carefully. Attackers change addresses frequently, so blocking isn't a complete defense, but it helps with persistent offenders.
10. Keep SSL active on every domain
Make sure every domain and subdomain has a valid certificate. Most hosts offer free automatic certificates, often visible under Security > SSL/TLS Status, where you can check coverage and trigger renewals. Then use Domains settings or your CMS to force HTTPS. Our SSL and HTTPS guide covers why.
11. Keep software and permissions tidy
- Update CMS installs, plugins and themes regularly. If you installed sites with Softaculous, it can show outdated installs and handle updates.
- Delete old test sites, unused add-on domains and abandoned installs. Forgotten sites are a classic way in.
- Keep file permissions sensible: 755 for folders, 644 for files. See our explanation of file permissions like 644 and 755.
- Check Cron Jobs for scheduled tasks you don't recognize.
12. Keep backups you control
Even with perfect security, things can go wrong. Make regular backups and store copies outside your hosting account. Our guides on backing up with cPanel or DirectAdmin and the 3-2-1 backup rule explain how.
Bonus: watch out for phishing
Many cPanel compromises start with a fake "account suspended" or "payment failed" email leading to a lookalike login page. Always log in through a bookmark you saved yourself, never a link in an email. Our article on phishing scams that target website owners covers the common tricks.
Host Whimsy customers can find step-by-step help for their account in the knowledge base.
Quick checklist
- ☐ Strong, unique cPanel password
- ☐ 2FA enabled on cPanel and your client area
- ☐ Contact email secured with 2FA
- ☐ Sub-accounts for team members
- ☐ Unused FTP, email and SSH access removed
- ☐ SFTP or FTPS in use
- ☐ Forwarders, filters and cron jobs reviewed
- ☐ SSL active on all domains
- ☐ Software updated, old installs removed
- ☐ Off-account backups in place
Wrapping up
Your cPanel account is the master key to your web presence, so it deserves more protection than any single website login. A strong password and 2FA block most attacks on their own. Add separate team logins, encrypted file transfers, regular reviews of accounts and logs, and backups you control, and you've made your hosting account a much harder target.