Hosts 檔案 (C:\Windows\System32\drivers\etc\hosts) 受系統保護,直接修改無法儲存。需取得檔案擁有權與完整控制權限才能編輯。
C:\Windows\System32\drivers\etc\hosts
C:\Windows\System32\drivers\etc
hosts
修改 hosts 可封鎖廣告域名、加速特定網站解析、測試本地開發站點。修改後執行 ipconfig /flushdns 刷新 DNS 快取生效。
ipconfig /flushdns