Forcepoint Web Proxy Pacfile.

function FindProxyForURL(url, host) {

host = host.toLowerCase();
url = url.toLowerCase();

// If the hostname matches, send direct.
if (dnsDomainIs(host, “.apple.com”) || host == “apple.com”) ||
(dnsDomainIs(host, “.skype.com”) || host == “skype.com”) ||
(dnsDomainIs(host, “.office365.com”) || host == “office365.com”) ||
(dnsDomainIs(host, “.azure.com”) || host == “azure.com”) ||
(dnsDomainIs(host, “.altium.com”) || host == “altium.com”))

{
return “DIRECT”;
}

// If the hostname matches, send direct.
if ( shExpMatch(url, “greenhulk:8080/“) ) { return “DIRECT”; } if ( shExpMatch(url, “greenhulk:8082/“) ) { return “DIRECT”; }
if ( shExpMatch(url, “greenhulk:8081/“) ) { return “DIRECT”; } if ( shExpMatch(url, “greenhulk:8083/“) ) { return “DIRECT”; }

var allowedUrls = new Array(
office365“,
gov.il“,
mrclab.com“,
sharepoint“,
cloudapp“,
outlook.cn“,
microsoftonline“,
netflix“,

);

for (index in allowedUrls)
{
if (shExpMatch(url, allowedUrls[index]))
{
return “DIRECT”;
}
}

// If its internal lan, send direct

if (isPlainHostName(host))
{
return “DIRECT”;
}

else
return “PROXY Servername.Domain.com:8080; DIRECT”;

}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.