Hi,
If you want to match specific sites (URL's) you will need to use shExpMatch to match the domain and path.
Just off the top of my head, a wpad.dat file to do what you ask would look like this (replace 10.0.41.15:8080 with your proxy IP and port):
function FindProxyForURL(url, host)
{
// Add hostname exceptions for sites you do want to proxy
// First line is a normal web site
// Second line is a HTTPS or site with a different port number other than 80
if(shExpMatch(url,"*.proxythis.com/*")) { return "PROXY 10.0.41.15:8080"; }
if(shExpMatch(url,"*.proxythis.com:*/*")) { return "PROXY 10.0.41.15:8080"; }
// If no matches found, use default route
return "DIRECT";
}
I should also point out that in some versions of Internet Explorer the browser will try and go direct to the Internet even if you tell it not to by checking "Automatically detect network settings". The only way to force it to use the WPAD file is to firewall off port 80 and 443 unless it comes from the proxy IP, but this of course would defeat the object of what you want your WPAD file to do.
I am not sure if these bugs have been fixed in later versions of IE.
Good luck