Hi all! :)
our internet is filtered externally and we are given a list of proxies to use such as...
proxy.server.com:6671 - for educational sites (basicaly blocks myspace, youtube)
proxy.server.com:6672 - for most web sites (blocks google images and inappropriate content)
proxy.server.com:6673 - very strict filtering for images but let you on to google images and yahoo images mainly
proxy.server.com:6674 - library filter (lets you on wiki and thats about it)
and i've been doing some experimenting with .pac files and trying to get different web sites to use different proxies but so far i've been unsuccessful.
Just wondering if anyone has tried something like this before or has any advice?
heres the .pac file i've been using
With this pac code whatever the first site/proxy is it will use that one.Code:function FindProxyForURL(url, host)
{
if (isPlainHostName(url, host))
return "DIRECT";
else if (shExpMatch(url, "*.facebook.com/*")) return "PROXY proxy.server.com:6672";
else if (shExpMatch(url, "*.myspace.com/*")) return "PROXY proxy.server.com:6672";
else if (shExpMatch(url, "*.google.co.uk/*")) return "PROXY proxy.server.com:6673";
else if (shExpMatch(url, "*.google.com/*")) return "PROXY proxy.server.com:6673";
else
return "PROXY proxy.server.com:6671";
}
Thanks in advance!
Jamie
