Skip to content
P. O. Box 6084 - 00100, Nairobi, Kenya Customer Login
Troubleshooting

My Website Has Been Hacked — What To Do Now

Spam pages in Google, redirects to betting or scam sites, strange admin users, or a warning from Google or your antivirus — these are signs your site has been compromised. Act quickly but calmly. Follow these steps in order, and contact us early: we can scan the server and help you clean up.

Time needed1–3 hours
DifficultyIntermediate
You needcPanel, WordPress and client area access
First stepTell Braysons Host support

Signs your site may be hacked

  • Visitors (especially on mobile or from Google) are redirected to other sites.
  • Google shows “This site may be hacked” or Chrome shows a red warning page.
  • Search results show pages you did not create (often pharmaceuticals, casinos, Japanese/Chinese text).
  • Unknown admin users in WordPress, or users you did not add.
  • Your hosting is sending spam (bounces you did not send, or email blacklisting).
  • Unfamiliar files in public_html — e.g. wp-xyz.php, admin.php in uploads, random-name .php files.
Changing passwords before cleaning — and hardening before reopening — stops the attacker coming straight back.
Figure 1 Changing passwords before cleaning — and hardening before reopening — stops the attacker coming straight back.

Step 1: Contact Braysons Host support

WhatsApp +254 733 338 989 (8am–10pm EAT) or open a ticket marked urgent any time. Tell us what you have seen and when it started. We can:

  • scan your account at server level and list infected files,
  • tell you how the attacker got in (from server logs),
  • restore clean files or databases from our daily backups (paid plans, kept 30 days).

Step 2: Contain the damage

  • Put up a maintenance page if visitors are being redirected to harmful sites: in File Manager, rename index.php to index.php.off and upload a simple index.html saying “We'll be back shortly.” (For WordPress, this keeps the admin reachable via /wp-admin for cleanup.)
  • Do not delete everything in a panic — evidence in logs and files helps find the entry point.
  • Download a copy of the current (infected) site for reference: Backup Wizard → Home Directory.

Step 3: Change every password

Assume all passwords connected to the site are known to the attacker. Change them from a clean, up-to-date computer:

Password Where to change
Client area client.braysons.co.ke → Hello, Name → Change Password
cPanel cPanel → Preferences → Password & Security
FTP accounts cPanel → Files → FTP Accounts → Change Password (delete unused accounts)
Database user cPanel → Manage My Databases → Current Users → Change Password, then update wp-config.php
WordPress admins WordPress → Users → each admin → Set New Password
Email accounts cPanel → Email Accounts → Manage (especially if spam was sent)

Then turn on 2FA for cPanel and the client area — see Enable cPanel 2FA.

In WordPress → Users (1), look for administrators you do not recognise (2) and delete them.
Figure 2 In WordPress → Users (1), look for administrators you do not recognise (2) and delete them.

Step 4: Remove the malware

Choose A (cleanest) if you have a backup from before the hack; otherwise B.

A. Restore a clean backup

  1. Find a backup from before the first sign of the hack. With our daily backups you can go back up to 30 days: Files → File and Directory Restoration — see Back up and restore.
  2. Restore both files and database from the same date.
  3. Immediately update everything (Step 5) — the hole the attacker used is still in the old version.

B. Clean the site

For WordPress:

  1. Delete unknown admin users (above).
  2. Replace WordPress core: download a fresh WordPress from wordpress.org and replace the wp-admin and wp-includes folders completely. Keep wp-content and wp-config.php.
  3. Reinstall plugins and themes fresh from wordpress.org or the vendor — delete the old folders rather than trusting them. Delete any you do not use, and all “nulled”/pirated ones.
  4. Check wp-content/uploads for .php files — there should be none. Delete them.
  5. Check wp-config.php and .htaccess for unfamiliar code (long encoded strings, eval(, base64_decode(, redirects to other domains).
  6. Scan: install Wordfence or Sucuri Security and run a full scan; review and clean what it reports.
Important

Malware often hides in several places and re-infects a site. If the problem keeps returning, ask us for a server-level scan, or restore from a clean backup.

Step 5: Close the hole

Step 6: Recover your reputation

  • Google Search Console: open Security & Manual Actions → Security issues. After cleaning, click Request a review and describe what you fixed. Reviews often complete within days.
  • Remove spam pages from Google: delete them (they should return 404/410), then use Search Console → Removals for urgent ones.
  • Email blacklists: check at mxtoolbox.com/blacklists.aspx; tell us if you are listed — we request delisting.
  • Tell your customers if any personal data may have been exposed. Kenya's Data Protection Act may require notifying the Office of the Data Protection Commissioner — get advice if you handle personal data.

Step 7: Keep watching for 2 weeks

  • Run security scans daily for a week, then weekly.
  • Check WordPress → Users and Plugins for changes.
  • Watch Metrics → Errors and Email → Track Delivery for unusual activity.

Frequently asked questions

How did they get in? Most commonly: an outdated plugin or theme, a pirated (nulled) plugin, a weak or reused password, or a compromised computer that stored FTP/cPanel passwords. We can usually tell from the logs.

Will restoring a backup lose my recent orders or posts? Yes — anything after the backup date is lost. Export recent orders/posts first, or choose cleaning (B) instead.

Can my site be hacked again? Only if the original weakness remains. Updating, removing unused plugins, unique passwords and 2FA close the common doors.

Tags:hackedmalwaresecurityrecoverywordpress

Figures are simplified illustrations. Your screen may look slightly different depending on your theme and the version of cPanel or the app you use.

Still need help?

Our Kenyan support team is on WhatsApp — real people, not bots. Mon–Sat, 8am–10pm EAT. Tickets are open 24/7.

Related guides

All Articles