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

Windows 7 如何判斷網路受限:NCSI 機制揭秘與隱私控制

編輯:Win7 常見問題解答

Windows 7 連網時會自動檢測網路狀態,在通知區域顯示「網際網路存取」或「受限存取」。其核心機制為 NCSI (Network Connectivity Status Indicator):

NCSI 檢測流程

  1. DNS 查詢 dns.msftncsi.com,預期解析為 131.107.255.255。
  2. HTTP GET https://www.msftncsi.com/ncsi.txt,內容應為純文字 Microsoft NCSI。
  3. 若解析 IP 不符或無法取得正確文字,即判定為「受限」或「無網際網路存取」。

隱私疑慮與停用方式

微軟伺服器會記錄每次檢測的 IP 位址。若不願上傳,可修改登錄停用或導向自有伺服器:

  1. regedit → HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet。
  2. 修改 EnableActiveProbing 為 0 (停用主動探測)。
  3. 或修改 ActiveDnsProbeContent、ActiveDnsProbeHost、ActiveWebProbeHost、ActiveWebProbePath、ActiveWebProbeContent 指向自架 NCSI 服務。
停用 NCSI 後網路圖示將不再顯示網際網路連線狀態,但不影響實際網路功能。企業環境常部署內部 NCSI 伺服器以避免資料外洩。
Copyright © Windows教程網 All Rights Reserved