Your cPanel account holds everything that makes your website work: files, databases, email accounts and backups. If someone breaks in, they get all of it at once. The good news is that many attacks succeed because of simple, fixable gaps, like weak passwords, outdated software or forgotten accounts. Secure cPanel hosting doesn’t require advanced skills. It takes a handful of good habits and a few settings you can switch on in minutes. This guide walks you through the steps, from strong logins and two-factor authentication to backups and monitoring, so you can protect your website, your data and your visitors.
What Does It Mean to Secure a cPanel Hosting Account?
Securing a cPanel hosting account means protecting your login, files, databases, email and server settings from unauthorised access, malware and data loss. It combines strong authentication, regular updates, encryption, backups and monitoring. No single setting makes you safe. Several small layers working together do.
Why cPanel Security Matters
cPanel is the control centre for your website. Anyone who gets into it can edit your files, read your databases, send email from your domain or delete everything. A compromised site can also be blacklisted by search engines, lose visitors’ trust and take days to clean up. Prevention is far cheaper than recovery.
1. Use a Strong, Unique Password
Short answer: Use a password of at least 12 to 16 characters that mixes letters, numbers and symbols, and never reuse it anywhere else.
Weak and reused passwords are among the most common ways accounts get broken into. A password manager makes this easy, because you only remember one master password and it generates the rest. Don’t use your business name, your birth year or anything someone could guess from your website.
Change your password straight away if you ever shared it with a developer or freelancer who no longer works with you.
2. Turn On Two-Factor Authentication (2FA)
Short answer: Two-factor authentication asks for a one-time code from your phone in addition to your password, so a stolen password alone isn’t enough to get in.
In cPanel, you can usually find this under Security > Two-Factor Authentication. Scan the QR code with an authenticator app, enter the code to confirm, and save your backup codes somewhere safe. If your provider hasn’t enabled the feature, ask their support team.
3. Keep Your Website Software Updated
Short answer: Outdated CMS software, themes and plugins are a leading entry point for attackers, so update them regularly.
If you run WordPress or a similar platform, update the core software, plugins and themes as soon as stable releases appear. Delete any plugins or themes you don’t use. An inactive plugin can still be exploited if it has a known vulnerability.
Also check which PHP version your site runs on. Older, unsupported versions no longer receive security fixes. You can change it in cPanel’s MultiPHP Manager or Select PHP Version, depending on your host. If you are unsure how to do this, follow our guide on choosing and changing the PHP version in cPanel before making any changes.
4. Install and Maintain an SSL Certificate
Short answer: An SSL certificate encrypts the data moving between your website and your visitors, and it enables HTTPS.
Many hosts include free SSL through AutoSSL. Check under Security > SSL/TLS Status that every domain and subdomain is covered and that certificates renew automatically. Then make sure your site redirects HTTP visitors to HTTPS so nobody lands on an unencrypted page by accident.
5. Back Up Your Website Regularly
Short answer: Backups don’t stop an attack, but they let you recover quickly if one happens. Keep copies of your files, databases and email, and store at least one copy off the server.
Use cPanel’s Backup or Backup Wizard tools to download a full backup, and ask your host whether automatic backups are included and how long they’re kept. Test a restore occasionally. A backup you’ve never tried to restore is a backup you can’t fully trust.
6. Use SFTP Instead of Plain FTP
Short answer: Plain FTP sends your login details without encryption. SFTP or FTPS protects them.
Switch your FTP client to SFTP or FTPS where your host supports it. Delete FTP accounts you no longer need, and give each person only access to the folders they actually work on.
7. Set Correct File Permissions
Short answer: As a general guide, set folders to 755 and files to 644. Avoid 777 unless a specific, trusted application requires it.
Permissions control who can read, write or run your files. Overly open permissions make it easier for malicious scripts to change your site. Sensitive files like wp-config.php are often locked down further, commonly to 600 or 640, depending on your server setup. Check your host’s recommendations if you’re not sure.
8. Restrict Access with IP Blocking and Directory Privacy
cPanel includes several tools that limit who can reach your site:
- IP Blocker lets you block addresses that show suspicious activity.
- Directory Privacy password-protects specific folders, such as admin areas.
- Hotlink Protection stops other sites from using your images and bandwidth.
- Leech Protection can lock out accounts that share protected-area credentials.
Use them where they make sense. Not every site needs all four.
9. Lock Down Email Security
Short answer: Set up SPF, DKIM and DMARC records for your domain, and use strong passwords on every mailbox.
These records help receiving servers confirm that email from your domain is genuine, which makes it harder for spammers to impersonate you. You can find email authentication tools in cPanel’s Email Deliverability section. Remove mailboxes that nobody uses, and be wary of phishing messages that pretend to come from your host.
10. Remove What You Don’t Use
Every unused item is a possible weak spot. Review your account every few months and delete:
- Old FTP and email accounts
- Unused databases and database users
- Abandoned subdomains and addon domains
- Staging sites and test installs
- Backups sitting in public folders
11. Use Malware Scanning and a Web Application Firewall
Short answer: Malware scanners find infected files, and a firewall blocks suspicious requests before they reach your site.
Many hosts offer tools such as ImunifyAV, Imunify360 or ModSecurity. Check what your plan includes and whether they’re switched on. WordPress users can also add a reputable security plugin, though too many security plugins running together can slow your site down.
12. Monitor Your Account Activity
Short answer: Check your cPanel logs and login history for anything unusual, such as unfamiliar logins, unexpected file changes or sudden traffic spikes.
Under Metrics, you can look at raw access logs, error logs and resource usage. Sudden slowdowns, strange redirects, new admin users you didn’t create or warnings from your browser or Google Search Console are all signs worth investigating quickly.
Quick cPanel Security Checklist

