工作需要建立浏览器proxy连接,设置如下
编写脚本如下 proxy.pac
function FindProxyForURL(url, host)
{
if (dnsDomainIs( host, "facebook.com" )) {
return "PROXY 192.168.3.1:38662";}
else if (dnsDomainIs( host, "fbcdn.net" )) {
return "PROXY 192.168.3.1:38662";}
else {
return "DIRECT";}
}
在firfox & IE里面使用自动代理设置