function FindProxyForURL(url, host) { if ( shExpMatch(host, "*.microsoftonline.com") || shExpMatch(host, "*.aadcdn.microsoftonline-p.com") || shExpMatch(host, "*.msauth.net") || shExpMatch(host, "*.msftauth.net") || shExpMatch(host, "*.msauthimages.net") || shExpMatch(host, "*.office.com") || shExpMatch(host, "*.office.net") || shExpMatch(host, "*.live.com") || shExpMatch(host, "*.microsoft.com") || shExpMatch(host, "*.cloudflare.com") || shExpMatch(host, "*.cloudflareinsights.com") || shExpMatch(host, "*.cloudflareaccess.com") || shExpMatch(host, "m365.cloud.microsoft") || shExpMatch(host, "geolocation.onetrust.com")) { return "DIRECT"; } return "PROXY invalid.proxy:8080"; }