A cPanel hosting account isn't usually broken into — it's logged into, using a password that was already sitting in a leaked-credentials list from some unrelated website. Automated credential-stuffing tools try millions of previously leaked username-and-password pairs against unrelated logins, and 2026 industry data has tracked that kind of traffic growing sharply year on year. A hosting account is a high-value target for it: whoever holds it can change DNS records, read every mailbox on the domain, or quietly plant code on a live website. None of that needs a sophisticated attack. It needs one reused password. This guide sets out what actually reduces that risk, roughly in order of impact, then covers the other doors into a hosting account that people forget, a step-by-step setup you can finish in an afternoon, the signs of a compromise and what to do about one, and the habits that keep the account safe after the initial setup.
Start with a password you've never used anywhere else
Password reuse is the single biggest reason hosting accounts get taken over. Security research in 2026 has repeatedly found that a large share of a typical person's passwords are shared across multiple accounts — so a leak at some completely unrelated website can hand an attacker the exact password sitting on your hosting account too, without them ever touching your host directly. A password manager solves this cleanly: it generates a long, random password for cPanel that you never have to remember or reuse, and fills it in for you. Avoid predictable patterns like a company name plus a year — those are among the first combinations automated tools try.
Turn on two-factor authentication
cPanel includes a built-in two-factor authentication (2FA) feature, usually found under Security → Two-Factor Authentication in your account. Once it's set up, logging in needs both your password and a six-digit, time-based code from an authenticator app on your phone — a code that changes every 30 seconds and that an attacker on the other side of the world simply doesn't have. This one setting is what actually stops most credential-stuffing attempts in practice: even a leaked or reused password isn't enough on its own once 2FA is switched on. Set it up once and it applies to every future login.

