Skip to main content
All insights
Security9 min readUpdated September 30, 2026

What to Do If Your Business Website Gets Hacked

The short answer

If your website gets hacked, contain it first: take it offline if it is harming visitors, and leave the infected files in place as evidence. Then change the passwords that control the site, find how the attacker got in, remove everything they added, rebuild from clean sources, and check what Google and your customers were exposed to.

By Timothy Indarsingh, Founder & CEO, Firelinkx

A hacked website is stressful because the first signs are often public: strange redirects, spam pages, browser warnings, broken forms, or customers saying something looks wrong. The worst response is panic-clicking until the obvious symptom disappears. Contain the damage first, then find the cause and bring the site back from clean sources. Google also publishes a technical recovery guide for site owners, Help, I think I've been hacked, which goes deeper into the cleanup itself.

First, contain the problem

If the site is redirecting visitors, showing malware warnings, taking payments incorrectly, or exposing private information, take it offline or put it into maintenance mode until it can be checked. A short outage is better than sending customers into a compromised site. If the issue is limited to defacement or spam pages, you may still need to restrict admin access while investigating.

Leave the infected files where they are for now. Whoever cleans the site needs them to trace the entry point.

Change the right passwords

Change them from a device you trust, and turn on two-factor authentication for each account as you go.

  • Website admin accounts.
  • Hosting control panel.
  • FTP, SFTP, SSH, or deployment accounts.
  • Database account where relevant.
  • Business email accounts tied to website admin or password resets.
  • Domain registrar and DNS accounts.
  • Connected tools such as payment, booking, CRM, or forms if they may be affected.

Remove access the attacker added

Attackers rarely rely on a single way back in. Check each of these, because any one left behind can let them return after the cleanup:

  • Admin users on the website that nobody at your business created.
  • Owners and users in Google Search Console, checked property by property, and the file or DNS record that verified each owner nobody at your business can account for.
  • Extra FTP, SSH, or database users in your hosting control panel.
  • Scheduled tasks (cron jobs) that download or rewrite files.
  • Forwarding rules and filters on the mailboxes tied to the site.
  • Sitemap lines in robots.txt that point to sitemaps you did not create.

Find the entry point

Cleaning the visible spam leaves the problem in place. The attacker may have entered through an outdated plugin, weak password, reused admin login, abandoned user account, insecure form, old theme, compromised email, or vulnerable hosting setup. If that door stays open, the site can be infected again within days.

Check every site on the same hosting account as well as the one that looks broken. On shared hosting, the sites on one account usually run as the same user, so an attacker in one can often reach the others. Sites left running after a redesign or a finished project are a common way in. List everything the account holds, including test copies and apps you forgot were there. We have seen the obvious infection sit in one site while the same account also held an older web application with a published critical vulnerability that nobody was maintaining.

Check what Google sees

Some attacks show spam only to Google while the site looks normal to you and your customers. To see what Google has stored, run a site: search for your domain, open the Security issues report in Google Search Console, and use View crawled page in the URL Inspection tool. The guide to spam pages that only Google sees walks through each check.

Treat the first scan as a starting point

Malware scanners, including the ones hosting companies run, catch known patterns, and attackers disguise their files to look like ordinary website files. Files that survived a scan and a staging copy made from an already infected site have both turned up in our cleanups. A first written report can also overstate and understate at once. In one cleanup, the first report called the backups clean with no record of checking them, and listed several empty files as live backdoors. A second, independent check tested the backups properly and changed the recovery plan.

Be careful with backups

Restoring a backup helps only if the backup is clean. If the site was hacked weeks before anyone noticed, the latest backup may contain the same infection. Pick a restore point carefully and patch the cause before putting the site back online.

Rebuild from clean sources when you move hosts

A full account backup or copy carries the attacker's files across with everything else. Rebuild from official copies of the software, a database you have checked for injected code and unknown admin users, and uploads you have verified. Then point the domain at the new site.

Check for customer risk

If the site handles payments, bookings, uploads, client records, health information, or private messages, treat the incident more seriously. Find out what data the site stores, whether it was accessed, and whether connected services were affected. This is where professional security help is worth it, because the risk extends past the website to customer trust.

Guyana's Data Protection Act 2023 sets the rules to plan for. It had not been brought into force at the last public confirmation, in May 2026. Once it is, section 65 requires a business to report a personal data breach to the Data Protection Commissioner without undue delay and, where feasible, within 72 hours of becoming aware of it, unless the breach is unlikely to put anyone at risk. Under section 66, people facing a high risk from the breach must be told on the same timetable, unless an exception applies, such as the data being encrypted. The guide to customer data privacy covers the rest of the Act.

Close old hosting properly

When the cleanup ends with closing an old hosting account, list what still depends on it first: email, other sites, and DNS records. After it closes, remove the old mail and DNS records, and publish SPF and DMARC records so mail sent from the old server is treated as unauthorised. An account you have stopped paying for still needs closing: expired hosting can go on accepting logins, and the longest-running backdoor we have found had sat on an account like that for about two years.

After the site is clean

  1. Patch the software, plugins, themes, and server configuration involved.
  2. Remove unused admin accounts, plugins, themes, and old files.
  3. Turn on two-factor authentication where possible.
  4. Set up automated backups and uptime/security monitoring.
  5. Request a review in Search Console's Security issues report if Google flagged the site.
  6. Monitor forms, redirects, and search results for a few weeks.

Prevention is cheaper than cleanup

Most small-business website hacks are automated scans looking for weak passwords, old software, and neglected sites, and they are rarely personal. A maintenance plan with updates, backups, monitoring, and account hardening is usually cheaper than emergency cleanup. Start with cybersecurity basics and website maintenance planning.

Frequently asked questions

Can I just restore a backup after a website hack?

Sometimes, but only if the backup is clean and the original weakness is fixed. If you restore an infected backup or leave the vulnerable plugin, password, or account in place, the site can be hacked again quickly.

Should I take my website offline if it is hacked?

If it redirects visitors, shows malware warnings, exposes private data, or affects payments, yes. Put it in maintenance mode or take it offline until it is checked. For minor defacement or spam, you may still need to restrict access while cleaning and investigating.

How do I stop a website from being hacked again?

Patch the cause, remove unused accounts and software, use strong passwords and two-factor authentication, keep backups, monitor uptime and security, and keep the site maintained. Most repeat hacks happen because the visible problem was removed but the entry point stayed open.

Can a hacked website harm the people who visit it?

It can, if the attacker added code that sends visitors to malicious downloads or to fake pages asking for payment or login details. Google and the major browsers may then warn people before your site loads. If customers may have typed details into a fake page, tell them which details to change.

Do I need a new domain after my website is hacked?

Usually not. Your domain carries the history that customers and Google already know, and moving to a new one starts that over. Secure the registrar account with a new password and two-factor authentication, clean the site, and ask Google to review it if it was flagged.

How do I know the cleanup worked?

Watch for the signs that started it: spam in a site: search, new unknown users, changed files, or a warning in Search Console. If none return over the following weeks and Google has cleared any security warning, the cleanup has most likely held. Keep checking now and then, because a backdoor can stay quiet for a long time.

Want your security gaps checked?

When a site is hacked, Firelinkx can take the cleanup off your hands and return the accounts behind it to your control.

WhatsApp Us