How to get your hosting account unsuspended after a WordPress hack
You get the account back by proving the backdoor is gone. Restore a clean backup, remove the malicious files and database entries, and hand your host a short written report showing what was infected and how you fixed it.
Key takeaways
- Hosts lift suspensions on evidence, not promises, so send a written report naming the infected files and the fix applied.
- Isolate the site and snapshot the current state before cleaning to preserve proof of what the attacker changed.
- Free scanners only flag known threats, so manually check for obfuscated code and injected database entries.
- Clean the database as well as the files, because injected script tags in posts will reinfect the site.
- Submit the Google review request only after confirming the warning is gone in an incognito window.
What your host actually needs to lift the suspension
Hosts suspend on a malware verdict, not on a promise. They lift it on evidence. Send a short written report that names what was infected, the file paths, and the fix you applied. Include a clean scan result from a tool the host recognises. State the date and time you restored the clean backup. Ask for the suspension to be reviewed in writing, not by phone.
Suppose your host flagged a redirect to a gambling domain. Your email should say: "On 14 March at 09:12 I restored the database and files from the 12 March backup. The infected file was wp-content/uploads/2026/03/track.php. I removed it and ran a clean scan with [tool name]. The site no longer redirects. Please review the suspension." That is the shape of the evidence packet.
Isolate the site before you touch anything
Take the site offline or put it behind a maintenance page so no visitor hits the malware. Do not log in from the infected machine; use a clean device. Snapshot the current state, files and database, as evidence before cleaning. Change the WordPress admin password and any FTP or database credentials immediately.
If you skip the snapshot, you lose the proof of what the attacker changed. If you log in from the infected machine, the backdoor may re-establish itself through your session.
Find the backdoor the scanner missed
A free scanner only flags what it already recognises. A new backdoor stays hidden. Check for recently modified PHP files in wp-content, wp-includes, and the root directory. Look for obfuscated code: long base64 strings, eval() calls, or gzinflate() calls. Check the database tables wp_options, wp_users, and wp_posts for injected scripts or spam links. Compare file hashes against a known-clean backup to spot the changed files.

A worked example: you sort wp-content/uploads by modification date and find a file called "cache.php" modified at 03:14 the night of the hack. Open it and see a base64_decode() call wrapping an eval(). That is the backdoor. Delete it and note the path for your host report.
Clean the database, not just the files
Malware often lives in wp_options, for example a hijacked home URL, and in post content. Search the database for known spam domains and injected script tags. Remove any rogue admin users added by the attacker. Restore the database from a clean backup taken before the hack, then re-apply legitimate changes.
If you only delete the malicious PHP file and leave the injected script tag in a post, the site will reinfect the next time that post is rendered. The database is part of the infection, not just the file system. For a step-by-step on the database side, see How to clean a hacked WordPress database.
Request the Google review and remove the warning
After the site is clean, submit a review request in Google Search Console. Confirm the site no longer redirects to spam or gambling pages. Check that the red "this site may harm your computer" warning is gone in an incognito window. If the warning persists, resubmit and note the date of the fix.
Do not submit the review until the incognito check passes. A premature submission delays the next review and keeps the warning visible to visitors.
Harden the site so the host does not re-block your IP
Update WordPress core, all plugins, and themes to the latest versions. Remove any plugin that has not been tested with the last two major WordPress versions; WordPress.org displays a warning in the plugin directory when a developer has not done this [1]. Enable two-factor authentication for every admin account. Set up automatic off-site backups so the next clean restore is one click.
With over 78,000 plugins available on WordPress.org [1], the attack surface is large. For a full hardening checklist, see How to harden WordPress against reinfection after a hack.
When to pay a fixer and what to check first
If you cannot find the backdoor after a full file and database audit, brief a fixer. Ask for the scope, price, and turnaround in writing before any chargeable work starts. Confirm they will remove the backdoor, not just the visible redirect. Get a written report of what they changed so you can verify the fix.
A fixer who only removes the redirect leaves the backdoor in place. The site reinfects, and the host suspends it again. The written report is your proof that the backdoor was found and removed.
Prevent the next hack before the host notices
Keep PHP at version 8.3 or greater, as WordPress recommends [2]. Run a scheduled malware scan and review the results weekly. Monitor for new admin users and unexpected file changes. If you move to managed hosting, confirm it includes malware removal and backups. WordPress.com, for example, provides active protection against hacks and spam, including backups and malware removal, on every paid plan [3], and offers site recovery and expert support [3].
If you want the full checklist, file paths, and database queries in one document, the WordPress Hack Recovery Guide pack walks through each step above with screenshots and copy-paste commands.
Frequently asked questions
What does my host need to lift the suspension?
Send a short written report that names what was infected, the file paths, and the fix you applied, including a clean scan result and the date you restored the backup.
Why did the free scanner miss the hack?
A free scanner only flags what it already recognises, so a new backdoor stays hidden until you manually check for obfuscated code and modified files.
Should I clean the database or just the files?
Clean both, because malware often lives in database tables like wp_options and post content, and leaving injected script tags will reinfect the site.
When should I pay a fixer?
Brief a fixer if you cannot find the backdoor after a full file and database audit, and ask for the scope, price, and turnaround in writing before work starts.
Sources
- WordPress – Wikipedia (en.wikipedia.org)
- Download WordPress.org (wordpress.org)
- WordPress.com: Everything You Need to Build Your Website (wordpress.com)
Related on this site
- How to clean a hacked WordPress database
- How to harden WordPress against reinfection after a hack
- How much does WordPress maintenance cost to prevent a hack
- Website hack downtime cost calculator – free calculator
This article was drafted with AI assistance and checked before publication.
Free calculator: Website hack downtime cost calculator
The full guide: WordPress Hack Recovery Checklist
