Website hacked – what should you do?
An attack on your own website feels threatening – but with the right approach the damage can usually be contained. This guide shows what you as the site owner should do in what order and when you need support.

If your website has been hacked, stay calm and do not delete anything in haste: first inform your host, have the website taken offline if necessary, and change all access credentials – hosting, CMS, database, FTP and email – from a clean device. Back up the current state for analysis and have someone check whether personal data is affected and whether there is a reporting duty under the GDPR. Hire specialists for the cleanup and root-cause analysis – the website goes back online only once the vulnerability is closed.
Website hacked? How to recognize and verify it
Not every attack is immediately visible. Typical signs are foreign content or spam pages on your website, unexpected redirects, warnings in the browser or in Google search results, unknown administrator accounts in the CMS or a server that suddenly becomes noticeably slow. Customers who noticed something strange often get in touch as well, or your host suspends the package because of unusual activity.
Google Search Console gives a first indication: in its Security issues report, Google reports detected malware or hacked content. A search for “site:yourdomain.com” can also reveal foreign pages with spam terms. That is no substitute for a reliable diagnosis – the thorough examination of files, database and user accounts should be done by specialists. Unusual entries in your host's access statistics can also be a clue.
- Foreign content, links or spam pages
- Redirects to unknown websites
- Warnings in the browser or on Google
- Unknown user accounts in the CMS
- Host reports anomalies or suspends the package
- Emails from your domain suddenly land in spam
The first steps: stay calm and inform your host
The most important first step sounds banal: stay calm and do not delete anything in haste. Anyone who removes files in a panic or restores an old backup without checking destroys traces that matter for finding the cause – and the vulnerability stays open. Instead, note what you noticed, since when, and which messages or hints you received.
Then inform your host. They can preserve logs, temporarily block the website or put it into maintenance mode, and they know whether other packages are affected. If a service provider is responsible for your website, involve them immediately. Take the website offline if visitors could be at risk, for example through malicious code or manipulated forms.
Having credentials changed – but from a safe device
After an attack, all credentials must be considered compromised: hosting customer account, FTP or SFTP access, database, CMS administrators and the domain's email mailboxes. Change these credentials or have your service provider change them – and from a device that is demonstrably clean. If your own computer is infected, the new passwords will end up with the attacker as well.
Use a separate, strong password for each access and enable two-factor authentication wherever possible. Check in the CMS which users exist, and remove unknown or no-longer-needed accounts. Former employees, previous agencies or freelancers with still-active access are also a risk that you should close now.
Repairing a hacked website: backup, cleanup, root-cause analysis
Before cleaning up, the current state should be backed up – files, database and logs. This backup serves analysis and, if necessary, as evidence, not restoration. Afterward, specialists determine whether a clean backup from before the attack exists, how the attackers got in and whether hidden access points were left behind.
Restoring a backup without knowing the cause often helps only for a short time: if the vulnerability is still open, the website can be infected again. Common causes are outdated plugins, themes or extensions, components that are no longer maintained, and weak or reused passwords. With our hacked website help, we take care of cleanup, root-cause analysis and hardening – so the attack remains a one-off.
Reporting a hacked website: data protection, police and Google
If personal data is affected – such as customer data, form entries or accounts in a store – a reporting duty under Art. 33 GDPR may apply. The report to the competent data protection supervisory authority must then be made if possible within 72 hours of becoming aware of it, unless the breach is unlikely to result in a risk to the data subjects. In case of high risk, the data subjects must also be informed.
Have this question reviewed promptly by your data protection officer or an attorney. Independently of that, you can file a report with the police; in Germany, the state criminal investigation offices (Landeskriminalämter) offer businesses their own cybercrime contact points. If Google has flagged your website as dangerous, request a review in Search Console after the cleanup is complete. These notes do not replace legal advice.
Website hacked – who is liable?
As the operator, you are fundamentally responsible for your website – including for ensuring that personal data is protected by suitable technical and organizational measures, as Art. 32 GDPR requires. If malware is spread or data is siphoned off via a hacked website, claims by third parties or measures by authorities can result. How great the risk is depends heavily on the circumstances.
Whether a service provider is also liable depends on the contract: anyone who took on maintenance and security updates, for instance, has to deliver them. Also check whether you have cyber insurance and which reporting deadlines it prescribes. Inform customers or partners if suspicious emails were sent in your name. Binding answers on liability can only be given by legal advice – this section does not replace it.
Visited a hacked website – and how quickly can an attack happen?
If, as a visitor, you opened a hacked website, close the page, download nothing and enter no data. Run an up-to-date virus scanner and keep your browser and operating system up to date. If you entered login credentials there, change them immediately. You can reach the operator via the contact details in the legal notice (Impressum).
For operators: automated programs continuously scan the internet for reachable websites and known vulnerabilities. A new, publicly reachable website can therefore receive its first access attempts shortly after launch – regardless of how well known the company is. Regular updates, secure credentials, separately stored backups and a vulnerability analysis are therefore not optional extras but basic equipment.
What to look out for
Stay calm
Do not delete or overwrite anything in haste, and note anomalies with the date.
Inform your host
Have logs preserved and block the website or put it into maintenance mode if visitors are at risk.
Have credentials changed
Renew all passwords from a clean device and enable two-factor authentication.
Back up the state
Back up files, database and logs for analysis before cleaning up.
Have reporting duties checked
If personal data is affected, a 72-hour deadline generally applies under the GDPR – have it checked legally.
Hire specialists
Cleanup, root-cause analysis and hardening so that the vulnerability is really closed.
Request a Google review
After the cleanup, request removal of warnings in Search Console.
Your take-away checklist
- Anomalies noted with date and time
- Host and the service provider who maintains the site informed
- Website offline or in maintenance mode if visitors are at risk
- All credentials changed from a clean device
- Two-factor authentication enabled, unknown accounts removed
- Current state backed up for analysis
- Reporting duty under the GDPR checked
- Cleanup and root-cause analysis commissioned
How we support you

