Windows NT/2000/XP/Vista:默认位置为<code>%SystemRoot%\system32\drivers\etc\</code>,但也可以改变。动态目录由注册表键<code>\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ Services\Tcpip\Parameters\DataBasePath</code>决定。 Windows 95/98/Me:<code>%WinDir%\</code> Linux及其它类Unix操作系统:<code>/etc</code> Mac OS 9及更早的系统:System Folder: Preferences或System folder (文件格式可能与Windows和Linux所对应的文件不同) Mac OS X:<code>/private/etc</code> (使用BSD风格的hosts文件) OS/2及eComStation:<code>"bootdrive":\mptn\etc\</code> Symbian第1/2版手机:<code>C:\system\data\hosts</code> Symbian第3版手机:<code>C:\private\10000882\hosts</code>,只能使用兼容 AllFiles的文件浏览器访问,大部分都不行[1]。
Adblock ARPANET 计算机病毒 DNS Resolv.conf 恶意软件 间谍软件 TCP/IP协议 特洛伊木马 (电脑) 类Unix系统 Microsoft Windows
参考文献及注释
^ (英文)Hosts file on S60 3.x Devices(2007年12月2日).于2008年2月26日查阅.
外部链接
(英文)Why Should You Wait for Internet Propagation? – hosts的另一个用途 (英文)Using a hosts file to remove ads without getting broken images - 使用hosts文件来更方便地浏览网站 (英文)一个示例文件