急!hosts反黑好失灵

来源:百度知道 编辑:UC知道 时间:2024/05/26 23:58:43
我的hosts文件失去反黑的功效。而且在文件图标的左下角出现了一个黑色的小圆圈,我试了一下把百度加进去,还是能进入百度,说明失效了,请问大家 这是怎么回事。应该怎么办
现在那个黑色图标没有了。但屏蔽的功能还是没有,因为我拿百度试了一下,不行。下了个HOSTS修复了一下,还是不行

由于工作的需要,经常要修改C:\windows\system32\drivers\etc\hosts里面的域名指向。可是莫名其妙的是,自己电脑上的hosts文件修改了没有作用,google几天没有结果,郁闷。所幸的是还是找到了一篇高人的文章,原来是把 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Tcpip\Parameters里面的"DataBasePath"类型从"REG_SZ"修改为"REG_EXPAND_SZ"就OK了(需要重新启动计算机),据说可能是安装MSN 7.0/7.5后类型被修改了,而微软对这个完全没有说明,FT。

全文如下[地址:http://www.mcse.ms/archive62-2006-1-1880791.html]:

Open regedit and browse to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Tcpip\Parameters

Examine "DataBasePath" key in this node carefully.

If the path is set to %SystemRoot%\System32\drivers\etc and the key type is anything but REG_EXPAND_SZ, that is is your problem.

If the type is REG_SZ, edit the DatabasePath registry key and hardcode th entire pat