Windows 7(含 XP)的 hosts 檔案均位於:
C:\Windows\System32\drivers\etc\hosts
Win7 為安全考量,預設禁止直接修改 hosts。解決方法:
C:\Windows\System32\drivers\etc\hosts
# 封鎖迅雷看看廣告 0.0.0.0 pubstat.sandai.net 0.0.0.0 mcfg.sandai.net 0.0.0.0 biz5.sandai.net 0.0.0.0 float.sandai.net 0.0.0.0 recommend.xunlei.com 0.0.0.0 cl.kankan.xunlei.com 0.0.0.0 www.7k7k.com
若瀏覽器首頁被強制修改、網頁跳轉異常,請以管理員身分開啟 hosts,刪除可疑的 IP 與網域對應行,即可恢復正常。
C:\Windows\System32\drivers\etc\hosts