Hosts 檔案無副檔名,位於系統資料夾深處,常用於屏蔽廣告、加速訪問特定網站或測試域名解析。Windows 10 中路徑與舊版相同,提供兩種快速定位方式。
C:\Windows\System32\drivers\etc\hosts
若系統安裝在非 C 槽,請將磁碟代號對應修改。

C:\Windows\System32\drivers\etc → 按 Enter。hosts 檔案,以記事本開啟編輯。

notepad C:\Windows\System32\drivers\etc\hosts 按 Enter,直接以管理員權限開啟編輯並儲存。修改 hosts 後可執行 ipconfig /flushdns 刷新 DNS 快取使其立即生效。