The other doors into a hosting account
The cPanel login is the front door, but a hosting account has several others, and an attacker who cannot get through the front will try the rest. Each has its own password and its own setting to check.
| Door | What it opens | Risk if weak | What to do |
|---|---|---|---|
| cPanel login | Everything: files, email, DNS, databases, backups | Total account takeover | Unique password, 2FA on, one login per person |
| Client area login at the host | Billing, domain settings, the ability to reset the cPanel password | Domain transferred or hosting cancelled | Unique password, 2FA if offered, contact email you control |
| FTP and SFTP accounts | Direct file access to the site | Code planted or files deleted without a cPanel login | Delete unused accounts; use SFTP; unique passwords |
| Email account passwords | Each mailbox, and anything that resets through it | Mail read or sent in your name; password resets intercepted | Unique password per mailbox; change when staff leave |
| CMS admin login (WordPress and others) | The website's content and plugins | Site defaced or redirected; cPanel untouched | Separate 2FA via a plugin; no "admin" username; keep plugins updated |
| Database users | The site's data | Data read or altered | One user per site, minimum privileges, strong passwords |
| API tokens and app passwords | Automated access for tools and integrations | Silent, long-lived access that survives a password change | Review and revoke tokens you do not recognise |
| The recovery email address | Password resets for all of the above | One compromised mailbox resets everything | Use an address with its own 2FA, that you personally control |
Give every person their own login, never a shared one
A single cPanel login shared between a business owner, a staff member and a freelance developer feels convenient right up until something goes wrong — and then there's no way to tell who made a change, and no way to remove one person's access without changing the password for everyone else too. Creating a separate login for each person who genuinely needs access keeps that control real instead of theoretical, and makes the next step possible.
Remove access the same day someone leaves
Access that isn't actively revoked tends to just sit there. When an employee, freelancer or agency relationship ends, their hosting access should be removed the same day — not "at some point," and not only once someone remembers. That includes any login they had, any email account tied to that person, and, if a password was ever shared with them directly, changing it. The same offboarding logic applies to other company tools; our guide to what happens to a digital name card when an employee leaves covers one that is often forgotten.
Check the login history occasionally
Most cPanel accounts keep a record of recent logins, including the date, time and IP address. Glancing at it every so often — especially after finishing a project with an outside developer, or after any password change — is a quick way to catch unauthorised access early: a login from an unfamiliar location, or at a time nobody on the team was working, is worth investigating immediately rather than assuming it was nothing.
Securing the account in one afternoon, step by step
- Install a password manager and generate a new, unique cPanel password; save it there.
- In cPanel, open Security → Two-Factor Authentication, scan the code with an authenticator app, and save the backup codes somewhere safe and offline.
- Do the same for the hosting client area login and the recovery email address.
- Open the FTP Accounts tool and delete every account you do not recognise or no longer use.
- Open Email Accounts and change the password on any mailbox that has ever been shared or belonged to someone who has left.
- Open the CMS admin, enable 2FA through a plugin, rename or replace any "admin" user, and remove users who have left.
- Check the API tokens and app passwords page and revoke anything unfamiliar.
- Confirm the contact email on the hosting account and the domain is one you personally control.
- Switch on domain lock at the registrar; see domain lock explained.
- Write down who has which login, so the next offboarding is a checklist rather than a memory test.
If something looks wrong, act immediately
If you suspect an account has been accessed by someone else, change the cPanel password straight away, from a device you trust. Then check for anything that wasn't set up deliberately: new email forwarders or auto-responders (a common way a compromised mailbox gets used quietly), unfamiliar files, or cron jobs nobody on the team recognises. Contact your hosting provider's support team to help review the account — the sooner unauthorised access is found, the smaller the damage.
Signs of a compromise, and what each one means
| Sign | What it usually means | First action |
|---|---|---|
| A login in the history from a place or time nobody recognises | Someone else has the password | Change the password, enable 2FA, review everything below |
| New email forwarders or auto-responders you did not create | A mailbox is being read or used quietly | Delete them, change the mailbox password, check sent items |
| Files you do not recognise, or recently changed files you did not touch | Code may have been planted on the site | Restore from a backup taken before the change; ask the host to scan |
| Cron jobs nobody set up | A scheduled task is running for someone else | Delete it, then look for what it was running |
| DNS records changed | Traffic or email may be redirected | Restore the records; check the client area login too |
| Customers report spam or strange emails from your domain | A mailbox or the server is sending on someone's behalf | Change all mail passwords; ask the host to check the mail queue |
| The site redirects visitors elsewhere, or shows a browser warning | The site has been altered | Restore from a clean backup, then close the way in before relaunching |
| A password reset email you did not request | Someone is trying the recovery route | Do not click; secure the recovery mailbox with 2FA |
Restoring from a backup is only half the fix: if the password or the plugin that let the attacker in is unchanged, the same thing happens again within days. Our backup guide covers how to restore to a clean copy.
Keeping it secure after the setup
- Review access quarterly. Who has a login, and do they still need it?
- Offboard on the day. Remove logins and change shared passwords the day someone leaves.
- Keep the CMS updated. Outdated plugins are the usual way into a site that has 2FA on cPanel.
- Glance at the login history monthly. It takes thirty seconds.
- Keep backup codes somewhere safe. Losing the authenticator phone without them locks you out too.
- Treat password-reset emails with suspicion. Go to the site directly rather than clicking.
Common mistakes
- Reusing the business email password for cPanel. One leak opens both.
- Sharing one login with the whole team. No audit trail, no clean offboarding.
- Leaving a departed developer's FTP account in place. It works for years after they leave.
- Assuming cPanel 2FA covers WordPress. It does not; the CMS needs its own.
- Skipping the backup codes. A lost phone becomes a lockout.
- Putting the recovery email on a mailbox anyone can reset. The weakest link resets the strongest.
- Restoring a hacked site without closing the hole. It is reinfected within the week.
Where Gotka Technologies fits
Gotka's Cloud Hosting plans run on cPanel over LiteSpeed servers, with free SSL, daily backups and free migration included, and 24/7 support to fall back on if something looks wrong. For businesses that want that monitoring done for them rather than checked manually, the Care Basic plan adds ongoing uptime and security monitoring on top of hosting, alongside a monthly health-check email. If you're still finding your way around the control panel itself, our plain-language guide to what cPanel actually lets you do is a good place to start.
Key terms used in this guide
- Credential stuffing: an automated attack that tries username-and-password pairs leaked from one site against logins on others.
- Two-factor authentication (2FA): a login that needs a password plus a second proof, usually a time-based code from a phone app.
- Authenticator app: a phone app that generates the six-digit codes used for 2FA.
- Backup codes: one-time codes issued when 2FA is set up, for logging in if the phone is lost.
- Password manager: software that generates and stores a unique password for every account.
- FTP and SFTP: ways of transferring files to and from the server; SFTP is the encrypted version.
- Cron job: a scheduled task that runs on the server at set times.
- Email forwarder: a rule that sends copies of incoming mail to another address.
- API token: a long-lived key that lets software access the account without a password.
- Login history: cPanel's record of recent logins with date, time and IP address.
Does cPanel support two-factor authentication?
Yes. cPanel includes a built-in two-factor authentication feature, usually found under Security → Two-Factor Authentication in your account. Once turned on, logging in needs both your password and a six-digit, time-based code from an authenticator app on your phone. This single step blocks the vast majority of automated account-takeover attempts, which rely on a password alone — even one that's leaked or reused elsewhere.
What's the single most important thing to do first?
Turn on two-factor authentication and make sure your password isn't reused anywhere else. Most hosting account takeovers don't involve a flaw in the hosting platform at all — they involve a password that was already exposed in an unrelated data leak and then tried against your login automatically. Those two steps together close off that entire category of attack.
How do I know if someone else has accessed my hosting account?
Check your cPanel login history occasionally — most accounts keep a record of recent logins with the date, time and IP address. An unfamiliar IP address, a login at a time nobody on your team was working, or account changes you don't remember making, such as new email forwarders or altered DNS records, are all signs worth investigating immediately.
Should every staff member have their own cPanel login?
Yes. A shared login means there's no way to tell who made a change, or to revoke one person's access without changing the password for everyone else too. Creating a separate login for each person who needs access — and removing it individually when someone leaves — keeps access control actually usable rather than theoretical.
What if I lose the phone with my authenticator app?
Use the backup codes that cPanel issued when 2FA was set up; each one works once. If you did not save them, your hosting provider's support team can verify your identity and reset 2FA on the account, which takes longer. Store the backup codes somewhere safe and offline the day you enable 2FA, and set up the authenticator on a second device if the app allows it.
What should I do if I think my hosting account has been compromised?
Change your cPanel password immediately from a device you trust, then check for anything you didn't set up yourself — new email forwarders or autoresponders, unfamiliar files, or cron jobs you don't recognise are common signs of misuse. Contact your hosting provider's support team for help reviewing the account; Gotka customers can reach support through the client-area ticket system.
Does turning on 2FA in cPanel also protect my WordPress admin login?
No. cPanel's two-factor authentication only protects the cPanel account itself, not a WordPress or other CMS admin login running on top of it, which needs its own separate 2FA setup, usually through a plugin. Securing both matters: cPanel access controls the whole hosting account, while a WordPress login only controls that one website.
cPanel Hosting Explained: What the Control Panel Actually Lets a Non-Technical Owner Do
cPanel is the dashboard behind most hosting plans, including Gotka. What a non-technical business owner can actually do with it, without calling support.
HostingWhat to Check on Your Hosting Account in the First Week After You Sign Up
A first-week checklist for a new hosting account: confirm free SSL, set up email, find your daily backups, learn cPanel and know where to raise a ticket.
HostingHow to Choose the Best Web Hosting in Malaysia for Your Business (2026 Guide)
Compare hosting types, uptime, speed and pricing to choose the right web host in Malaysia — plus why LiteSpeed cPanel hosting wins for growing businesses.


