惡意軟體常竄改 C:\Windows\System32\drivers\etc\hosts 將熱門網域導向惡意 IP。用 ping localhost 快速驗證 hosts 檔完整性。
cmd 開啟命令提示字元。ping localhost 按 Enter。從 ::1 回覆: 時間<1ms 或 127.0.0.1 正常回應,代表 hosts 檔未被竄改 (localhost 解析正確)。127.0.0.1 localhost 與 ::1 localhost)。此法可作為日常維護快速檢查手段,配合定期備份 hosts 檔更安心。