最終更新:2010-10-28 (木) 01:05:31 (4922d)  

PAC
Top / PAC

JavaScriptを使ったProxyサーバの自動設定手段

もともとはNetscape Navigatorのために作られたもの

function FindProxyForURL(url,host)
{ if(isPlainHostName(host)||
    isInNet(host,"192.168.0.0","255.255.0.0")) return "DIRECT";
  else return "PROXY 192.168.0.10:8080; DIRECT";
}

関連