Hacked Website? What Business Owners Should Do in the First 24 Hours

Short answer
Hacked website: what should you do first?
With a hacked website, stay calm and keep the order: change every access password, put the site into maintenance mode, save a copy of the current state as evidence, and tell your hosting company. Cleanup and the Google review request come after those four steps, because deleting files in a hurry also deletes the trail.
A hacked website usually announces itself in an ugly way: a strange redirect, pages you never wrote, or a red browser warning in front of your customers. We wrote this guide for the business owner, so it skips developer jargon. It walks through the first 24 hours in order, shows what you can handle yourself, and explains the routine that keeps the problem from coming back. Free helpers such as our password generator appear inside the steps where you actually need them.
That order is not arbitrary, because each step protects the next one. Google's own recovery guide for hacked sites follows the same logic: stop the damage, then measure it, then clean it. As the owner, you do not have to read code. Instead, you need to know which stage you are in and ask the right person the right question.
The rest of this article opens up each step. If your hacked website is costing you sales right now, jump to the 24-hour table and then come back. Still, read the symptoms section first, because not every odd behavior means an attack.
What are the signs that someone broke into your site?
Owners rarely spot the problem themselves, because a customer or an employee usually reports it first. Take each sign below seriously, but treat none of them as proof on its own.
- Unexpected redirects. A visitor opens your site and lands somewhere unrelated, often only on mobile or only when coming from Google.
- Foreign pages: search results show pages under your domain in a language or on a topic you never published.
- Browser or Google warnings: the browser shows a full-page warning, or a security note sits next to your result in search.
- Hosting suspension: your hosting company emails you to say it has suspended the account.
- Unknown users: an administrator account you did not create sits in the admin panel.
- Unexplained changes: homepage text looks different, forms send to another address, or email leaves your site that nobody on your team sent.
A browser warning has its own types and its own removal process, so we cover it in a separate article. Our guide to the Chrome dangerous site warning covers what that screen means.
Is it really an attack or just an ordinary fault?
A site that will not load, a white screen, or an expired certificate usually points to a fault, so do not assume a hacked website yet. Spend a few minutes confirming before you start cleaning, so you do not fight the wrong problem.
- Open the Security Issues section in Google Search Console if your site has a property there. When Google detects a problem, it shows the issue with example URLs.
- Search Google with the site: operator followed by your domain. Titles you do not recognize among the indexed pages are a strong signal, because attackers often add pages of their own.
- Inspect a suspicious address with the URL Inspection tool, because some hacked sites show Google one thing and visitors another.
- Paste your address into our free redirect checker and see whether the chain ends on a domain you do not know.
- Open the site from another device, on mobile data, in a private window. If the problem shows only on your computer, then a browser extension may be the cause.
No Search Console property yet? Setting one up now still helps. However, you may not see older alerts. If unknown addresses show up in search but you cannot find matching files on the server, our article on unknown spam URLs in Search Console deals with that specific case.
What order should the first 24 hours follow?
Read the table below as a priority order, because it is not an hour-by-hour schedule. A small site can get through all of it in an afternoon, while cleanup on a complex setup can stretch over days.
| Order | Step | Who can do it | Why at this point |
|---|---|---|---|
| 1 | Renew every access password | Business owner | Closes the attacker's open door |
| 2 | Put the site into maintenance mode | Owner or hosting support | Protects visitors and your reputation |
| 3 | Save a copy and evidence of the current state | Hosting support or a technical person | Gives you a way back if cleanup goes wrong |
| 4 | Notify the hosting company | Business owner | Opens access to server logs and support |
| 5 | Assess the damage and find the entry point | Technical person | Defines what you need to clean |
| 6 | Clean up or restore a clean backup | Technical person | Repairs without leaving remnants |
| 7 | Request a review from Google | Owner or technical person | Required before warnings disappear |
| 8 | Legal assessment if customer data is involved | Owner and legal counsel | A notification duty may apply |
You can run the first four rows yourself without technical knowledge. Rows five and six require reading code and using server tools, so that is the point where you need an honest decision about who does the work.
Which passwords should you change, and in what order?
Passwords come first because any cleanup can unravel while the attacker still has a way in. Google's guide says to change passwords for all site users and accounts, including FTP, database access, system administrator, and content management system logins.
The order matters, so start at the top and work down:
- The account that holds your domain name, and the mailbox tied to that account.
- The hosting control panel.
- FTP accounts, plus SSH accounts if you have them.
- The database user. After changing it, you also need to update the value in the site's configuration file.
- Every user in the admin panel. Then delete the accounts you do not recognize.
- Keys for third-party services connected to the site, such as payments, email sending, and analytics.
Create a separate password for each account, because one leaked password should never open a second door. In practice, open our free strong password generator, raise the length, and leave uppercase, lowercase, digits, and symbols switched on. Check that the strength meter reaches its top tier, then copy the result straight into your password manager. The tool generates the password in your browser and sends it nowhere. Then repeat this for every account on the list, and never use one password in two places.
Renewing passwords once more after cleanup is a good habit, because the attacker may still have access during the first round.
Should you fix it yourself or hand it to a specialist?
Here is the honest answer: not every hacked website needs a professional. Google's page on building a support team says plainly what doing it yourself takes. You need to read and understand code, use command-line server tools, and possibly change web server configuration. If you or your team have those three skills, then you can keep the work in-house.
You probably do not need outside help in these situations:
- You have a clean, current backup from before the attack, and your hosting company can restore it.
- The site is a small brochure site with no memberships, payments, or customer records.
- Your hosting plan includes malware scanning and cleanup, and the support team takes ownership of the problem.
Things change when you have no clean backup, when the site holds customer data, or when the problem returns after cleanup. Trial and error makes the damage worse at that point, because every failed attempt gives the attacker more time. It is then safer to hand the job to the team that built the site, or to a professional with recovery experience who also offers web design services. Whoever you choose, ask them to identify the entry point and to give you a written summary. "We cleaned it" is not a sufficient answer, because you also need to know how it happened.
Why does the site need maintenance mode?
Every minute a compromised site stays online puts visitors at risk and wears down your reputation. Google's page on how to quarantine your site recommends taking the site offline temporarily and returning a 503 status code meanwhile. According to the same page, a short offline period is unlikely to hurt your search ranking.
Two details matter here, and both also come from Google's page. First, the 503 response has to come from outside the compromised directories, so a maintenance plugin installed inside the site may not be enough. If you do not know how to set that up, ask your hosting company for a temporary maintenance page at server level. Second, blocking the site in robots.txt does not solve anything, because that file only stops search engine crawlers. Real visitors, however, still reach the harmful content.
What the maintenance page says also matters. A short, calm, honest text is enough: the site is under maintenance for now, and here is a phone number. For the right status code and wording, see our guide to the maintenance mode page.
Why save a backup and evidence before cleaning?
Backing up a broken site sounds odd at first, but there are three reasons. If you delete the wrong file during cleanup, you can go back. You keep material for working out later how the attack happened. And if customer data is involved, you may need to document what took place.
Google's cleanup guide recommends labeling this copy clearly as infected and keeping it apart from clean backups. In practice, save the following:
- A copy of all site files and the database as they stand now, with the date and "not clean" in the name.
- Server access and error logs. Hosting companies keep these for a limited time, so ask right away.
- Screenshots of the browser warning, the foreign pages, and any Search Console message.
- A short note on when you first noticed the problem, who reported it, and what you have changed since.
Do not open or run this copy on your own computer, and do not let it overwrite your clean backups. Its only purpose is storage, so keep it somewhere separate. Also work out now when your last clean backup dates from, because the "clean or restore" decision you are about to make depends entirely on that.
What should you tell your hosting company?
Your hosting company is your most valuable ally when you deal with a hacked website. They can reach the server logs, they can see whether other sites on the same server suffered too, and sometimes they help with recovery directly. A suspended account is not a punishment, because in most cases it is a step to protect other customers.
Keep your support ticket short and specific. For example, ask these questions:
- When did you first detect the problem, and which files did you flag?
- Do you hold a backup from before the attack, and which dates can we go back to?
- How far back can you provide access logs?
- Can you set up a temporary maintenance page at server level?
- Does my plan include malware scanning or cleanup support?
- What exactly do you need from me to lift the suspension?
The answers also tell you about more than today. A company that keeps no backups, cannot provide logs, and takes days to reply is a company to reconsider once the incident is over. We are not a hosting company, so our view here comes from the outside. In our experience, the quality of hosting support shapes recovery speed more often than raw technical skill does.
How does cleanup work: restore a backup or clean by hand?
Google's guide to cleaning and maintaining your site describes three paths, and the right one depends on the backup you have.
- Clean and current backup: you restore the backup from before the attack. Then you update all software, remove what you do not use, and renew passwords.
- Clean but outdated backup: you restore and update the old backup. After that, you compare it with the infected copy and bring back only new content you are sure is safe.
- No backup: you work on the copy, not on the live server. There you first correct loose file permissions, remove files and database records the attacker added, and close the entry point.
All three paths share one point, because removing the visible damage is never enough. You also have to find how the attacker got in and close that gap. Otherwise the site returns to the same state within days, and owners often read that as "the cleanup did not work."
File-level details differ if your site runs on WordPress. We cover those steps separately in our guide on what to do when a WordPress site is hacked, so we do not repeat them here.
When does rebuilding the site make more sense than cleaning it?
Cleaning a hacked website is not always the cheapest route. On some sites you work for hours and still cannot feel sure. A clean installation then gives a faster and more reliable result. Google also recommends a clean installation over a simple upgrade, because an upgrade can leave old files in place.
Consider a rebuild seriously when you see these signs:
- The site has gone years without updates, and its software version no longer receives support.
- It relies on plugins or themes of unclear origin whose developers have vanished.
- The problem came back once already after a cleanup.
- You have no clean backup at all, and the list of changed files is very long.
- The site did not serve your business anyway: dated design, weak mobile experience, stale content.
The last point matters, so think it through. An attack can be a reasonable trigger for a redesign you kept postponing, but it should not be the only reason. If your content and domain are intact, then a rebuild does not mean starting from zero. When you go down this road, putting your requirements in writing makes proposals comparable. Our guide on how to write a website RFP gives a framework that includes security and maintenance clauses.
What does the Google Security Issues report tell you?
The Security Issues report in Search Console groups what Google found on your site into three categories: hacked content, malware and unwanted software, and social engineering. Each entry also comes with sample URLs and a link to more detail. When Google has found nothing, the report says so clearly.
Keep three things in mind as you read it. The URLs it shows are samples, not a complete list, so fixing only those pages is not enough. Instead, fix the problem across the whole site. If the report shows more than one issue, resolve all of them before requesting a review. Finally, test your fix: open the sample addresses yourself and confirm they are clean.
An empty report does not prove your site is clean, because it only means Google has not detected anything yet. On the other hand, an entry in the report can bring a warning label next to your result in search, and browsers can show visitors a full-page warning. Most customer loss from a hacked website happens during that warning period. Therefore it is better to open the report on day one than to wait until cleanup ends.
How do you request a review, and how long does it take?
For warnings to disappear, you need to ask Google for a review after cleanup. Google's guide on how to request a review sets these conditions before you apply:
- Verify ownership of the site in Search Console.
- Remove every change the attacker made.
- Close the vulnerability that let them in.
- Bring the clean site back online.
- Make sure Googlebot can crawl your pages, so remember to lift maintenance mode and any blocks.
You send the request from inside the Security Issues report. Then describe what happened, which steps you took, and the outcome. For example, state that you removed spam content and updated an outdated plugin. A short, concrete, honest text does the job, because reviewers need facts, not apologies.
Timing depends on the type of issue, so one hacked website may wait longer than another. According to Google, phishing reviews finish fastest, malware reviews take a few days, and hacked spam reviews can take weeks. Check the official page for current timings. Applying early does not shorten the process. It lengthens it, and so does sending a new request while another is pending. The decision belongs to Google, and nobody can guarantee approval.
Do you have to notify anyone if customer data is affected?
This section is not legal advice, because it only introduces the concept. If your site stores personal data such as accounts, orders, bookings, or contact form entries, and the attacker may have reached it, the incident stops being a purely technical fault. Many jurisdictions have data breach notification rules. Therefore, depending on where you and your customers are, you may have to inform a regulator, the affected people, or both.
In the United States, these rules vary from state to state. If you serve people in the European Union, the GDPR sets its own notification duties toward the supervisory authority and, in some cases, toward the individuals. We do not quote deadlines here, because they differ and change. Instead, confirm the current rule with your attorney and the relevant authority. As an owner, it is enough to know this: deadlines tend to be short, and the clock usually starts when you become aware of the breach. So do not leave the assessment until cleanup ends.
Google's guide also gives the same caution. If the attacker may have obtained users' personal information, consider your business, regulatory, and legal obligations before you delete any files. That is one reason we asked you to keep an evidence copy. We explain what data should live where, and under which protection, in our website data security guide. The compliance side sits in our article on building a GDPR compliant website.
What should you tell customers and your team?
Staying silent looks tempting in the short term, but your customer may have seen the browser warning already. Rumor fills an information gap. On the other hand, an alarming statement based on partial facts does harm as well. The right tone is calm and factual.
A good statement says four things: what happened, what you are doing now, whether the customer needs to do anything, and how to reach you. Above all, do not write as if you know what you do not know. "The investigation continues, and we will share the result" beats a reassurance you later have to correct.
Set a few rules inside the team too:
- Let one person make all site decisions during the incident.
- Do not share new passwords through a chat app.
- Have everyone who manages the site update and scan their own computer, because the entry point is sometimes the administrator's device and not the site.
- Pause ad campaigns that send traffic to the site. Otherwise you pay to send visitors to a broken page, which puts both your budget and your ad account at risk.
If customers have accounts on your site, asking them to renew their passwords after cleanup is a reasonable precaution in most cases.
How does a hacked website affect your search visibility?
The second big fear for owners is losing rankings for good. The picture is usually less dark than that, because a hacked website can recover its visibility. Clicks drop during the warning period because people avoid a result with a warning label. However, once you fix the problem and the review succeeds, the warnings go away. According to Google's guide, removal of browser and search warnings follows shortly after approval.
The slower part is getting attacker-created pages out of the index. When you delete those pages, make sure your server answers "not found" for them. Do not redirect them to the homepage, because that tells Google the addresses still matter. Over time they then drop out of the index by themselves.
After cleanup, confirm the following:
- Your sitemap contains no addresses that are not yours.
- Search Console shows no owner or user you do not recognize.
- Your title and description tags look the way you wrote them.
- Your pages are open to search engines.
Do not trust anyone who promises rankings. Instead, what you can do is keep the site clean and reachable, then give Google time to reassess it.
How do you set up an update routine that lasts?
Cleanup closes the incident, while routine prevents the repeat. Google's long-term maintenance advice is a short list. First, keep software updated and make regular, automated backups. Research the security practices of plugins and third-party software before installing them. Enforce strong passwords, keep the devices you manage the site from secure, and remove software you do not use.
Translated into business terms, you need written answers to three questions. Who runs updates, and how often? If an update breaks something, who rolls it back, and how? Where do you see proof that this work happens?
In most small businesses the answer is "nobody," because owners treat the site as finished on the day of handover. In reality a site is a living system that changes as its software changes. A monthly maintenance routine does not take a large budget, because all it needs is one responsible person and a calendar. We list what to check and how often in our monthly website maintenance checklist.
Switching on automatic updates is a tempting shortcut, and for small sites it is often the right call. Still, on sites where downtime means direct revenue loss, such as online stores, testing an update on a copy first is safer.
What should backups and monitoring look like from now on?
The clearest lesson from the incident is probably this: with a clean backup, everything would have taken far less time. A good backup routine has three traits. First, it runs automatically, so it does not depend on someone remembering. Second, it lives somewhere other than the server that hosts the site, because a backup on a compromised server is no longer trustworthy. Finally, it reaches back far enough. Owners sometimes notice an attack weeks later, and a routine that keeps only the last few days does not help then.
The fourth trait is the one people skip most: testing. A backup you have never restored is a backup you hope exists, so run a restore drill. For frequency, retention, and restore drills, see our website backup strategy guide.
On the monitoring side, the goal is to notice the problem before your customer does. A system that checks availability on a schedule and alerts you catches outages and some signs of compromise early. We describe neutral selection criteria in our article on choosing an uptime monitoring tool. Also make sure Search Console security notices go to a mailbox that someone actually reads.
How should you simplify access and accounts?
Many attacks do not start with sophisticated techniques. Instead, they start with a forgotten account or a reused password. So one of the most effective things you can do after the incident is review who has access to what.
- List every user in the admin panel and close the accounts of people you no longer work with.
- Do not give everyone administrator rights, because a person who enters content does not need to install plugins.
- Replace shared logins with personal accounts, so you can see who made a change.
- Remove access for former agencies, freelancers, and services you only tried out.
- Turn on two-factor authentication for the domain, hosting, and admin accounts.
Keeping passwords in a spreadsheet or a chat app undoes all of that effort. For shared team access, see our criteria for choosing a team password manager. For where verification codes should live, read our guide on where to keep 2FA.
Also confirm that your domain and hosting accounts sit in your name, under your email address. If they hang on the personal address of an employee or a former agency, you may not reach your own site in the next emergency.
Why are old plugins and themes such a risk?
Off-the-shelf content management systems get their flexibility from plugins and themes, and the risk comes from the same place. Core software usually receives regular updates. Meanwhile, a plugin someone installed years ago and forgot stays open like a door nobody watches. Plugins you deactivated but did not delete also remain on the server as files.
Review your plugin and theme inventory with these questions:
- Do we really use this component? If not, delete it instead of only switching it off.
- Does the developer still publish updates?
- Did we download it from an official, known source?
- Do two separate plugins do the same job?
- Could we get this feature in a simpler way, without a plugin?
Running an unlicensed copy of a paid theme or plugin from an unclear source is a risk class of its own. You cannot know what those files contain, and you also cannot receive updates. What looks like a saving can become the start of the most expensive recovery jobs.
The general principle is simple: the fewer parts your site has, the less can break, and the easier it stays current. When you ask for a new feature, put "who will keep this updated" next to "what does this gain us."
What mistakes do owners of a hacked website make most often?
The mistakes we see again and again in the field are not technical. Instead, they are mistakes of order and haste. Most come from good intentions, yet all of them lengthen the process.
- Deleting without evidence: removing suspicious files right away feels good, but it makes the entry point harder to find.
- Fixing only the visible symptom: removing the redirect without closing the gap brings the problem back within days.
- Leaving passwords for last: an attacker who still has access can undo your cleanup.
- Restoring an infected backup: if the latest backup dates from after the attack, it brings the problem back. So check the date before you restore.
- Requesting a review too early: applying before the fix is complete prolongs the warning period.
- Hiding the incident: when personal data is involved, silence increases legal risk.
- Giving access to strangers: handing an admin password to someone on social media who says "I can fix it right now" creates a second security problem.
- Going back to old habits afterward: if the routine does not change, then expect the same result.
Avoiding a second hacked website starts with taking the last item seriously. A week after the incident closes, hold a short review: how did they get in, why did we notice late, and which habit are we changing?
After a hacked website, when is outside help worth it?
If you have a clean backup, responsive hosting support, and a simple site, the steps in this guide are usually enough. The cases where help makes sense are narrower: the problem keeps returning, customer data is involved, no backup exists, or the site needed a rebuild anyway.
As Talha Aslan and team, here is what we see in incidents like this: the lasting fix usually lies in how the site was built and how it is looked after, not in the cleanup itself. If you want to rebuild on a simple, updatable, backed-up foundation, our page on business website design explains how we work. Even so, applying the checklists above to your own site first is the best place to start.



