WindowsでPROXYの設定を行う場合
Proxyサーバをスクリプトで自動設定する
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";
}
上記内容のファイルを適当なWWWサーバに設置すればいい らしい
名前を proxy.pac という名称にして
インターネットエクスプローラーの、自動構成スクリプトを使用するにチェックを入れて、
ウェブサーバのアドレスを指定する
http://192.168.0.10/proxy.pac
PROXYサーバーが、192.168.0.10の場合 Windows XP SP3 の例
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"NoNetAutodial"=dword:00000000
"MigrateProxy"=dword:00000001
"EnableNegotiate"=dword:00000001
"EmailName"="IEUser@"
"AutoConfigProxy"="wininet.dll"
"MimeExclusionListForCache"="multipart/mixed multipart/x-mixed-replace multipart/x-byteranges "
"WarnOnPost"=hex:01,00,00,00
"UseSchannelDirectly"=hex:01,00,00,00
"EnableHttp1_1"=dword:00000001
"PrivacyAdvanced"=dword:00000000
"UrlEncoding"=dword:00000000
"SecureProtocols"=dword:000000a0
"PrivDiscUiShown"=dword:00000001
"DisableCachingOfSSLPages"=dword:00000000
"WarnonZoneCrossing"=dword:00000000
"CertificateRevocation"=dword:00000000
"ZonesSecurityUpgrade"=hex:48,5b,90,65,eb,83,cd,01
"ProxyEnable"=dword:00000001
"ProxyServer"="192.168.0.10:8080"
"ProxyOverride"="192.168.0.*;192.168.1.*;<local>"
"EnableAutodial"=dword:00000000
上記設定内容を、proxyset.reg などというファイル名にして、設定したい端末でダブルクリックする。