Autoproxy for browsing

I should have set this up years ago.


[nic@lode:~] cat /var/www/autoproxy.pac
function FindProxyForURL(url, host)
{
if (isPlainHostName(host) || isInNet(host, "192.168.0.1", "255.255.255.0")
|| isInNet(host, "192.168.0.2", "255.255.255.0")
)
return "DIRECT";
else
return "PROXY 192.168.0.1:3128; DIRECT";
}

Comments are closed.