pac文件模板

//
// Define the network paths (direct, proxy and deny)
//

// Default connection
var direct = "DIRECT";

// Alternate Proxy Server
var proxy = "SOCKS 127.0.0.1:1080";

// Default localhost for denied connections
var deny = "PROXY 127.0.0.1:80";

// Proxy Logic
//

function FindProxyForURL(url, host)
{

// use proxy
if (dnsDomainIs(host, "google.com")
  || dnsDomainIs(host, "twitter.com")
  || dnsDomainIs(host, "facebook.com"))
  { return proxy; }
 else
  { return direct; }

}

Published by

@XiaoKyun

双鱼男,过分热心的好人。