Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

PAC files with exceptions list

  • 05-01-2007 05:54PM
    #1
    Registered Users, Registered Users 2 Posts: 68 ✭✭


    Is it possible within a PAC file referencing a number of internet proxies to associate a proxy exception list with one specific internet proxy only.

    Example

    function FindProxyForURL(url, host) {

    if (url.substring(0, 27) == "http://foonet.foo-uk.intra/" ) {
    return "PROXY interfastpxy:8080";
    }

    if (url.substring(0, 24) == "https://shared-workspaces" ) {
    return "PROXY interfastpxy1:8080"; I want my list of exceptions to be associated with this proxy only
    }

    if (url.substring(0, 29) == "http://10.198.14.155/thintranet" ) {
    return "PROXY interfastpxy:8080";
    }


    // All other requests go through port 8080 of isa server
    return "PROXY interfastpxy:8080";
    }



    tanx
    alan:cool:


Comments

  • Registered Users, Registered Users 2 Posts: 68 ✭✭alancool


    Good morning maybe I should clarify what I would like to do.

    Currently my client IE settings are configured to use interfastpxy1 on port 8080 and there are a bunch of exceptions listed. I would like to use a pac file to achive this. Can anyone help?


  • Moderators, Recreation & Hobbies Moderators, Science, Health & Environment Moderators, Technology & Internet Moderators Posts: 96,136 Mod ✭✭✭✭Capt'n Midnight


    yeah - here is a large one here to look at for examples

    www.schooner.com/~loverso/no-ads/

    of course microsoft's auto detect implimentation is messy, there are DNS and DHCP go figures - much easier to just type in the file location at first or you may have to change IE's proxy cache time if you intend to use fail over proxies.


  • Registered Users, Registered Users 2 Posts: 68 ✭✭alancool


    Tanx Capt'n Midnight your alway good for help but that PAC file was too complicated for little me.:D

    It took a bit of trial and error but the key syntax was:

    if (shExpMatch(host,"10.198.8.8") || shExpMatch(host,"10.198.10.12")) {
    return "DIRECT";


    Tanx
    Alan:cool:


Advertisement