Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> 關於 Windows

Win7 瀏覽器左上角出現網域重導向?修改 hosts 檔案移除惡意/殘留導向項

編輯:關於 Windows

Win7 瀏覽網頁時左上角顯示網域重導向,非網站毒性問題,多為 `hosts` 檔案殘留導向項 (惡意軟體植入、舊設定遺留、廣告攔截規則過期) 導致。清理 hosts 即可解決。

修復步驟

  1. 開啟總管 → 地址列輸入 `C:\Windows\System32\drivers\etc` → Enter。
  2. 找到 `hosts` 檔案 → 右鍵 → 「用記事本開啟」 (需管理員權限)。
  3. 檢視內容,**僅保留第一行區域註解與 `127.0.0.1 localhost`**,刪除所有其他導向行 (格式:`IP 域名`)。
  4. 儲存 → 重新整理瀏覽器驗證。

標準 hosts 內容參考

# Copyright (c) 1993-2006 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

127.0.0.1       localhost
::1             localhost

預防建議

  • 定期檢查 hosts 檔案 (特別是安裝過破解軟體、優化工具後)。
  • 使用 HostsMan 等管理工具備份乾淨版本,一鍵還原。
  • 安裝可信防毒軟體即時防護,攔截惡意修改 hosts 行為。

乾淨的 hosts 檔案,淨化本機網路解析環境。

Copyright © Windows教程網 All Rights Reserved