> ## Content Index
> Fetch the complete content index at: https://www.albert-yu.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Windows 10 修改系统 hosts 設定圖文教學
- URL: https://www.albert-yu.com/blog/windows-10-edit-hosts-file/
- Published: 2018-01-02T17:32:49.000Z
- Updated: 2026-10-30T03:43:34.000Z
- Author: Albert Yu
- Tags: OS, System, User, Windows, dns, hosts, windows 10

IT從業人員，一般都需要修改電腦的hosts文件，那麼，Windows 系統的hosts文件怎麼修改呢？針對此問題，本文就為大家圖文詳細介紹Windows 10 修改 hosts 文件的方法

在Windows 7 中Hosts是可以直接做修改的，但是在Windows 10當中要修改會遇到權限不足的問題。導致無法修改hosts文件的情況，那麼，Windows 10 hosts修改不了怎麼辦？對於此問題，本文就為大家圖文介紹如何實現Windows 10 修改 hosts文件的方法。

1.點擊搜尋Windows

![](https://www.albert-yu.com/content/images/2026/10/windows-10-xiu-gai-xi-tong-hosts-she-ding-tu-wen-jiao-xue-01.png)

2.輸入 C:\\WINDOWS\\system32\\drivers\\etc 並點選上方最佳比對之結果

![](https://www.albert-yu.com/content/images/2026/10/windows-10-xiu-gai-xi-tong-hosts-she-ding-tu-wen-jiao-xue-02.png)

3.尋找到我們的目標hosta

![](https://www.albert-yu.com/content/images/2026/10/windows-10-xiu-gai-xi-tong-hosts-she-ding-tu-wen-jiao-xue-03.png)

這時候不能直接修改，因為權限不足

這時候不能直接修改，因為權限不足

這時候不能直接修改，因為權限不足

4.確認所需的權限，點選hosts之後點選滑鼠右鍵並進入選單點選『內容』

![](https://www.albert-yu.com/content/images/2026/10/windows-10-xiu-gai-xi-tong-hosts-she-ding-tu-wen-jiao-xue-04.png)

5.進入『安全性』分頁

![](https://www.albert-yu.com/content/images/2026/10/windows-10-xiu-gai-xi-tong-hosts-she-ding-tu-wen-jiao-xue-05.png)

6.點選Users並確認是否有寫入權限

![](https://www.albert-yu.com/content/images/2026/10/windows-10-xiu-gai-xi-tong-hosts-she-ding-tu-wen-jiao-xue-06.png)

7.一定要有寫入權限，如果你不像上圖有打勾請點選『編輯』

![](https://www.albert-yu.com/content/images/2026/10/windows-10-xiu-gai-xi-tong-hosts-she-ding-tu-wen-jiao-xue-07.png)

8.點選『Users』並在下方將『寫入』權限打勾做允許，允許後點選套用

![](https://www.albert-yu.com/content/images/2026/10/windows-10-xiu-gai-xi-tong-hosts-she-ding-tu-wen-jiao-xue-08.png)

9.在套用過程中他會有個安全性的確認訊息，請點選『是』

![](https://www.albert-yu.com/content/images/2026/10/windows-10-xiu-gai-xi-tong-hosts-she-ding-tu-wen-jiao-xue-09.png)

10.這時候我們就可以回到剛剛的資料夾 『』中對『hosts』點選右建

![](https://www.albert-yu.com/content/images/2026/10/windows-10-xiu-gai-xi-tong-hosts-she-ding-tu-wen-jiao-xue-10.png)

11.這時候點選『開啟檔案』並選擇用記事本打開

![](https://www.albert-yu.com/content/images/2026/10/windows-10-xiu-gai-xi-tong-hosts-she-ding-tu-wen-jiao-xue-11.png)

12.預設畫面如下

![](https://www.albert-yu.com/content/images/2026/10/windows-10-xiu-gai-xi-tong-hosts-she-ding-tu-wen-jiao-xue-12.png)

13.假設我現在要把『www.albert-yu.com』放在『69.172.201.153』測試我可以寫成

『IP+空白鍵+Domain』這個組合

如：『69.172.201.153 www.albert-yu.com』

![](https://www.albert-yu.com/content/images/2026/10/windows-10-xiu-gai-xi-tong-hosts-she-ding-tu-wen-jiao-xue-13.png)

14.接下來儲存檔案您本機的DNS詢問就強制導向您指定的IP，測試方式可以開命令提示字元PING看看

![](https://www.albert-yu.com/content/images/2026/10/windows-10-xiu-gai-xi-tong-hosts-she-ding-tu-wen-jiao-xue-14.png)