Blog

My Website Is Hacked — What to Do Right Now

A step-by-step emergency guide to stop the damage, remove the malware, and get your site back online fast.

Discovering your website has been hacked is alarming — but the next hour determines how much damage you take. Move in the right order and you can usually save the site. Panic and delete things at random, and you can make a recoverable site unrecoverable. Here is the exact sequence we use.

1. Do not delete anything yet

The instinct is to start deleting files and reinstalling everything. Resist it. Your first job is to see what you are dealing with and preserve your backups and evidence. Deleting files before you understand the infection is how a recoverable site becomes a total loss.

2. Take the site offline now

If the site is serving malware or phishing pages, every minute it stays live infects your visitors and digs the blacklist deeper. Put it into maintenance mode, or take it offline through your hosting panel. A site that is briefly down is far better than a site that is spreading malware.

3. Back up everything — even the infected files

Before you change a single file, download a full copy of the site and export the database. An infected backup is still a backup: it lets you undo mistakes, and it usually holds the clean parts of your content you will need later. Store it somewhere offline.

4. Change every password

Assume the hacker still has a login. Change the passwords for your hosting account, FTP, database, and site admin right away. If a backdoor account still has access, whatever you clean will be re-infected the same day.

5. Find and remove the malware

Run a scanner to locate the infection. Free tools such as Sucuri SiteCheck, or Wordfence for WordPress, flag the infected files. Remove the injected code from each one, and hunt for backdoors: files you did not create, recently modified files, and administrator accounts you do not recognize. Miss one backdoor and the malware returns within hours.

6. Restore from a clean backup if you have one

If you have a backup from before the hack, restoring it is usually faster and more reliable than cleaning by hand. Replace the infected files with the clean copies, re-import the clean database, and update every password and all software before putting the site back online.

7. Update everything

Out-of-date software is how most hacks get in. Update the platform, the theme, and every plugin, and remove anything you no longer use. Every unused plugin is another door left open.

8. Clear the blacklists

Once the site is genuinely clean, the warnings do not disappear on their own. Submit a review request through Google Search Console, and request removal from each antivirus and ISP filter that flagged you. Some clear in hours, some take days — but none clear until the malware is actually gone.

9. Secure it so it does not happen again

Turn on two-factor authentication, use strong unique passwords, take scheduled backups, add a firewall and malware scanning, and limit login attempts. A site that was hacked once without these controls will be hacked again.

Do not want to do all of this yourself?

The do-it-yourself route is a full weekend or more — and every hour the site is down is an hour it is losing customers. Lunar IT Solutions removes the malware, clears the blacklists, and rebuilds the site, often in minutes, for one flat fee you approve before we start.

Get Your Free Site Analysis