I had someone ask me for help writing a Proxy AutoConfiguration script today. PAC files are basically simple JavaScript files that expose one function, FindProxyForURL(url, host) . The function returns a string containing a list of one or more proxies