A hacked website can send visitors to spam pages, show warnings in the browser, or lock you out of your own login. It is stressful. The steps below are in the order that works best for a small business site.
Signs your website was hacked
Some hacks are easy to see. Others stay hidden for weeks. Look for these signs:
- Your home page looks different, or shows a message from the attacker.
- Visitors land on a different website when they click your link.
- Google results for your business show odd titles, such as ads for pills or gambling, in languages you do not use.
- Chrome or another browser shows a red warning page when someone opens your site.
- Your host suspends your account or sends a malware notice.
- You cannot log in, or your password no longer works.
- Your admin area lists users you did not add.
- Customers say they got spam email that appears to come from your business.
If you see one of these, treat it as a hack until you prove otherwise.
Step 1: write down what you see
Take screenshots. Note the date and time. Save any warning emails from your host or from Google. Do not delete files yet. The host or a web designer may need this record to find how the attacker got in.
Step 2: contact your hosting company
Open a support ticket or call. Say that you think your site was hacked and give the domain name. Ask three questions:
- Can you scan the account and tell me which files changed?
- Do you have a clean backup, and from what date?
- Did anyone log in to my account from an address I do not know?
Some hosts clean the site for you. Others only suspend it until you fix it. Our guide on what website hosting is and what a small business needs explains what a host does and does not cover.
Step 3: scan your own computer and change passwords
Start with your own computer. Malware on your laptop can steal each new password you type. Run a full scan with your security software first.
Then change the passwords on every account tied to the site. Use a different password for each one.
- Website admin login
- Hosting account
- Domain registrar account
- Email accounts on your domain
- FTP or file access accounts
Turn on two-step verification wherever it is offered. Delete admin users you do not recognize. Remove accounts for people who no longer work with you.
Step 4: restore a clean version of the site
The cleanest fix is to restore a backup made before the hack. Pick the newest backup that is clean, not the newest backup. If you do not know the date of the hack, ask your host to help find it. Our guide on how to back up your small business website shows what a good backup holds.
Update right after you restore. An old backup also holds the old weakness. If you skip the updates, the attacker can walk back in through the same door.
If no clean backup exists, the site needs a manual clean. A security scanner from your host or a plugin can find changed files. Hidden files and extra admin users are easy to miss. Hire a developer if you are not sure. You can contact us if you want help with a cleanup.
Step 5: update and remove what you do not use
Most hacked small business sites run out-of-date software. Update these items:
- The website platform, such as WordPress
- Every plugin and theme
- The PHP version, if your host lets you choose
Delete plugins and themes you do not use. Inactive ones can still hold weaknesses. Replace any plugin that its maker no longer updates.
Step 6: check your email and domain settings
A hack can reach past the website. Check three things:
Email forwarding rules. Attackers sometimes add a rule that copies your mail to their address. Look at the forwarding settings in every business mailbox.
Domain settings. Log in to your registrar and confirm the DNS records and the contact email are yours. Our guide on how to find out who owns your business domain name explains the owner record.
Contact forms. If a form no longer sends mail, the cause may be a hack or a setting. Our guide on why a website contact form is not sending emails lists the checks.
Step 7: clear the warnings from Google
Once the site is clean, open Google Search Console. The Security issues report shows whether Google flagged your site. If it did, the report lets you request a review. Google then rechecks the site. Our guide on how to use Google Search Console for a small business website shows how to set it up if you have not.
Review time varies. Keep the site clean while you wait. A second infection can restart the process.
If your site is not in Search Console, add it. The tool also shows the odd pages that the attacker created, which helps you confirm they are gone.
Step 8: think about customer information
Ask whether the site held personal information. Examples include names and phone numbers from a contact form, booking details, or order records. If an attacker could reach that data, tell your host and ask what they can see in the logs.
Canadian privacy law may require you to report a breach and to notify the people affected. The rules depend on the type of business and the type of information. Check the current rules with the Office of the Privacy Commissioner of Canada or the Office of the Information and Privacy Commissioner for British Columbia. If your payment processor handled the card data, tell them too.
If customers received spam from your address, send a short note. Tell them to delete the message and not to click any link. Say what you did to fix the problem.
How to lower the risk of a second hack
Most of the work is routine. Put these tasks on a schedule:
- Update the platform, plugins, and themes each month.
- Keep automatic backups and test a restore once a year.
- Use a unique password for every account, kept in a password manager.
- Turn on two-step verification for hosting, the registrar, and the admin login.
- Give each person their own login, with only the access they need.
- Delete users, plugins, and themes you no longer need.
Our website maintenance checklist puts these tasks into a yearly and monthly plan.
If the site keeps getting hacked after a restore, the cause is still on the server. Ask your host for help or hire a developer to do a full review. A rebuild on a clean account is sometimes faster than chasing each infected file.