2007年7月19日

blogger访问技巧

伟大的GFW……一直限制着blogger。采用编辑hosts的办法,毕竟只能是加一个算一个,实际上 *.blogspot.com 有无限个,hosts文件需要无限大,这个是无法实现的。

以下的办法,可以使得全部的*.blogspot.com都可以访问到,而且一点也不影响其它网址,感觉上仿佛那堵墙不存在。

先打开编辑器,将以下代码存为blogger.pac。为了方便起见,上传到一个空间,google pages就不错。

function FindProxyForURL(url,host)
{
host=host.toLowerCase();
url = url.toLowerCase();
if(dnsDomainIs(host, ".blogspot.com"))
return "PROXY 72.14.219.190:80";
else return "DIRECT";
}


然后,在浏览器设置自动代理。

对于IE:
internet选项——连接——
(1)局域网设置——使用自动代理脚本,输入路径 http://xxx.xxx.xxx/blogger.pac。
(2)对于ADSL用户,还要选择默认拨号右侧的设置,然后同样是使用自动代理脚本,输入路径 http://xxx.xxx.xxx/blogger.pac。

对于FX:
工具->选项-> 高级->网络->设置...->选中自动代理配置url,输入路径 http://xxx.xxx.xxx/blogger.pac。

在这个方法中,将blogger.pac上传到网络是比较简单的办法,因为http://的格式比较标准,兼容性好。当然放在本地也是可以的,但是要注意的是,在IE中,协议是file://c:\blogger.pac,而在FX中是file:///c:/blogger.pac,注意/的个数与\的使用。

1 条评论:

Unknown 说...

更新pac文件

function FindProxyForURL(url,host)
{
host=host.toLowerCase();
url = url.toLowerCase();
if(dnsDomainIs(host, ".blogspot.com"))
return "PROXY 72.14.219.190:80";
if(dnsDomainIs(host, ".googlepages.com"))
return "PROXY 72.14.219.190:80";
if(dnsDomainIs(host, "pages.google.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";
else
return "DIRECT";
}