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

Win8 修改 hosts 檔案完整教學:拖曳法繞過權限限制

編輯:Windows 8 系統介紹

前言

hosts 檔案位於 C:\Windows\System32\drivers\etc\hosts,屬系統保護檔案,直接編輯會遇到權限不足無法儲存。本文介紹「複製到桌面編輯再貼回」的簡單繞過法。

操作步驟

  1. 開啟檔案總管,前往 C:\Windows\System32\drivers\etc。
  2. 將 hosts 檔案**拖曳到桌面**(會提示權限,點選「繼續」)。**保持 etc 資料夾視窗開啟**。
  3. 桌面雙擊 hosts → 選「記事本」開啟 → 輸入/修改對應關係(如 127.0.0.1 example.com) → 儲存。
  4. 將修改後的 hosts **拖回 etc 資料夾**,覆蓋原檔(提示權限點選「繼續」)。

驗證

開啟 CMD,ping 對應網域 應解析為 hosts 指定的 IP。

注意

  • 修改 hosts 需系統管理員權限,拖曳法實質利用桌面使用者完全控制權繞過。
  • 部分安全軟體會監控 hosts 變動並攔截,若生效後失效請檢查安全軟體設定。
Copyright © Windows教程網 All Rights Reserved