想編輯 C:\Windows\System32\drivers\etc\hosts 卻提示「權限不足」或存檔失敗,因為 hosts 為系統保護檔案,需管理員權限且需移除唯讀屬性才能修改。
C:\Windows\System32\drivers\etc\hostsC:\Windows\System32\drivers\etc → 右下角「文字文件」改「所有檔案」 → 選 hosts 開啟。# Copyright (c) 1993-2009 Microsoft Corp.\n#\n# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.\n#\n# localhost name resolution is handled within DNS itself.\n#\t127.0.0.1\tlocalhost\n#\t::1\t\tlocalhost提醒:修改 hosts 後建議執行 ipconfig /flushdns 清除 DNS 快取,讓變更即時生效。若遭惡意程式竄改,請先全盤掃毒再修復。