Website passwords and access: how to protect cPanel, FTP, and WordPress
A website is more secure when every access point has a strong, unique password, each person has their own login, and anyone who no longer needs access is removed. Most password-based break-ins happen for three reasons: weak or reused passwords, logins shared among several people, and forgotten access from people who have left the company.
This article shows how to build good passwords, which access points a website running cPanel and WordPress has, who should have each one, and how to revoke whatever is no longer needed.
How to create a strong password
- Use a long password. Length matters more than complexity. A phrase of several unrelated words, longer than 16 characters, is harder to guess than a short word with symbols.
- Never reuse passwords. If a password leaks from another service, attackers try the same email and password combination on hosting control panels and WordPress login pages.
- Avoid personal information. Company names, dates, phone numbers, family members’ names, and sequences like “123456” are the first things attackers try.
- Use a password manager. It generates, stores, and fills in long, unique passwords, and you only need to remember one master password. There are free and paid password managers. We don’t recommend any one in particular.
- Don’t keep passwords in an open spreadsheet, a WhatsApp message, or an email. If you need to send someone a login, delete the message afterward and change the password when the job is finished.
- Turn on two-factor authentication wherever it’s available. See how to turn it on in cPanel and WordPress.
cPanel and WordPress both have password generators: use them instead of coming up with one yourself.
What access points a website has
A website hosted on cPanel usually has separate access points, each with its own password:
| Access point | What it’s for | Caution |
|---|---|---|
| Hosting account (client area) | Invoices, plans, and opening support tickets | Anyone who logs in here can change account details |
| cPanel | Files, databases, emails, domains, and backups | It’s the most powerful access: it gives control over the entire site |
| FTP accounts | Uploading and downloading site files | One FTP account per person or service, limited to the folder they need |
| Email accounts | Mailboxes on your domain | Whoever controls an administrative email can reset other passwords |
| WordPress (administrator) | Plugins, themes, users, and content | An administrator can install code on the site |
| Database | Stores WordPress content | The password lives in the wp-config.php file; nobody needs to type it |
| Domain registration | Points the domain to the hosting | Whoever controls the domain controls where the site goes |
Who should have access to each one
The rule is to grant the least access that allows the job to be done, and only for as long as it’s needed.
- cPanel: only the person responsible for the website’s technical side. Writers, designers, and salespeople don’t need it.
- FTP: create one account per person or per service (the agency, the freelancer, the backup system), limited to the folder they need. See how to create and access FTP accounts in cPanel with FileZilla. Delete the account when the job is over.
- WordPress: WordPress has roles with different permissions. People who write articles can be Author or Editor. The Administrator role should be kept only for those who manage plugins, themes, and users, and the fewer administrators, the better.
- Domain registration: only the business owner or someone they designate. Also confirm in whose name the domain is registered.
- One user per person. Avoid shared logins such as “admin” or “marketing”. With one user per person, you know who made each change and can remove only the access of someone who has left.
Don’t use “admin” as a WordPress username, because it’s the first one attackers test.
How to revoke old access
Do this review whenever an employee leaves, when a contract with an agency or freelancer ends, and at least twice a year even without a specific reason.
In WordPress
- Go to Users > All Users.
- For each name, ask: does this person still work on the site? If not, click Delete. WordPress asks what to do with their posts: assign them to another user so you don’t lose them.
- Check the list of Administrators. Be suspicious of any name you don’t recognize, especially if it was created recently: an unknown administrator is a sign of a break-in.
- Lower the role of anyone who has more permission than they need.
- If the person can’t be deleted yet, change their password and, if your security plugin offers it, end their open sessions.
In cPanel
- FTP accounts: open FTP Accounts and remove the ones that are no longer used.
- Email accounts: delete or change the password of accounts belonging to people who have left. Instead of deleting, forward the email to someone else if it’s still needed.
- cPanel password: change it if someone who knew it has left. A login with no expiration date, such as a password, stops being valid only when it’s changed.
- SSH keys and API tokens: if you created them, review the ones listed in cPanel and remove those belonging to people who no longer use them.
- Support team access: when you open a ticket and share the password, change it after the support session.
Elsewhere
- Domain registration: remove delegated users and change the password.
- Google Search Console, Google Analytics, and other tools connected to the site: remove anyone who no longer needs access. They show data and, in the case of Search Console, allow changes to settings.
- Plugins that store service keys, such as payment gateways, email sending, and integrations: if someone who knew them has left, generate new keys and delete the old ones.
After revoking, change the passwords that remain
Anyone who had access knew the passwords, even after their account was deleted. That’s why, when someone with broad access leaves, you should also change the shared passwords: cPanel, the database (and update wp-config.php), shared FTP accounts, and administrative emails.
What to do if a password leaked or the site was hacked
Change the password of the affected service and of every other service that used the same one. Check for new administrator users in WordPress and for files you don’t recognize. If Google has issued a warning, see what to do when your site is flagged as dangerous. For an ongoing break-in, read how to use AI to remove viruses from a WordPress site or learn about the virus and malware removal service for hacked sites.
Frequently asked questions
How often should I change my website passwords?
Change them whenever there’s a reason: someone with access has left, a contract with an agency has ended, a break-in is suspected, or a leak has been reported. Changing them automatically without a reason often leads people to choose weaker passwords. Long, unique passwords with two-factor authentication don’t need frequent changes.
Can I share the cPanel password with the agency or the freelancer?
Avoid it. It’s better to create an FTP account limited to the necessary folder, or a WordPress user of its own with the right role. If you absolutely must give cPanel access, agree on a time limit, send it through a secure channel, and change the password when the job is done.
What’s the difference between the cPanel, FTP, and WordPress passwords?
They are independent access points, each with its own password. cPanel manages the entire hosting account, FTP uploads files to the server, and WordPress manages the site’s content and plugins. Using the same password for all three means that a leak of one exposes the others.
Is a password manager safe?
In general, it’s safer than reusing passwords or keeping them in spreadsheets, as long as the master password is long and unique and two-factor authentication is turned on for it. Choose a service with a well-known reputation.
How do I know if someone still has access to my website?
Review the user list in WordPress, the FTP and email accounts in cPanel, and the delegated users at your domain registrar. If there are names you don’t recognize, change the passwords and investigate how they got there.
Can I delete a former employee’s WordPress user without losing their articles?
Yes. When you delete the user, WordPress asks whether you want to assign their content to another user. Choose that option to keep their published posts.