What happens when HostGator finds malware
According to HostGator’s help center, it regularly scans the websites on its servers. If it finds things like spam links, deceptive content or phishing pages, the account can be suspended. HostGator usually emails you to explain why, and you can also ask support by phone or chat.
Non-payment is actually the most common reason for a suspension, so first make sure it’s really about malware. Log in to your HostGator account directly rather than following email links, because fake suspension emails are a common phishing trick.
Your options
- HostGator’s paid security products (HostGator Malware Protection, or SiteLock on some plans) scan and clean the site for a fee.
- Clean it yourself. HostGator only needs the site to be clean before it lifts the suspension. Then you ask support for a review.
- An independent specialist. I do a full manual investigation and cleanup for $95 per site, and give you a report to send to HostGator with your review request.
Site owners regularly report being quoted several hundred dollars for a cleanup. Compare before you commit.
The HostGator infection I see most: .htaccess lockouts
A lot of infected HostGator sites show the same pattern: an .htaccess file in nearly every folder, locked file permissions, PHP files buried deep in the directory tree, and files that come back after you delete them. It’s a well-known infection type, and it’s exhausting to fight file by file. My guide to .htaccess malware in every folder explains how to remove it step by step.
The key point: stop whatever recreates the files before you delete them. That’s a running process, a cron job or a backdoor. Otherwise you’ll be deleting the same files again tomorrow.
How I clean a WordPress site on HostGator
- Read HostGator’s notice and any scan results to see what was flagged.
- Stop the reinfection source: running processes, cron jobs, and backdoors.
- Clean everything: the
.htaccesslockout, malicious PHP files, database malware, and fake admin users, replacing WordPress, plugins and themes with clean copies. - Close the entry point. It’s usually an outdated plugin. I fix it and rotate credentials.
- Help with the review. You get a clear summary to send HostGator support when you ask them to review and reactivate the account.
A typical case: a HostGator customer’s sites go down over the summer. Their error logs show HostGator’s security removing infected files, only for them to reappear. Every folder has an .htaccess file and some can’t be deleted without fixing permissions several levels deep. Two days of manual deleting later, everything is back. The fix is to stop the process that recreates the files first, then remove all copies in one go, reset permissions, and update the old plugin that let the attacker in.
This is an independent service. It isn’t affiliated with, endorsed by, or sponsored by HostGator, Newfold Digital or SiteLock. The HostGator details on this page are based on HostGator’s public help center; your account notices may differ slightly.