Proxy Auto config (PAC) exception

pacPROXY

I want to configure a proxy pac file that has the same list of exception as the ones I have on IE -> Internet Options -> Connections -> LAN settings -> Advanced and after I can see the exception in the part that reads:

"Do not use proxy server for addresses beginning with:"
"*.blabla.com;"

I've tried using DnsDomainIs, shExpMatch (example below) and it does not go through.

function FindProxyForURL(url, host)
{
    if (shExpMatch(host, "*.blabla.com")) { return "DIRECT"; }
        ...

The PAC file is working fine for the rest. Can anybody see what am I missing here?

Best Answer

As it should be a regex, you should maybe do a

.*\.blabla\.com