All articles

Your Website Got Hacked. Here's What to Do First.

12 May 2026 6 min read

The instinct is to delete the strange files and move on. Don't. If you clean without finding the entry point, you'll be doing it again next week — the attacker still has the key.

In this order

  • Take the site offline or put up a maintenance page
  • Copy the server files and database as they are, before changing anything
  • Download the access and error logs — these show the entry point
  • Change every password: hosting, database, admin, email, FTP
  • Only then start cleaning

Restore from backup, don't patch

Attackers leave more than one way back in. Restoring a known-good backup from before the compromise and then applying updates is far safer than hunting for every file they touched. This is the moment your backup policy proves its worth or doesn't.

Tell people if their data was exposed

If customer details were in the database, say so plainly and tell people what to do. Quiet cleanups damage trust far more when they come out later, and they usually do.

Then close the door

Update the framework and every plugin, remove what you don't use, turn on two-factor authentication for admin accounts, and set up automated backups you have actually tested restoring from.

Free tools for this

Need help with your project?

Tell me what you're building and get a free, no-obligation quote.

Hire Me

Related services

Ms IT Xpress — Modern Software & IT Solutions

Ms IT Xpress — a software and technology company building modern web platforms, AI-powered systems, mobile apps, SaaS products and custom software.

Modern Software & IT Solutions, Delivered with Speed.

Explore

Discover

Tools

Get in touch

© 2026 Ms IT Xpress. All rights reserved.

Ms IT Xpress — Digitalization for Humanity