
You open your website one morning and something is wrong. Visitors are sent to a strange page, Google shows a red warning, or your own site looks like a shop selling things you never sold. This guide shows you what to do when your website gets hacked in plain steps: stay calm, lock the attacker out, clean the site, and ask Google to remove the warning.
How to Tell If Your Website Is Hacked
Most small business websites are hacked by automated programs, not by a person who chose you. The programs scan millions of sites looking for known weaknesses: an outdated plugin, a weak password, a theme nobody updated. If your site has one, it becomes a target.
The signs your website is hacked are usually plain. A hacked website warning is the clearest one: Google shows "This site may be hacked" in the search results, or your browser shows a red "Deceptive site ahead" page. Visitors get sent to a different website, often a scam or pharmacy page, and the redirect sometimes only happens for visitors coming from Google or only on phones. Your Google results show pages in another language or for products you never sold. Your hosting company emails you about malware or suspends your account. New admin users appear that you never created. Your site runs very slowly, or customers say their antivirus warned them.
One sign on its own is not proof. Check two or three signs together before you act. And watch out for one trap: an email saying "your website has been hacked" and pushing you to click a link may itself be a scam.
Before You Start: The 5-Question Test
Answer these five questions honestly.
- Do you know who hosts your website and how to reach them?
- Do you know where your backups are and how far back they go?
- Do you know who has an admin login to your website, by name?
- Do you have a way to change your passwords from a device you trust?
- Have you checked your website in Google Search Console in the last month?
Three or more no answers means you are starting from behind. This guide walks you through the recovery anyway, one step at a time.
What to Do When Your Website Gets Hacked in 7 Steps

Follow these seven steps in order. The natural reflex is to delete everything suspicious at once, and that is exactly what you should not do. Clean up first and you destroy the traces that show how the attacker got in.
Step 1: Stay calm and keep notes
Write down, with times, what you noticed, whom you told, and what you did, plus screenshots of anything strange. You will need these notes for your host and your web person.
Step 2: Save a copy before you touch anything
This sounds backwards, but download a full copy of the infected files and the database now. That copy preserves content you might lose and gives you evidence to trace how the attacker got in. Label it clearly as infected and store it apart from your clean backups. Ask your host for the recent server logs too, because many hosts keep them for only a few days.
Step 3: Take the site offline for now
If the site serves malicious code or sends visitors to scam pages, switch it to maintenance mode. That protects your visitors and stops the attacker from carrying on. If you cannot log in at all, ask your host to suspend public access for you.
Step 4: Call your host and your web person
Your host can see things you cannot, and has often already reacted. Tell them you think you have been hacked. Many hosts can scan for malware, take the site offline temporarily, or restore a backup. If an agency or a web person looks after your site, tell them at the same time. If your site is built on a site builder such as Wix or Squarespace, the platform's support team is your first call.
Step 5: Change every password from a clean device
Assume every password the site touches is known. Change the logins for the website admin area, the hosting account, the database, the file access, the domain management, and the mailbox used for password resets. Do it from a different computer or your phone, because malware on your work computer will simply capture the new password too. Switch on two-factor sign-in wherever it is offered, which means a second code on top of the password. If you reused any of these passwords elsewhere, change them there too.
Step 6: Clean the site or restore a backup
There are two ways to get the site clean. To restore website from backup is the fastest route when you have one: pick a backup from well before the first symptom, because some infections sit quietly for weeks, and load it on a staging copy first if your host allows it, scan it, and only then push it live. A restore wipes every post, order, and comment made after that backup date, and it does not fix the hole the attacker used. To remove malware from website files by hand is the route when no clean backup exists: replace the core files with fresh copies from the official source, reinstall every plugin and theme from the official source, delete anything you do not recognise, and search the uploads folder for script files, because that folder should only hold media. Whichever route you take, go through every admin and editor account and delete any name you do not know.
Step 7: Find how they got in and close it
The most important question during cleanup is not "what did the attacker leave behind?" but "how did they get in?" Typical answers are an outdated plugin, a guessed or reused password, a stolen account, or outdated server software. Start with your access logs and error logs in the hosting panel and look for a spike in requests or login attempts from unusual places. Then look at what changed around that time. As long as that question is open, any cleanup is only temporary. If you cannot answer it, that is the point to get professional help.
How to Tell Google Your Site Is Clean
If Google has flagged your site, the hacked website warning does not disappear on its own once the site is clean. You have to ask Google to check again. Open Google Search Console and go to the google security issues report, which names the problem and gives sample pages. The problem has to be fixed across the whole site, not just on the pages listed. Fix every reported issue, close the hole, and test your fixes. Then click "Request review" and describe what the problem was and what you did about it. Do not submit a second request until the decision arrives by email. Google states that reviews take from a few days to a few weeks. Without a Search Console account, you can look up your domain's current status in the Site Status tool of the Google Transparency Report. If spam pages got into Google's search results, Search Console also lets you request their removal.
Do You Need to Tell Your Customers?
If the hack exposed visitor data such as emails, passwords, or payment details, you need to tell the people affected. In many places it is also a legal duty. In Europe, for example, the GDPR gives businesses 72 hours to report a breach of personal data to the data protection authority. Keep the notice plain and honest: what happened and roughly when, what type of data got exposed, what you did to fix it, and what users should do now. Hiding a breach almost always backfires harder than admitting it. If you are not sure whether the law applies to you, ask your web person or a lawyer.
A Worked Example: A Bakery That Got Its Website Back

