Solar
Well-Known Member
Those of you who are lucky enough to use a local proxy server to get international access when you are capped, might appreciate the following piece of info:
Having to switch MANUALLY between proxy and non-proxy for international and local traffic respectively isn't fun. Use the following script:
function FindProxyForURL(url, host)
{
if ( isInNet(host, "146.232.0.0" , "255.255.0.0"))
{ return "PROXY 192.168.0.2:3128"; }
else if ( isInNet(host, "196.0.0.0" , "255.0.0.0"))
{ return "PROXY 192.168.0.2:3128"; }
else if ( isInNet(host, "165.0.0.0" , "255.0.0.0"))
{ return "PROXY 192.168.0.2:3128"; }
else if ( isInNet(host, "168.210.0.0" , "255.255.0.0"))
{ return "PROXY 192.168.0.2:3128"; }
else
return "DIRECT";
}
So basically, what you do is,
1) save this file as PROXY.PAC on your drive somewhere.
2) Replace 192.168.0.2 with your own proxy server
3) Right click on Internet Explorer, go to PROPERTIES > CONNECTIONS > LAN SETTINGS > click USE AUTOMATIC CONFIGURATION SCRIPT
4) And enter the path to the PROXY.PAC file in the box, typically:
c:\proxy.pac
This doesn't work for ALL south african addresses, because there are some exceptions to the addresses I assumed, but it isn't noticable for normal browsing and downloading.
Try it, and let me know.
-Solar
Having to switch MANUALLY between proxy and non-proxy for international and local traffic respectively isn't fun. Use the following script:
function FindProxyForURL(url, host)
{
if ( isInNet(host, "146.232.0.0" , "255.255.0.0"))
{ return "PROXY 192.168.0.2:3128"; }
else if ( isInNet(host, "196.0.0.0" , "255.0.0.0"))
{ return "PROXY 192.168.0.2:3128"; }
else if ( isInNet(host, "165.0.0.0" , "255.0.0.0"))
{ return "PROXY 192.168.0.2:3128"; }
else if ( isInNet(host, "168.210.0.0" , "255.255.0.0"))
{ return "PROXY 192.168.0.2:3128"; }
else
return "DIRECT";
}
So basically, what you do is,
1) save this file as PROXY.PAC on your drive somewhere.
2) Replace 192.168.0.2 with your own proxy server
3) Right click on Internet Explorer, go to PROPERTIES > CONNECTIONS > LAN SETTINGS > click USE AUTOMATIC CONFIGURATION SCRIPT
4) And enter the path to the PROXY.PAC file in the box, typically:
c:\proxy.pac
This doesn't work for ALL south african addresses, because there are some exceptions to the addresses I assumed, but it isn't noticable for normal browsing and downloading.
Try it, and let me know.
-Solar