Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:" "*;"

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

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

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

share|improve this question

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

share|improve this answer
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 2 '12 at 8:19
I found out how to fix it by trial and error. You can debug it:… – Artur Carvalho Jan 2 '12 at 9:16
Thanks +1 for this utility ! – Dom Jan 2 '12 at 9:39
up vote 0 down vote accepted

Found the solution with this

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.