修改 hosts 可直連 Google、Gmail、GitHub 等被封站點,但前提是找到文件位置並搞定寫入權限。Windows 所有版本路徑統一,修改方法通用。
C:\Windows\System32\drivers\etc\hosts
(雙系統/虛擬機/ macOS/Linux 路徑不同,本文針對 Windows)
216.58.197.78 www.google.com)→ Ctrl+S 保存。etc 目錄覆蓋原文件(需管理員權限,點擊「繼續」)。
C:\Windows\System32\drivers\etc\hosts → 直接編輯保存,無需覆蓋步驟。用 huhamhire-hosts 自動下載更新 Google/Apple/GitHub 等 hosts,一鍵套用,免去手動維護煩惱。參考:huhamhire-hosts 自動更新 Google Hosts 文件教程(圖文)
修改 hosts,輕鬆穿越網絡邊界,獲取全球信息。