hosts 檔案被劫持會導致無法訪問正常網站、跳轉惡意頁面。本文教您快速定位、修復並防護 hosts 檔案。
C:\Windows\System32\drivers\etc\hosts (無副檔名)
病毒/木馬將惡意域名指向 127.0.0.1 (本機) 或 0.0.0.0 (無效 IP),或將正常域名指向釣魚站 IP。


notepad "%SystemRoot%\system32\drivers\etc\hosts"ipconfig /flushdnsexithosts.bat,雙擊即可快速編輯並刷新 DNS 快取。

127.0.0.1 localhost
主動添加:127.0.0.1 evil-site.com 或 0.0.0.0 evil-site.com 可阻擋惡意域名解析。