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

限制 Windows 7 僅能存取指定網頁:Hosts 檔與 DNS 導向雙重封鎖

編輯:Windows 7 系統介紹

企業體驗區需限制使用者僅能存取特定網銀網站。提供兩種簡單可行方案:

方案一:修改 Hosts 檔(理論可行,實務困難)

編輯 C:\Windows\System32\drivers\etc\hosts,將非授權網域導向 127.0.0.1。但 Hosts 不支援萬用字元,無法封鎖所有網站,維護成本極高。

方案二:Hosts 搭配 DNS 導向(推薦)

  1. 網路介面卡 TCP/IPv4 設定:慣用 DNS 伺服器改為 127.0.0.1。此時所有網域名稱解析失敗(僅 IP 直連可存取),擋下 95% 一般使用者。
  2. 編輯 Hosts 檔,僅為授權網站加入正確 IP 對應,例如:
    61.135.169.125 www.bank.com

此法簡單有效,雖非完美(懂 IP 直連者可繞過),但足應付一般管制需求。

Copyright © Windows教程網 All Rights Reserved