What does Google say about SEO? /
Quick SEO Quiz

Test your SEO knowledge in 5 questions

Less than a minute. Find out how much you really know about Google search.

🕒 ~1 min 🎯 5 questions

Official statement

It's advisable to contact your host to inform them of the hack. This allows the host to potentially take corrective measures or understand the extent of the problem if they themselves have been compromised.
2:46
🎥 Source video

Extracted from a Google Search Central video

⏱ 3:16 💬 EN 📅 12/03/2013 ✂ 3 statements
Watch on YouTube (2:46) →
Other statements from this video 2
  1. 1:43 Faut-il vraiment mettre un site piraté totalement hors ligne pour le protéger ?
  2. 3:46 Comment sécuriser vos comptes après un piratage SEO sans perdre votre référencement ?
📅
Official statement from (13 years ago)
TL;DR

Google recommends notifying your host as soon as a hack is detected. This action can speed up resolution if the infrastructure itself is compromised and allows the host to implement server-side patches. Essentially, this step often precedes the manual cleaning of the site, as some backdoors require root access to be eradicated.

What you need to understand

Why does Google emphasize the host's role in dealing with a hack?

When Google detects a hacked site, the priority is to stop the spread of malicious content before lifting ranking penalties. However, cleaning the site from the CMS side (WordPress, Joomla, etc.) is not always sufficient.

If the server itself is compromised, malicious files can regenerate automatically. An informed host can verify the integrity of the system stack (Apache, PHP, MySQL), spot suspicious processes, and restore a clean version from an infrastructure snapshot.

Another reason: your site might not be the only one affected. Hackers often target vulnerabilities in shared environments. Notifying the host allows them to protect all their clients and fix the breach upstream.

What immediate corrective actions can a host take?

A good host has automated anomaly detection tools: spikes in suspicious traffic, abnormal SQL queries, modifications of core files outside maintenance windows. Once alerted, they can isolate your account in a temporary container to prevent further spread.

On the corrective side, they can restore file permissions (often modified to execute arbitrary code), reset FTP/SSH passwords, and scan for malicious cron jobs. Some premium hosts even offer a cleaning service included in their SLA.

Does the host always have the skills to handle advanced hacking?

Let's be honest: not all hosts are equal. Low-cost shared hosting often responds with a generic ticket advising to "check your plugins". Managed infrastructures (WP Engine, Kinsta, etc.) have specialized security teams for WordPress.

In complex cases (persistent SQL injection, rootkits, hidden cryptomining), the host sometimes limits itself to providing access logs. This is already valuable for identifying the intrusion vector, but the cleanup remains your responsibility.

  • Contact your host as soon as you detect the hack, even before touching any files (to preserve forensic traces).
  • Request a clean infrastructure snapshot if available, instead of manually restoring file by file.
  • Check if your plan includes security support: some hosts charge for this service on demand.
  • Ask for the Apache/Nginx logs from the last 7 days to analyze suspicious requests and identify the backdoor.
  • Isolate the hacked site in a temporary subdomain during the cleanup to prevent Google from indexing additional malicious content.

SEO Expert opinion

Is this recommendation aligned with practices observed in the field?

Yes, and this is one of the rare occasions where Google and SEO practitioners agree without reservation. Hosts have access to logs and system tools that you do not have from cPanel or Plesk. Ignoring this step risks cleaning the surface while the malware regenerates from a hidden cron job.

However, the effectiveness of this approach depends entirely on your host. Field reports show that shared hosting at 3€/month often merely suggests a complete reinstallation. Specialized hosts (especially those with security SLAs) can block the attack in under an hour. [To be checked]: Google never specifies what level of support to expect, which complicates sizing the effort.

What are the limits of this approach in complex environments?

If you are on an unmanaged VPS or dedicated server, contacting "the host" means sending a ticket to OVH or AWS which will respond: "it’s your responsibility". In this case, Google's recommendation is moot: you either need sysadmin skills or must hire a specialized provider.

Another limit: distributed cloud architectures (CloudFlare Workers, Vercel, Netlify). The hack may originate from a misconfigured S3 bucket or a compromised third-party API. Your front-end host can't help with that. Google remains vague on these modern use cases, which reflects a very "classic LAMP stack" view of the web.

Should you really wait for the host to act before cleaning yourself?

No, and this is where Google's phrasing can be misleading. "Contacting the host" does not mean "waiting passively". If you have the skills, start the cleanup in parallel: delete suspicious files, change all passwords, disable unknown user accounts.

The host primarily intervenes to secure the infrastructure layer (firewall, IDS, system snapshot restoration). You clean the application layer (CMS, database, themes/plugins). Both actions are complementary, not sequential. Waiting 48 hours for a host to respond while Google indexes pharma spam is a tactical error.

Attention: If you clean before the host has secured the server, the malware can reinject itself in minutes. Coordinate actions: ask the host to block suspicious FTP/SSH connections WHILE you purge the files.

Practical impact and recommendations

What should you concretely do in the first hours after detecting a hack?

Open a priority ticket with your host immediately, even if you think you can handle it alone. Mention the precise symptoms: unwanted 301 redirects, suspicious .php files in /wp-content, Search Console warnings "Site hacked". The more precise you are, the faster the response will be.

In the meantime, put the site in maintenance mode via a plugin or an .htaccess file to stop the SEO bleed. Google will continue to crawl, but at least it won’t find new spam pages. Then, download a complete copy of the site (files + database) before any modifications: you will need this "evidence" for forensic analysis.

How to check if the host has actually taken corrective measures?

Explicitly ask them: which logs did they consult, which IP did they block, which suspicious processes did they kill. A serious host will provide you with an intervention report (even if summarized). If they respond "we have strengthened security" without details, consider that nothing concrete has been done.

Check server side: the permissions of critical folders should be 755 (for folders) and 644 (for files). If you find 777 everywhere, the host has not corrected anything. Also inspect cron jobs (the command `crontab -l` in SSH): malware often schedules automatic reinfections there.

What mistakes should you absolutely avoid when managing a hack with the host?

Never restore a backup without having identified the intrusion vector. If the vulnerability is still present (outdated plugin, weak password), you will be hacked again within 72 hours. The host can restore a clean system snapshot, but it’s up to you to fix the application vulnerability.

Another common mistake: only changing the WordPress admin password. Hackers often create hidden administrator accounts, change FTP credentials, and inject backdoors into the code. A complete cleanup involves resetting ALL passwords (database, FTP, SSH, domain email accounts) and scanning each recently modified file.

  • Open a ticket with the host including screenshots of the symptoms and Search Console logs
  • Ask explicitly: is a snapshot available? Access logs from the last 7 days? Suspicious IPs blocked?
  • Put the site in public maintenance mode during the cleanup (to prevent indexing new spam pages)
  • Download a complete copy (files + database) BEFORE any modifications for analysis
  • Check file/folder permissions after host intervention (644/755 expected)
  • Scan cron jobs and system user accounts to detect persistent backdoors
Coordination with the host is strategic, but it does not exempt you from a technical SEO audit post-hack. Google can take several weeks to lift the "Hacked site" flag even after cleanup, especially if malicious URLs remain indexed. Checking the completeness of deindexation, submitting a reconsideration request, and monitoring Core Web Vitals (some malware injects JS that degrades performance) are time-consuming tasks. For sites with high organic traffic, hiring an SEO agency specialized in post-hack remediation can help reduce downtime and avoid mistakes that prolong the penalty.

❓ Frequently Asked Questions

L'hébergeur peut-il refuser d'intervenir sur un site piraté ?
Oui, si vous êtes sur un serveur non managé (VPS, dédié) ou si le piratage provient d'une faille applicative (plugin WordPress obsolète). Les hébergeurs mutualisés basiques se limitent souvent à fournir des logs.
Combien de temps faut-il pour qu'un hébergeur réponde à une alerte piratage ?
Entre 1h et 48h selon le niveau de support. Les plans premium avec SLA sécurité répondent sous 2-4h. Les mutualisés low-cost peuvent mettre plusieurs jours.
Dois-je attendre la réponse de l'hébergeur avant de commencer le nettoyage ?
Non. Contactez-le immédiatement mais commencez en parallèle à supprimer les fichiers suspects et changer les mots de passe. Attendez juste qu'il sécurise l'infrastructure pour éviter les réinfections.
Que faire si l'hébergeur affirme que tout est propre alors que Google signale toujours un piratage ?
Vérifiez vous-même les fichiers récemment modifiés (commande find en SSH), scannez la base de données pour des liens cachés, et inspectez les cron jobs. L'hébergeur ne détecte que les malwares connus côté serveur.
Un changement d'hébergeur résout-il définitivement le problème de piratage ?
Non, si vous migrez un site infecté. La backdoor sera transférée avec vos fichiers. Nettoyez d'abord complètement, puis migrez. Un nouvel hébergeur ne corrige pas une faille applicative.
🏷 Related Topics
Domain Age & History Mobile SEO

🎥 From the same video 2

Other SEO insights extracted from this same Google Search Central video · duration 3 min · published on 12/03/2013

🎥 Watch the full video on YouTube →

Related statements

💬 Comments (0)

Be the first to comment.

2000 characters remaining
🔔

Get real-time analysis of the latest Google SEO declarations

Be the first to know every time a new official Google statement drops — with full expert analysis.

No spam. Unsubscribe in one click.