Skip links

Guide

My website has been hacked: what to do right now

How to tell that your site has been hacked, what to do in the first hour, and how to stop it happening again.

By the DomGrid team · Updated November 2026 · 3 min read

A hacked website rarely looks like it does in the films. Owners usually find out from a customer, from a warning on Google or from a message from their host. We have cleaned a good number of WordPress sites, and it almost always starts the same way.

How to tell your site has been hacked

  • Coming from Google or on a phone, the site redirects to a casino, pharmacy or "amazing offer" – but when you open it directly, it looks normal.
  • Pages in Japanese, or with products you do not sell, appear in Google results.
  • Google or the browser shows a red warning that the site is dangerous.
  • There are users in the admin panel you do not recognise.
  • Your host has told you the site is sending spam, or has suspended it.

What to do in the first hour

1. Do not delete things blindly

If you delete the site or restore a random backup, you often also delete the traces that show how the attackers got in. The door stays open, and a week later it all happens again.

2. Change your passwords

Change the passwords of every WordPress administrator, the hosting account, FTP/SFTP access and the database. Use new, long passwords you do not use anywhere else.

3. Make a copy of the current state

Yes, of the hacked site. It will help work out how they got in.

4. Call your host or someone who cleans sites

Cleaning it yourself is possible, but it is easy to miss a hidden file. We have seen sites "cleaned" several times over, where one forgotten backdoor kept bringing the infection back.

How a WordPress site is cleaned

  • WordPress core, the theme and the plugins are reinstalled from official sources.
  • Unknown files are hunted down – especially PHP files in the uploads folder and in mu-plugins.
  • wp-config.php, .htaccess and the database are checked for injected code and unknown administrators.
  • Everything is updated to the latest versions, and unused plugins are removed.
  • If Google has flagged the site as dangerous, a review is requested through the Security Issues report in Google Search Console once it is clean.

How to stop it happening again

  • Regular updates of WordPress, the theme and the plugins.
  • No "free" copies of paid themes and plugins – they often come with malicious code already built in.
  • Daily backups kept away from the site itself.
  • Two-factor login for administrators.
  • Hosting with attack protection and monitoring.

Free website review

Want someone to look at your site?

Send us your address and within 3 working days a person on our team will tell you what to fix first. No passwords needed, free and with no obligation.

If your site has been hacked right now, call us. We clean WordPress sites and then keep them safe on secure hosting with daily backups and 24/7 monitoring.

FAQ

Frequently asked questions

Can't find your answer? Call us on +359 886 388 173 (also Viber and WhatsApp) or send us a message.

How do I know if my site has been hacked?

The most common signs are redirects to spam sites (especially from Google or on a phone), strange pages in search results, a warning from Google or the browser, unknown administrators, and messages from your host that the site is sending spam.

Is restoring a backup enough?

Not always. If you do not find out how the attackers got in, the site is often hacked again. The backup must be from before the infection, and then the hole has to be closed – usually an outdated plugin or a leaked password.

How long does a clean-up take?

It depends on how deep the infection goes. Simple cases are fixed within a day; more complex ones also need a check of the database and every file.

Need a hand with your website?

Tell us what you need and we will get back to you within one working day.

DomGrid, 28 General Georgi Popov St, floor 8, 9010 Varna, Bulgaria · Open every day 09:00–19:00 (EET) · Last updated: November 2026