What to Do If Your cPanel Account Is Hacked
- Change your cPanel, FTP, email and database passwords from a clean device.
- Contact your hosting provider. They can often help identify the cause and may be able to isolate the account.
- Run a malware scan and remove or restore infected files.
- Restore from a clean backup if you have one from before the problem started.
- Update everything and remove outdated plugins or themes.
- Check for unknown users, cron jobs and hidden files that could let the attacker return.
Choosing a Host That Supports Secure cPanel Hosting
Your own habits matter, but so does your provider. When comparing plans, check whether they include free SSL, automatic backups, malware protection, firewalls, account isolation and responsive 24/7 support. Our 15-point checklist on what to check before buying web hosting covers each of these in more detail.
If you want a plan built around these protections, explore Cyberin’s cPanel hosting plans and check the current details for security features, backups and support.
Conclusion
You don’t need to be a security expert to secure cPanel hosting. Start with the basics: a strong password, two-factor authentication, regular updates and reliable backups. Then add SSL, safer file permissions, email authentication and monitoring. Revisit the checklist every few months, because security is an ongoing habit rather than a one-time setup. A few minutes of attention now can save you days of cleanup later.
Frequently Asked Questions
1. How do I secure my cPanel account?
Use a strong, unique password. Enable two-factor authentication. Keep your website software updated. Install SSL. Set correct file permissions. Back up your site regularly. And prune unused accounts and watch your logs.
2. Is cPanel hosting secure?
cPanel has many useful security tools but overall security is dependent on how it is configured and maintained. This includes your password, software updates and the security at the server level your host provides.
3. Does cPanel support two-factor authentication?
Yes. cPanel supports two-factor authentication using an authenticator app. This can usually be enabled in Security in your account, but may not be available depending on your hosting provider.
4. How often should I back up my cPanel account?
Depends on how often you change your website For example, a blog may require backup on a weekly basis while an online store with high order volume may require backup on a daily basis. Keep one copy off the server.
5. What file permissions are safe for cPanel hosting?
Folders are generally 755 and files 644.
Do not use 777, as this will mean anyone can write to the file / folder. Some sensitive config files can be configured more securely.
6. How do I know if my cPanel account has been hacked?
Look out for the following signs: Unknown files or admin users, unexpected redirects, spam being sent from your email, browser security warnings, sudden spikes in traffic and security alerts from your host or Google Search Console.
7. What should I do first if my cPanel is compromised?
Change all related passwords from a clean device, contact your hosting provider, scan for malware and restore a clean backup. Then update your software and look for any backdoors left behind.