Is there an example of a customized PAC file for Explicit Proxy?
function FindProxyForURL(url, host)
{
if (isPlainHostName(host))
return "DIRECT";
if (url.substring(0, 4) == "ftp:")
return "DIRECT";
if (isInNet(host, "10.0.0.0", "255.0.0.0")
|| isInNet(host, "172.16.0.0", "255.240.0.0")
|| isInNet(host, "192.168.0.0", "255.255.0.0")
|| isInNet(host, "169.254.0.0", "255.255.0.0")
|| isInNet(host, "127.0.0.0", "255.255.255.0"))
return "DIRECT";
return "PROXY proxy.threatpulse.net:8080; DIRECT";
}
function FindProxyForURL(url, host)
{
if (isPlainHostName(host))
return "DIRECT";
if (url.substring(0, 4) == "ftp:")
return "DIRECT";
if (isInNet(host, "10.0.0.0", "255.0.0.0")
|| isInNet(host, "172.16.0.0", "255.240.0.0")
|| isInNet(host, "192.168.0.0", "255.255.0.0")
|| isInNet(host, "169.254.0.0", "255.255.0.0")
|| isInNet(host, "127.0.0.0", "255.255.255.0"))
return "DIRECT";
// Bypass one specific IP address (example only).
if ( isInNet(host, "203.0.113.1", "255.255.255.255") )
return "DIRECT";
// Bypass specific host (include both wildcard and non-wildcard expression).
if ( shExpMatch(host, '*.google.com') || shExpMatch(host, 'google.com') )
return "DIRECT";
// Bypass hostname/domain (of BCCA-as-IDP for SAML IDP).
if ( (host == "host") ||
(host == "host.domain.invalid") ||
dnsDomainIs(host, ".domain.invalid") )
return "DIRECT";
// Send *only* HTTP/HTTPS (80/443) traffic to Cloud.
if ( (url.substring(0, 5) == "http:") ||
(url.substring(0, 6) == "https:") )
return "PROXY proxy.threatpulse.net:8080; DIRECT";
return "DIRECT";
}