Quarantine your site


目录

https://www.youtube.com/watch?v=StID0NXeycw

Next actions

1. Take your site offline

Take your site offline so that it no longer serves content to users. For example, stop your webserver or point your website's DNS entries to a static page on a different server that uses a 503 HTTP response code.

By taking your compromised site completely offline, you can complete administrative tasks with less interference from the hacker, and meanwhile, malicious code or spammy files won't be exposed to visitors. It's unlikely that taking your site offline intermittently or temporarily during the recovery process will affect future ranking of your site in search results.

Contacting your hoster is helpful if you're unsure how to take your site offline. For instance, your hoster might configure at 503 response for your site from outside your infected directories (which is a fine option). Convey to your hoster that you'll soon need to toggle your site between online and offline for testing purposes as that may help them give you the most self-service method for taking your site offline.

Having your site return a 4xx or 5xx HTTP status code isn't enough to protect your users. Harmful content can still be returned to users with 404, 503, etc. The 503 status code is a useful signal that your site is down temporarily, but the response should occur from outside your compromised server/site.

Using a robots.txt disallow is also insufficient because it only blocks search engine crawlers. Regular users can still access harmful content.

2. Contact your hoster

If you haven't already done so, contact your hoster to make them aware of the situation. If your hoster was also compromised, it may help them understand the scope of the problem.

3. Perform thorough user account management


版本号 #3
由 壳壳虫 创建于 2026-10-31 23:14:15 UTC
由 cocobook-sync 更新于 2026-11-04 17:40:00 UTC