1

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?

Bart De Vos
  • 17,761
  • 6
  • 62
  • 81
Artur Carvalho
  • 356
  • 4
  • 13

2 Answers2

1

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

.*\.blabla\.com
Dom
  • 6,628
  • 1
  • 19
  • 24
  • Thank you DOM. Seems to be almost working. I had a typo. My main problem with these files is I don't know how to debug the file. Do you have any idea how to debug it? – Artur Carvalho Dec 30 '11 at 15:18
  • I dont' think you can debug these scripts. Type a new condition, test it, and add the next rule, then test it again, it is my proposition ! – Dom Jan 02 '12 at 08:19
  • 1
    I found out how to fix it by trial and error. You can debug it: http://stackoverflow.com/questions/621004/how-to-debug-a-javascript-proxy-pac-file-used-for-ie-proxy-settings – Artur Carvalho Jan 02 '12 at 09:16
0

Found the solution with this http://code.google.com/p/pacparser/.

Artur Carvalho
  • 356
  • 4
  • 13