萬盛學電腦網

您现在的位置: 萬盛學電腦網 >> 電腦基礎知識 >  >> 電腦入門

hosts 文件被惡意篡改一鍵修復:360/金山體檢自動修復 + 專用修復工具

hosts 文件是本機域名解析「總開關」,被惡意修改會導致無法上網、跳轉釣魚站、感染木馬。XP/Win7/Win8/Win10/Win11 位置統一:C:\Windows\System32\drivers\etc\hosts。兩種一鍵修復法:

方法一:安全衛士一鍵體檢修復(推薦新手)

  • 打開 360 安全衛士/金山衛士/騰訊電腦管家 → 「全盤掃描」/「電腦體檢」。
  • 掃描完成後,若檢測到「hosts 文件異常/被篡改」,點擊「一鍵修復」/「立即修復」即可自動恢復默認內容。

方法二:專用 hosts 修復工具(輕量、無廣告)

  • 下載 hosts 修復工具(本文附件/官方源),運行點擊「一鍵修復」按鈕,秒級恢復默認 hosts。
hosts修復工具介面

默認 hosts 內容參考

# Copyright (c) 1993-2006 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# localhost name resolution is handled within DNS itself.
#	127.0.0.1       localhost
#	::1             localhost

預防建議

  • 安裝正規殺毒軟體並開啟實時防護。
  • 不隨意運行來源不明的 .exe/.bat/.reg 文件。
  • 定期檢查 hosts 文件大小/修改時間,異常即修復。
  • 使用 huhamhire-hosts 等工具管理 hosts,避免手動誤改。

hosts 文件小但關鍵,守住它,守住上網安全底線。

copyright © 萬盛學電腦網 all rights reserved