1. Home
  2. Articles
  3. Website Hacked: What to Do — 7-Step Checklist and Recovery

Website Hacked: What to Do — 7-Step Checklist and Recovery

A website hack is unauthorized access to a site or server in which an attacker modifies files, injects malicious code or steals data.

Website Hacked: What to Do — 7-Step Checklist and Recovery

A hacked website is a situation where your web resource experiences unauthorized access, which can lead to data loss or damage to your reputation. It's important to know how to act in such cases to minimize the damage.

First actions after a website hack: a 7-step checklist

If your website has been hacked, the first hours decide whether you can limit the damage. Act in order and do not rush to delete files: first stop the leak and preserve evidence. Below is a checklist that fits most sites on WordPress, OpenCart and other CMSs.

  • Step 1. Take the site offline: turn on maintenance mode or temporarily block access so visitors are not infected and the attacker cannot continue.
  • Step 2. Change all passwords: hosting, FTP/SSH, CMS admin, database, domain email; replace API keys and tokens that may have leaked into code.
  • Step 3. Notify your hosting provider: it can help with logs, isolate the account and tell you whether the breach happened at server level.
  • Step 4. Save a copy of the current state and logs: files, the database and access logs will be needed to find the cause.
  • Step 5. Run a malware scanner: check files on the server and the database, find suspicious and recently modified files, new administrators and unknown scheduled tasks.
  • Step 6. Remove the malicious code and close the vulnerability: clean infected files, remove backdoors or restore a clean copy; update the CMS, themes and plugins.
  • Step 7. Restore operation and monitor: turn off maintenance mode, check the site in Google Search Console for warnings and request a review if the site was flagged as unsafe.

What are the first steps to take after a website hack?

After discovering a website hack, the first step is to immediately isolate the site by disconnecting it from the internet. This will help prevent further spread of the attack. Next, conduct a security audit to determine how the hack occurred. It's crucial to preserve all access logs, as this will aid in the investigation. If you have backups, prepare to restore them to bring the site back to a functional state.

How to check what data was lost?

After a hack, it's important to conduct a detailed analysis to identify lost data. This involves checking backups, transaction logs, and other records. Pay attention to the specifics of your site: for example, an online store may lose order information, while a corporate site may lose client data. It's essential to document everything you discover to have a clear understanding of the scale of the problem.

How to recover a website after a hack?

Recovering a website after a hack involves several stages. First, you need to clean the server of malicious code, which may include removing harmful files and restoring system files. Next, consider support and enhancements for websites to prevent similar incidents in the future. It's also important to update all security systems and check for any remaining vulnerabilities. Finally, after all updates and checks, the site can be relaunched.

What tools can help in combating hacks?

To detect and prevent attacks, it's advisable to use specialized tools. For example, antivirus programs for websites can help identify malicious code. Additionally, security monitoring systems like Sucuri or Cloudflare can provide protection against DDoS attacks. It's important to regularly update software and plugins to reduce the risk of hacking.

  • Website antivirus
  • Security monitoring systems
  • Regular software updates

How to prevent a repeat hack: prevention from Pixelion

After cleanup the most important thing is to close whatever let the attacker in, otherwise the hack will repeat. Prevention consists of a few simple things that work together. For more on the security of different CMSs see the materials on protecting a site from hacking, WordPress site security and plugin vulnerabilities. If you need help with recovery or ongoing protection, see our website support service.

  • Regular updates of the CMS, themes and plugins, and removal of anything you do not use.
  • Strong unique passwords, a password manager and two-factor authentication for the admin panel and hosting.
  • Restricted admin access: protection from password guessing, login attempt limits, changing the default login address, see protecting the admin panel from brute force.
  • Minimum user rights and access: separate accounts for each person, no shared passwords.
  • Automatic off-server backups and recovery testing, see website backups.
  • A firewall and bot protection, a current PHP version and HTTPS.
  • File-change and availability monitoring with alerts, see availability monitoring.
  • Regular security audits and malware checks.

Examples of work

All projects

Need help with your project?

We'll break down your task, propose the best solution, and prepare an implementation plan.

Call me back

FAQ

Didn’t find the answer? Message us — we reply during business hours.

What should I do first if my website was hacked?

Take the site offline or turn on maintenance mode, change all passwords, notify your hosting provider, save a copy and logs and run a malware scanner. The full 7-step checklist is at the start of the article.

Can I recover the website myself after a hack?

Yes, you can recover the website yourself, but it requires certain technical knowledge. If you're not confident in your abilities, it's better to consult professionals.

How long does it take to recover a website?

The time it takes to recover a website depends on the complexity of the hack and the amount of lost data. It can take anywhere from a few hours to several days.

How to prevent a website from being hacked again?

To prevent a website from being hacked again, regularly update your software, use strong passwords, and implement security systems.

How can I prevent a repeat hack?

Update the CMS and plugins regularly, use strong passwords and two-factor authentication, restrict admin access, keep off-server backups and monitor file changes.

Request a quote Call

Let’s discuss your project

Leave your contacts and we’ll get back to you during business hours.