Last active
December 12, 2025 03:03
-
-
Save onilton/953ff1604065cd13e5e7eec6dc5bca1b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function FindProxyForURL(url, host) { | |
| // Proxy Microsoft and Azure AVD traffic | |
| if (shExpMatch(host, "*.whatismyipaddress.com") || | |
| shExpMatch(host, "whatismyipaddress.com") || | |
| // OFFICIAL LIST from | |
| // https://learn.microsoft.com/en-us/azure/virtual-desktop/required-fqdn-endpoint?tabs=azure | |
| shExpMatch(host, "login.microsoftonline.com") || | |
| shExpMatch(host, "*.wvd.microsoft.com") || | |
| shExpMatch(host, "*.servicebus.windows.net") || | |
| shExpMatch(host, "go.microsoft.com") || | |
| shExpMatch(host, "aka.ms") || | |
| shExpMatch(host, "learn.microsoft.com") || | |
| shExpMatch(host, "privacy.microsoft.com") || | |
| shExpMatch(host, "*.cdn.office.net") || | |
| shExpMatch(host, "graph.microsoft.com") || | |
| shExpMatch(host, "windows.cloud.microsoft") || | |
| shExpMatch(host, "windows365.microsoft.com") || | |
| shExpMatch(host, "ecs.office.com") || | |
| shExpMatch(host, "*.events.data.microsoft.com") || | |
| shExpMatch(host, "*.microsoftaik.azure.net") || | |
| shExpMatch(host, "www.microsoft.com") || | |
| shExpMatch(host, "*.aikcertaia.microsoft.com") || | |
| shExpMatch(host, "azcsprodeusaikpublish.blob.core.windows.net") || | |
| // // Expanded Official List | |
| // shExpMatch(host, "*.login.microsoftonline.com") || | |
| // shExpMatch(host, "*.go.microsoft.com") || | |
| // shExpMatch(host, "*.aka.ms") || | |
| // shExpMatch(host, "*.learn.microsoft.com") || | |
| // shExpMatch(host, "*.privacy.microsoft.com") || | |
| // shExpMatch(host, "*.graph.microsoft.com") || | |
| // shExpMatch(host, "*.windows.cloud.microsoft") || | |
| // shExpMatch(host, "*.windows365.microsoft.com") || | |
| // shExpMatch(host, "*.ecs.office.com") || | |
| // shExpMatch(host, "*.microsoft.com") || | |
| // shExpMatch(host, "*.azcsprodeusaikpublish.blob.core.windows.net") || | |
| // // OTHERS | |
| // shExpMatch(host, "*.remoteapp.windowsazure.com") || | |
| // // Microsoft / Azure Virtual Desktop Core | |
| // shExpMatch(host, "*.client.wvd.microsoft.com") || | |
| // shExpMatch(host, "*.rdweb.wvd.microsoft.com") || | |
| // shExpMatch(host, "*.rdweb-g-us-r1.wvd.microsoft.com") || | |
| // shExpMatch(host, "*.afdfp-rdgateway-r1.wvd.microsoft.com") || | |
| // shExpMatch(host, "*.rdgateway-r1.wvd.microsoft.com") || | |
| // // Microsoft Identity & Portal | |
| // shExpMatch(host, "*.login.microsoftonline.com") || | |
| // shExpMatch(host, "login.microsoftonline.com") || | |
| // shExpMatch(host, "*.office.com") || | |
| // shExpMatch(host, "*.go.microsoft.com") || | |
| // shExpMatch(host, "*.aka.ms") || | |
| // shExpMatch(host, "*.microsoft.com") || | |
| // // Microsoft Services & CDN | |
| // shExpMatch(host, "*.privacy.microsoft.com") || | |
| // shExpMatch(host, "*.learn.microsoft.com") || | |
| // shExpMatch(host, "*.servicebus.windows.net") || | |
| // shExpMatch(host, "*.cdn.office.net") || | |
| // shExpMatch(host, "*.graph.microsoft.com") || | |
| // shExpMatch(host, "*.windows.cloud.microsoft") || | |
| // shExpMatch(host, "*.windows365.microsoft.com") || | |
| // shExpMatch(host, "*.ecs.office.com") || | |
| // shExpMatch(host, "*.events.data.microsoft.com") || | |
| // shExpMatch(host, "*.microsoftaik.azure.net") || | |
| // shExpMatch(host, "*.aikcertaia.microsoft.com") || | |
| // shExpMatch(host, "*.azcsprodeusaikpublish.blob.core.windows.net") || | |
| // shExpMatch(host, "*.aadcdn.msftauth.net") || | |
| // shExpMatch(host, "*.a-0016.a-msedge.net") || | |
| // shExpMatch(host, "*.cloudapp.azure.com") || | |
| // // shExpMatch(host, "*.onedscolprdjpw00.japanwest.cloudapp.azure.com") || | |
| // // shExpMatch(host, "*.onedscolprdgwc03.germanywestcentral.cloudapp.azure.com") || | |
| // shExpMatch(host, "*.afdfp-rdgateway-r1.wvd.microsoft.com") || | |
| // shExpMatch(host, "*.in.appcenter.ms") || | |
| // shExpMatch(host, "*.onedscolprdwus21.westus.cloudapp.azure.com") || | |
| // shExpMatch(host, "*.mobile.events.data.microsoft.com") || | |
| // shExpMatch(host, "*.onedscolprdcus18.centralus.cloudapp.azure.com") || | |
| // shExpMatch(host, "*.waws-prod-bn1-0a184d0f.sip.p.azurewebsites.windows.net") || | |
| // shExpMatch(host, "*.www.tm.a.prd.aadg.trafficmanager.net") || | |
| // shExpMatch(host, "*.aadcdn.msauth.net") || | |
| // shExpMatch(host, "*.part-0006.t-0009.fb-t-msedge.net") || | |
| // shExpMatch(host, "*.browser.events.data.microsoft.com") || | |
| // // shExpMatch(host, "*.onedscolprdjpe04.japaneast.cloudapp.azure.com") || | |
| // // shExpMatch(host, "*.onedscolprdwus11.westus.cloudapp.azure.com") || | |
| // // shExpMatch(host, "*.onedscolprdwus20.westus.cloudapp.azure.com") || | |
| // // shExpMatch(host, "*.onedscolprdwus13.westus.cloudapp.azure.com") || | |
| // // shExpMatch(host, "*.onedscolprdeus06.eastus.cloudapp.azure.com") || | |
| // // shExpMatch(host, "*.onedscolprdaus00.australiasoutheast.cloudapp.azure.com") || | |
| // // shExpMatch(host, "*.onedscolprdcus06.centralus.cloudapp.azure.com") || | |
| // debugging | |
| shExpMatch(host, "ifconfig.me") || | |
| shExpMatch(host, "*.ifconfig.me")) { | |
| return "SOCKS5 127.0.0.1:1080; SOCKS 127.0.0.1:1080"; // REPLACE WITH YOUR PROXY | |
| } | |
| // Direct connection for everything else | |
| return "DIRECT"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment