Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Win 10 如何封鎖特定網站?修改 hosts 檔案導向本機回環位址

編輯:Windows 10 系統介紹

透過 hosts 檔案封鎖網站:

  1. Win+R 輸入 C:\WINDOWS\system32\drivers\etc 開啟資料夾。
  2. 右鍵 hosts → 「開啟方式」→「記事本」。
  3. 檔案末尾新增:127.0.0.1 要封鎖的網域 或 0.0.0.0 要封鎖的網域 (IP 與網域以空白隔開)。
  4. 存檔關閉 → 彈出提示選「是」,即時生效。

瀏覽器訪問該網域將解析至本機回環,達到封鎖效果。解封只需刪除對應行。

Copyright © Windows教程網 All Rights Reserved