My Website Was Hacked: What to Do Now (and How to Prevent It)

Admin8 min read2 views
Hooded programmer intensely focused on computer screen, ensuring data protection and cyber security.

A customer calls to say your website is sending them to a betting site. Or Google shows a red warning page instead of your homepage. Or your home page suddenly says "Hacked by" someone you have never heard of.

Finding out that your website has been hacked is frightening, and it usually happens at the worst possible time. The good news is that most hacked websites can be cleaned up and brought back, especially when there is a recent backup.

In this guide, we explain the signs that a website has been hacked, exactly what to do in the first hour, how websites get hacked in the first place, and how to make sure it does not happen again.

Signs Your Website Has Been Hacked

Not every hack is as obvious as a defaced home page. Watch for these signs:

  • Visitors are redirected to betting, adult, fake prize or pharmacy websites, sometimes only on phones or only when they arrive from Google.
  • Google shows a warning such as "Deceptive site ahead" or "This site may harm your computer", or your Google results show strange titles in other languages.
  • Your hosting company has suspended your account for sending spam or hosting malicious files.
  • Pages, posts or admin users you did not create appear on your website.
  • Your business emails start bouncing or landing in spam because your server is now sending spam.
  • The website is suddenly very slow or keeps going down.
  • You cannot log in because your password has been changed.

If you see any of these, treat it as a hack until you know otherwise.

What to Do in the First Hour

Act calmly but quickly. The longer a hacked website stays up, the more customers it harms and the longer Google keeps its warning in place.

1. Do not delete everything in a panic

Deleting files at random can destroy the evidence of how the attacker got in, and can break the website further. You need to clean it, not wipe it blindly.

2. Change your passwords, starting with the most important

Change the passwords for your website admin, hosting control panel, FTP or file access, database and the email account linked to all of them. Use long, unique passwords, and do it from a computer you trust.

3. Tell your hosting provider or website team

Your hosting provider or the team that looks after your website can see server logs, check for malicious files and, often, restore a clean backup. If your hosting company has already suspended the site, they will tell you what they need from you to bring it back.

4. Find your most recent clean backup

A backup from before the hack is the fastest way back. Find out when the hack started and which backups exist from before that date. If you do not know whether you have backups at all, now is the time to ask.

5. Warn customers if they may be affected

If your website takes orders, payments or logins, let your customers know what happened and what to look out for. Honesty protects your reputation far better than silence.

A hacked website is a problem. A hacked website with no backup and no one responsible for it is a crisis.

How to Clean Up a Hacked Website

Cleaning up a hacked website properly involves more than removing the page you can see. The attacker usually leaves hidden ways back in.

Restore or clean the files

The safest option is to restore a clean backup from before the hack, then update everything. If there is no clean backup, the infected files have to be found and cleaned one by one, which takes much longer.

Remove unknown admin users

Check every admin account on your website and delete any you do not recognise.

Update everything

Update your website software, theme and every plugin to the latest version, and remove any plugin or theme you are not using. An outdated plugin is the most common way in.

Find and close the way in

If you clean the website but leave the weakness that let the attacker in, they will simply come back. Check what was outdated, which password was weak, or which account was shared.

Ask Google to review your website

Once the website is clean, use Google Search Console to request a review, so Google removes the warning. This is one reason every business website should have Search Console set up before anything goes wrong.

Check your email reputation

If your server sent spam while it was hacked, your business emails may now be landing in spam. Read why business emails go to spam and how to fix it.

How Websites Get Hacked

Most small business websites are not targeted personally. Attackers use automated tools that scan thousands of websites for the same weaknesses:

  • Outdated software, themes and plugins with known security holes.
  • Weak or reused passwords, such as the business name followed by 123.
  • Shared logins, where several people and past developers all use one admin account.
  • Nulled or pirated themes and plugins, which often come with hidden malicious code already inside.
  • Cheap, overcrowded hosting where one infected website can affect others.
  • No one looking after the website after it was launched, so nothing gets updated for years.

The common thread is neglect. A website is not something you build once and forget.

How to Stop It Happening Again

Keep regular backups, stored safely

Backups are your insurance. They should run automatically, be kept for long enough that you can go back to before a hack, and be stored away from the website itself.

Keep everything updated

Updates fix security holes. Someone should be checking for and applying them regularly, not once a year.

Use strong passwords and separate accounts

Give each person their own login, with only the access they need, and remove accounts when people leave. Turn on two-step verification where your website supports it.

Use HTTPS

SSL protects the information visitors type on your website. If your site still says "Not secure", read how to fix the "Not secure" warning.

Have someone responsible for it

The single biggest difference between websites that get hacked and ones that do not is whether someone is actually looking after them.

How NAI TALK Can Help

Our Website Care Plans are built for exactly this: keeping your website online, secure, backed up and supported, so you do not have to think about servers or plugins.

  • Starter Website Care (₦25,000 a year): hosting for one website, SSL, unlimited business email, weekly backups, website recovery support and basic technical support.
  • Business Website Care (₦60,000 a year): two websites, regular backups, security monitoring, website health checks, priority support and minor updates.
  • Professional (₦100,000 a year) and Premium (₦180,000 a year): more websites and storage, daily or frequent backups, security monitoring or reviews, performance monitoring and website migration help.

If your website has already been hacked, contact us with the website address and what you are seeing. We will look at it with you and tell you honestly what it will take to bring it back.

Frequently Asked Questions

Can a hacked website be fixed?

In most cases, yes. It is much faster and more reliable when there is a clean backup from before the hack. Without one, the infected files have to be found and cleaned individually.

Will I lose my Google rankings?

Google may show a warning or drop hacked pages while the problem lasts. Once the website is clean and you request a review in Google Search Console, the warning is usually removed. The faster you act, the less lasting damage there is.

How did they hack a small website like mine?

Most attacks are automated. Tools scan the internet for outdated plugins and weak passwords and break into whatever they find. It is rarely personal.

Is it enough to just change my password?

No. Changing passwords is the first step, but attackers often leave hidden files or admin users behind. The website has to be cleaned and the weakness that let them in has to be closed.

How often should my website be backed up?

It depends on how often it changes. A website that rarely changes may be fine with weekly backups. A shop or a website updated daily needs daily backups. Our Website Care Plans range from weekly to daily and frequent backups.

My website was built by someone else. Can you still help?

Yes. Many of the websites we help were built by other developers. If you no longer have access to your website or domain, read how to take back control from a web designer who disappeared.

Do Not Wait for the Next Hack

If your website is hacked right now, talk to us today. If it is fine for now, the best time to protect it is before anything goes wrong. Choose a Website Care Plan and let us keep it online, secure and backed up.

Want your website online, secure and backed up?

Website Care Plans from ₦25,000 a year: hosting, SSL, backups and recovery support. Hacked right now? Contact us.

Get business tips in your inbox

Practical guides on domains, hosting, and growing your business online.