A small bakery had a problem many shops share. One Monday morning the owner found her website redirecting visitors to a pharmacy page, and Google showed a red warning above her business name. She had not updated her plugins in months.
She followed the steps in order. First she wrote down what she saw and took screenshots. Then she called her host, who confirmed the hack and suspended the site. She changed every password from her phone. Her host restored a backup from two weeks before the first symptom, on a staging copy, and she checked it before it went live. Then she updated every plugin and the theme, deleted three plugins she no longer used, and removed one admin user she did not recognise. Finally she asked Google to review the site, and the warning came off a few days later.
The website did not change its look. It changed its habits: weekly updates, a different password for every login, and two-factor sign-in.
After It Is Clean: A Simple Plan for the First Week
Follow this plan day by day. A hacked website recovery is not finished when the warning comes off. It is finished when the site stays clean.
Day 1: Check the site on your phone and your computer. Open the homepage and two inside pages in a private window, and check that no redirect remains and no warning shows.
Day 2: Check the user list and the plugins. Each account must belong to a person you know, and each plugin to a job you still need.
Day 3: Update everything. Update the website platform, every plugin, and the theme. Delete anything you do not use.
Day 4: Test a backup restore. Ask your host to confirm the latest backup works and how far back it goes.
Day 5: Turn on two-factor sign-in everywhere. Website admin, hosting account, domain registrar, and email.
Day 6: Set up a monthly reminder. One afternoon a month to review users and test a backup.
Day 7: Rest, then repeat. Next week, check the site once more.
What to Ask Your Web Person
If someone else built your website, keep these four questions in writing.
- Which weakness was the way in, and how did you close it? Ask for the answer in writing.
- Which backup was restored, and from what date? Ask them to confirm the backup predates the first symptom.
- Can you show me that the site is clean? Ask for a scan report and a check of the user list, the files, and the database.
- What will you change so it does not happen again? Ask for updates, backups, and two-factor sign-in to be checked every month.
If Someone Else Built Your Website
Before you ask for changes, check that you own your domain name, your website, and your Google Search Console account. If someone else set them up, ask them to confirm in writing that they are in your name. If you are not sure, start with our guide to choosing a domain name for a small business.
Mistakes That Turn a Bad Day Into a Bad Month
Deleting everything in a panic. Wiping the site destroys the evidence of how the attacker got in. Save a copy first, then clean.
Restoring a backup and moving on. A restore brings back the same vulnerable plugin or weak password the attacker used. Patch the entry point and change all credentials.
Changing passwords from the infected computer. If malware sits on your work computer, it captures the new password too. Change passwords from a clean device.
Asking Google for a review before the site is clean. Clean first, test, then request.
Forgetting the backdoor. Attackers often leave a quiet way back in, such as a hidden admin user or a script file in the uploads folder. If you do not remove malware from website files completely, the next hack is already scheduled.
Telling nobody. A hack you hide from your host, your web person, and your customers gets fixed slowly and badly. Tell the people who can help, and tell the people whose data was exposed.
Frequently Asked Questions
How do I know if my website is hacked?
The signs your website is hacked include a red warning in Google or your browser, visitors sent elsewhere, and spam pages in Google results under your domain. Check two or three signs, and run your domain through a scanner to confirm.
Should I restore from a backup or clean the site by hand?
With a backup from before the attack, restore website from backup to staging, scan, patch, then push it live. If no clean backup exists, clean it by hand: replace core files, reinstall plugins and themes from official sources.
How long does it take to fix a hacked website?
A simple restore from a clean backup can take under an hour. A manual cleanup of a heavily infected site can take one to three days. Getting off Google's warning list adds a few more days.
Will my website lose its Google rankings after a hack?
Rankings dip while warnings show or spam pages sit in the index. Once you clean the site, pass the google security issues review, and remove the spam pages, most sites recover in a few weeks if the site stays clean.
Why does my website keep getting hacked after I clean it?
Usually a backdoor survived, often a script in the uploads folder or a hidden admin user, or the weakness never got fixed. Recheck uploads folder, replace security keys, confirm plugins run the latest version, and find the entry point.
Do I need to tell my customers my website was hacked?
Yes, if the hack exposed visitor data such as emails, passwords, or payment details. Keep the notice plain and honest: what happened and roughly when, what type of data got exposed, and what users should do now.
That is hacked website recovery in plain words: stay calm, save a copy, take the site offline, call your host, change every password from a clean device, clean the site or restore a backup, and close the hole. Start today by writing down who hosts your site and where your backups are.
If you would like help recovering or rebuilding your website, talk to us on WhatsApp, call +8801735127127, visit our Contact page, or write to info@raozanit.com.
Related readings:
Written by Raozan IT
0 Comments