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

Windows 透過 hosts 檔封鎖不良網站:記事本開啟 C:\Windows\System32\drivers\etc\hosts → 新增 127.0.0.1 域名 → 存檔生效

編輯:關於 Windows

利用 hosts 檔將不良網站導向本機 (127.0.0.1) 實現封鎖,跨 XP/Win7/Win8 通用。操作:① Win+R → C:\Windows\System32\drivers\etc\hosts → 選記事本開啟;② 檔案末尾每行加 127.0.0.1 不良網域;③ Ctrl+S 存檔;④ 重開瀏覽器測試,頁面無法載入即封鎖成功。家長防沉迷、企業管網必備小技巧。

操作圖解

  1. 執行 hosts 路徑 → 記事本開啟。
    執行hosts路徑
  2. 選記事本。
    選擇記事本
  3. 末尾新增 127.0.0.1 封鎖域名。
    hosts新增封鎖
  4. 存檔 → 瀏覽器驗證。

無需第三方軟體,系統級攔截,效能零負擔,適用全 Windows 版本。

Copyright © Windows教程網 All Rights Reserved