Help for a Hacked Website
Analysis, cleanup and restoration of hacked websites – including root-cause investigation and protection against new attacks.
Learn more
Web Security
Find and fix vulnerabilities – for websites, online stores, customer portals and custom web applications.
Learn more
WordPress Security
Security check and hardening for WordPress: secure logins, vetted plugins, reliable backups and server settings.
Learn more
Website Vulnerability Assessment
Security review of your website or web app along the OWASP Top 10 – with a prioritized findings list and remediation.
Learn moreFrequently asked questions
Stay calm, delete nothing, and inform your host and your service provider. Have the website taken offline if visitors are at risk and have all credentials changed from a clean device. Backup, analysis and cleanup by specialists follow.
Watch for foreign content, redirects, browser warnings and unknown user accounts. In its Security issues report, Google Search Console shows detected malware or hacked content. A thorough examination of files and database should be done by specialists.
The procedure is fundamentally the same, but with a CMS such as WordPress or Joomla it is worth taking a particular look at extensions, templates and user accounts. Outdated or unmaintained extensions are a common cause. After the cleanup, updates, permissions and credentials should be secured for the long term.
If personal data is affected, a report to the data protection supervisory authority within 72 hours of becoming aware may be required, and in case of high risk also informing the data subjects. You can also file a report with the police. Have the reporting duty checked legally promptly – this note does not replace legal advice.
In principle, the operator is responsible for the security of their website and the protection of personal data. Whether a service provider is also liable depends on the contract, for example if maintenance was agreed. Only legal advice can give a binding assessment.
The effort depends on how deep the infection goes, whether clean backups exist and how the website is built technically. A reliable estimate is only possible after an initial review. After the analysis, you will receive an individual quote from us for cleanup and hardening.
More guides & comparisons

How much does website maintenance cost?
The cost of website maintenance depends on the system, the number of extensions, the desired scope of services and the agreed response times.
Learn more
IT security for small businesses: what really matters?
Small businesses can reach solid basic protection with a few consistently implemented measures: regular and tested backups, timely updates for systems and programs,…
Learn more
How can you use AI in a company in a GDPR-compliant way?
AI can be used in a GDPR-compliant way in a company if there is a legal basis for the processing, a data processing agreement is in place with the AI provider,…
Learn more
How do you introduce AI in a company?
The best way to introduce AI in a company is step by step: select specific use cases with a visible benefit, review the data situation and data protection, define tools…
Learn more
What do you need for your own website?
For your own website you need five building blocks: a domain as the address, hosting as the storage location, the website itself – built with a CMS, a site builder or…
Learn more
What legal requirements must a website meet in Germany?
In Germany, a business website generally needs a legal notice (Impressum) under Section 5 of the German Digital Services Act (DDG) and a privacy policy under Art.
Learn moreNeeds analysis: Website hacked – what to do?
Answer a few short questions – we usually get back to you within 24 hours with an initial assessment.
Request a project