WEBSITE RECOVERY
cPanel Hacked Website Recovery: A Practical UK Business Plan
Recovering a hacked website in cPanel requires checking the hosting account as well as the website files. Preserve evidence, secure account access, rebuild or restore from a verified clean point, close the entry route and test the complete service before reopening it.

Start with the account, not just public_html
A website can look normal while an attacker still has another route into its hosting account. Treat the cPanel account as a collection of related services: websites, databases, mailboxes, deployment access and scheduled work. A cleanup confined to the homepage cannot establish whether those other services remain trustworthy. Start a written incident record with the discovery time, affected domains, reported symptoms and people authorised to make changes.
Use a known clean computer to contact the hosting provider through its genuine support channel. Ask the provider to preserve available authentication, web, file-transfer and mail logs before their retention window expires. Explain whether the incident affects one domain or several. On shared hosting, the provider may hold evidence and account controls that are unavailable in your own panel.
Contain exposure and establish trusted access
- If visitors are being redirected, shown malware or asked to submit information to an unsafe form, restrict the affected application using a provider-supported control or a clean maintenance response. Do not leave a compromised checkout running during investigation.
- Secure the email account used for hosting password resets, then recover the hosting account. Change credentials from the trusted device and enrol available multi-factor authentication. Review recovery contacts and remove unrecognised access after recording it.
- Inventory FTP/SFTP access, SSH keys, deployment credentials and panel API tokens. Revoke unneeded or unexplained access, then replace credentials used by legitimate services in a planned sequence.
- Ask the provider whether the account has been suspended, whether neighbouring domains are affected, and which restoration or malware-investigation services are available. Record who is responsible for each action.
Changing the website administrator password is useful but does not reset every hosting or integration credential. Keep a change register so a repaired deployment does not accidentally reuse an old password from an agency notebook or automated task.
Select a clean recovery point and restore the right components
cPanel documents separate backup and restoration capabilities; a full account backup is not interchangeable with every partial restore option. Confirm with the provider exactly what a proposed restore will replace. Files, databases, mail and account configuration can have different dates and scopes. Choose a recovery point based on the earliest credible compromise evidence, rather than simply selecting yesterday's backup.
| Question | Why it changes the plan |
|---|---|
| Does the backup predate the intrusion? | An older timestamp alone does not establish that it is clean. |
| Will the database also be restored? | Content, user accounts and injected settings may live there. |
| What legitimate activity will be lost? | Orders, enquiries and edits may need careful reconciliation. |
| Is a clean software rebuild available? | Trusted packages can be safer than retaining unknown executable files. |
When clean backups are unavailable, reconstruct the application from trusted releases and reviewed project source, then import only validated business data and media. Do this in an isolated recovery environment. A backup is a recovery input, not proof that the original weakness or unauthorised access has disappeared.
Relaunch with business tests and a monitoring owner
For example, a small consultancy might restore its brochure site successfully but discover that its enquiry form still points to an unauthorised mailbox. In that hypothetical case, the visual restoration has succeeded while the business workflow remains compromised. Test the actual enquiry delivery and recipient configuration before declaring recovery complete.
- Open key pages in a clean browser, including direct links and search-result entry paths.
- Check response codes, canonical URLs, redirects and certificate validity.
- Submit agreed test enquiries using synthetic information and confirm receipt through the intended route.
- Review new privileged accounts, files, scheduled tasks and outbound mail after reopening.
- Keep the incident copy, change log and provider confirmation in restricted storage according to your retention policy.
Assign a named monitoring owner and a review date. Escalate if files return, the account cannot be secured, suspicious activity predates available logs, or the business processes sensitive information. CyberXperts can help structure a cPanel hacked website recovery investigation, but an assessment must establish the scope before anyone promises a completion time.
Frequently asked questions
Will restoring public_html remove every part of a cPanel compromise?
No. Website files are only part of the account. Database content, credentials, scheduled tasks and other account services need their own review, particularly when the initial access route is unknown.
Can I restore a full cPanel backup myself?
It depends on your hosting permissions and the restore feature available. Ask the provider to confirm the supported method, scope and consequences before overwriting the account; partial and full account restores are different operations.
Should I delete suspicious files immediately?
Preserve relevant evidence first and assess the files in an isolated environment. Immediate containment may be necessary to protect visitors, but an unexplained file should be investigated before a broad deletion damages legitimate application functions.
Does a clean malware scan mean the hosting account is safe?
It is one useful result within a wider assessment. It does not establish that every credential, configuration change, database record and neighbouring website has been reviewed or that the entry route is closed.
When should a business ask the host for urgent help?
Escalate when access is lost, more than one domain is affected, malicious activity keeps returning, or evidence suggests a breach beyond the individual application. Ask the host to preserve logs while access is being recovered.
Sources and further reading
Official documentation and advisories supporting the technical points above. The recovery workflows and examples are editorial guidance for adapting to your own systems.
- cPanel: What can be done if a cPanel account is compromised? — accessed 22 October 2026
- cPanel: Backup for cPanel — accessed 22 October 2026
- cPanel: Cron Jobs — accessed 22 October 2026
Get practical support for your next step.
Tell CyberXperts what happened, which systems are affected and what you have already checked. Do not include passwords or sensitive incident evidence in the initial form.
Discuss your website security