Showing posts with label Hosts. Show all posts
Showing posts with label Hosts. Show all posts

Sunday, March 16, 2008

Modify hosts file to access blogspot.com

72.14.219.190 yourblogname.blogspot.com
add this line to /etc/hosts or C:\windows\system32\drivers\etc\hosts file end.

首先,在任意目录( 比如C:\)下面,建立一个proxy.pac文件(文本文件,用notepad来写即可)
在该文件中,写入以下内容:

function FindProxyForURL(url, host)
{
if ( dnsDomainIs(host, ".blogspot.com")){
return "PROXY 72.14.219.190:80";
}
if(dnsDomainIs(host, ".wikipedia.org")){
return "PROXY 66.230.200.101:80";
}
if(dnsDomainIs(host, ".wordpress.com")){
return "PROXY 72.232.101.41:80";
}
if(dnsDomainIs(host, ".livejournal.com")){
return "PROXY 204.9.177.19:80";
}
}

在Firefox中,Tools->Options->Advanced->Network->Settings,在Automatic proxy configuration URL中,填入file:///C:/proxy.pac
按Reload按钮,然后重启Firefox

Reference:
http://www.kompakar.com.cn/kukoo/?p=189

Friday, May 11, 2007

Firefox和IE的本地域名解析区别

Firefox 会在启动时就读取/etc/hosts(linux)里的设置,如果修改了这个文件,IE是即时生效的,而firefox只有再次重启才会使/etc/hosts文件里的解析生效,windows 里这个文件一般是在C:/windows/system32/drivers/etc/中。