Proxy Bypass PAC example. 


The CSC reads the values of Section 3 (in Bold). Other values are to comply with the PAC format. 


function FindProxyForURL(url, host) {


    // The value of bypassproxy here is not relevant. Leave this value as-is. 

    var bypassproxy = "PROXY 172.16.1.1:3128";


    // =========================================================

    // Section 3: bypassproxy via Cloud Security Connectors


    // bypassproxy via CSC Public IPs (Examples)

    // O365 Domains for ConditionalAccess

    if ((shExpMatch(host, "login.microsoftonline.com")) ||

        (shExpMatch(host, "login.microsoft.com")) ||

        (shExpMatch(host, "login.windows.net")) ||

        // IP / Port test page

        (shExpMatch(host, "portquiz.net"))) {

        return bypassproxy

    }

    // =========================================================


    // This return sentence does nothing. It is for script compatibility purposes only. 

    return bypassproxy

}