wpad.datThe browser looks for host with the name wpad in the local domain (ie: wpad.martin.cc). If located it will the try to fetch the URL http://wpad.martin.cc/wpad.dat from the host. A sample wpad.dat file is provided below:
function FindProxyForURL(url, host)
{
// alert("my IP address is " + myIpAddress() );
if (isInNet(myIpAddress(), "192.168.4.0", "255.255.255.0"))
{
// alert ("using proxy");
return "PROXY proxy.martin.cc:8888";
}
else
{
// alert("going direct");
return "DIRECT";
}
}
|