Okay, here's a puzzle...at least it is for me.
We're using a PAC file to restrict access to certain websites.
We've got several proxy servers, but our own dept has no authorisation on those servers to change something, so that's why we're using this system.
The system is very simple:
- if the URL is registered, return the correct proxy server address for that URL
- if the URL is NOT registered, return a non-existing proxy server address for that URL -> ergo, time-out.
Now, I'd like to change this last piece.
If the URL is NOT registered, I'd like to 'redirect' the request to another page on our intranet-site, which sais something like "The page you requested is not registered in the list of authorized URL's. If you need to access this page, submit a change-request at this e-mail adres <bla@bladiebla.bla>".
However, I don't know if this is possible with only a PAC file.
The current pac file is build as this: (specifics removed because of confidentiality):function FindProxyForURL(url, host)
{
if (isPlainHostName(host) ||
dnsDomainIs(host, ".ourinternaldomain.com") ||
dnsDomainIs(host, ".ourolddomain.com") ||
localHostOrDomainIs(host, "127.0.0.1"))
return "DIRECT";
else if (dnsDomainIs(host, ".customerdomain1.com") ||
dnsDomainIs(host, ".customerdomain2.com"))
return "PROXY thespecialproxyserver.ourdomain.com:8080";
else if (dnsDomainIs(host, ".ourdomain.com") ||
dnsDomainIs(host, ".google.nl") ||
dnsDomainIs(host, ".dell.com"))
return "PROXY thenormalproxyserver.ourdomain.com:8080";
else return "127.0.0.1";
}
Any hints would be very welcome!