KEMBAR78
Proxy | PDF | Proxy Server | Application Layer Protocols
0% found this document useful (0 votes)
211 views3 pages

Proxy

This PAC file defines a proxy configuration for the host 139.228.205.11. It specifies that most traffic should be sent through the proxy at webdefence.global.blackspider.com:8081, except for local hosts and domains, Windows updates, and some other excluded addresses. It also defines special proxy rules for HTTPS URLs and FTP URLs.

Uploaded by

localhost
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
211 views3 pages

Proxy

This PAC file defines a proxy configuration for the host 139.228.205.11. It specifies that most traffic should be sent through the proxy at webdefence.global.blackspider.com:8081, except for local hosts and domains, Windows updates, and some other excluded addresses. It also defines special proxy rules for HTTPS URLs and FTP URLs.

Uploaded by

localhost
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

//pacfile for 139.228.205.

11 from 2_979
function FindProxyForURL(url, host)
{
/* Convert the host parameter to lowercase
to facilitate case insensitive matching.
*/
host = host.toLowerCase();

/* Don't proxy local hostnames */


if (isPlainHostName(host))
{
return 'DIRECT';
}

/* always proxy on normal service address/port for the login host */


if (shExpMatch(host, '*proxy-login.blackspider.com'))
{
return 'PROXY webdefence.global.blackspider.com:8081';
}

/* Don't proxy local domains */


var domain_list = new Array("");
for (d in domain_list)
{
if ( dnsDomainIs(host, "." + domain_list[d] ) || host == domain_list[d] )
{
return 'DIRECT';
}
}

/* Don't proxy portal addresses */


if ((host == 'www.blackspider.com') ||
dnsDomainIs(host, '.mailcontrol.com') ||
(host == 'home.webdefence.global.blackspider.com') ||
(host == 'webdefence.global.blackspider.com') ||
(host == 'pac.webdefence.global.blackspider.com') ||
(host == 'pac.hybrid-web.global.blackspider.com') ||
(host == 'download.global.blackspider.com') ||
(host == 'mobile.websense.net') ||
(host == 'mdm.websense.net') ||
(host == 'admin.websense.net'))
{
return 'DIRECT';
}

/* Don't proxy Windows Update */


if ((host == "download.microsoft.com") ||
(host == "ntservicepack.microsoft.com") ||
(host == "cdm.microsoft.com") ||
(host == "wustat.windows.com") ||
(host == "windowsupdate.microsoft.com") ||
(dnsDomainIs(host, ".windowsupdate.microsoft.com")) ||
(host == "update.microsoft.com") ||
(dnsDomainIs(host, ".update.microsoft.com")) ||
(dnsDomainIs(host, ".windowsupdate.com")))
{
return 'DIRECT';
}
/* Don't proxy redirects to SSO gateway for local users */
if (false)
{
return 'DIRECT';
}

/* Send redirects to proxy on SSO gateway network for roaming users */


if (false)
{
return 'DIRECT';
}

/* Query page should always resolve to the proxy - even if it's treated as a
local address */
if (isResolvable(host) & !(shExpMatch(url,
'http://query.webdefence.global.blackspider.com/*')))
{
var hostIP = dnsResolve(host);

/* Don't proxy non-routable addresses (RFC 3330) */


if (isInNet(hostIP, '0.0.0.0', '255.0.0.0') ||
isInNet(hostIP, '10.0.0.0', '255.0.0.0') ||
isInNet(hostIP, '127.0.0.0', '255.0.0.0') ||
isInNet(hostIP, '169.254.0.0', '255.255.0.0') ||
isInNet(hostIP, '172.16.0.0', '255.240.0.0') ||
isInNet(hostIP, '192.0.2.0', '255.255.255.0') ||
isInNet(hostIP, '192.88.99.0', '255.255.255.0') ||
isInNet(hostIP, '192.168.0.0', '255.255.0.0') ||
isInNet(hostIP, '198.18.0.0', '255.254.0.0') ||
isInNet(hostIP, '224.0.0.0', '240.0.0.0') ||
isInNet(hostIP, '240.0.0.0', '240.0.0.0'))
{
return 'DIRECT';
}

/* Don't proxy local addresses */


if (false)
{
return 'DIRECT';
}
}

if (url.substring(0, 6) == 'https:')
{
var pats = new Array("");
for (i in pats)
{
if (shExpMatch(host, pats[i].toLowerCase()))
{
// non-SSL-terminate hosts must use the normal address/port
return 'PROXY webdefence.global.blackspider.com:8081';
}
}
}
if (url.substring(0, 5) == 'http:' || url.substring(0, 6) == 'https:')
{
return 'PROXY webdefence.global.blackspider.com:8081';
}
if (url.substring(0, 4) == 'ftp:')
{
// ftp must use the normal address/port
return 'PROXY webdefence.global.blackspider.com:8081';
}
return 'DIRECT';
}

You might also like