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

1 comment :

Celular said...

Hello. This post is likeable, and your blog is very interesting, congratulations :-). I will add in my blogroll =). If possible gives a last there on my blog, it is about the Celular, I hope you enjoy. The address is http://telefone-celular-brasil.blogspot.com. A hug.