[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 697
  • Last Modified:

PAC file not working with Internet Explorer

Hi, I am trying to get a .PAC file working in our environment, but I cannot get it work at all in Internet Explorer. It is suppose to be pointing onLAN to Telstra's MessageLabs proxy and offLAN direct. I have tried Internet Explorer 6,7,8 and 9, and all fail to work. However, I have tried the PAC file in firefox and it works correctly. The Pac file is sitting in the c: drive at the moment and I reference it by "file:///c:/proxy.pac". I have also tried the basic "c:\proxy.pac" to no success. I have checked that there is nothing being pushed out by Group Policy that should affect it, but I am sure which settings could interfere with a PAC file this way. But to be sure I have tried on both machines on and off our network. Below is the copy of the script I have used;

function FindProxyForURL(url, host)
{
if (isInNet(myIpAddress(), "10.0.0.0", "255.255.255.0"))
return "PROXY proxy1.ap.webscanningservice.com:3128";
else
return "DIRECT";
}

The PAC file itself works well in firefox, but does not seem to be referenced at all in Internet Explorer. Any ideas or suggestions would be greatly appreciated as i am running out of ideas as to why it is not working.

Kind Regards,
Josh
0
NWRH ICT
Asked:
NWRH ICT
1 Solution
 
stergiumCommented:
hello Josh.
This link contains what you need to know about pac files and how to use them. http://support.microsoft.com/kb/271361 . maybe silly but try this one
function FindProxyForURL(url, host)
{
if (isInNet(myIpAddress(), "10.0.0.0", "255.255.255.0")) return "PROXY proxy1.ap.webscanningservice.com:3128";
else
return "DIRECT";
}

please feedback
0
 
NWRH ICTAuthor Commented:
Hi Stergium,

This worked a treat. I also had to change my script path to file://c:/proxy.pac.
Thanks very much.

Josh
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now