Last active
November 8, 2017 06:26
-
-
Save abbasfaisal/554821b3ee4f8af9d19eeb28b4bd2811 to your computer and use it in GitHub Desktop.
This file contains 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) { | |
/*********************** URL MATCHING ***********************/ | |
/************************************************************/ | |
/*********************** HOST MATCHING ************************/ | |
if (shExpMatch(host, "*.4shared.com") || host=="4shared.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.jiveon.com") || host=="jiveon.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.servicebus.windows.net") || host=="servicebus.windows.net") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.my.bitcasa.com") || host=="my.bitcasa.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.idrive.com") || host=="idrive.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.box.com") || host=="box.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.users.storage.live.com") || host=="users.storage.live.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.accounts.google.com") || host=="accounts.google.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.one.ubuntu.com") || host=="one.ubuntu.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.attachment.outlook.office.net") || host=="attachment.outlook.office.net") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.cloud.digitalocean.com") || host=="cloud.digitalocean.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.teams.skype.com") || host=="teams.skype.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.yammerusercontent.com") || host=="yammerusercontent.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.content.force.com") || host=="content.force.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.onedrive.com") || host=="onedrive.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.sugarsync.com") || host=="sugarsync.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.webcargo.net") || host=="webcargo.net") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.salesforce.com") || host=="salesforce.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.www.4shared.com") || host=="www.4shared.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.office.com") || host=="office.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.teams.microsoft.com") || host=="teams.microsoft.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.onedrive.live.com") || host=="onedrive.live.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.exportwriter.zoho.com") || host=="exportwriter.zoho.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.outlook.com") || host=="outlook.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.apps.groupdocs.com") || host=="apps.groupdocs.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.mycloud.rackspace.com") || host=="mycloud.rackspace.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.my.joyentcloud.com") || host=="my.joyentcloud.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.officeapps.live.com") || host=="officeapps.live.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.calendar.google.com") || host=="calendar.google.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.login.ubuntu.com") || host=="login.ubuntu.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.dropbox.com") || host=="dropbox.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.afx.ms") || host=="afx.ms") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.oxygencloud.com") || host=="oxygencloud.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.www.sugarsync.com") || host=="www.sugarsync.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.livefilestore.com") || host=="livefilestore.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.clients5.google.com") || host=="clients5.google.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.sharefile.com") || host=="sharefile.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.dropboxusercontent.com") || host=="dropboxusercontent.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.owncloud.com") || host=="owncloud.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.centraldesktop.com") || host=="centraldesktop.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.svc.ms") || host=="svc.ms") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.www.centraldesktop.com") || host=="www.centraldesktop.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.googleusercontent.com") || host=="googleusercontent.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.assets-yammer.com") || host=="assets-yammer.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.amazon.com") || host=="amazon.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.drive.amazonaws.com") || host=="drive.amazonaws.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.wgw.oxygencloud.com") || host=="wgw.oxygencloud.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.force.com") || host=="force.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.ccloud.com") || host=="ccloud.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.boxcloud.com") || host=="boxcloud.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.www.opendrive.com") || host=="www.opendrive.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.live.com") || host=="live.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.box.net") || host=="box.net") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.docs.google.com") || host=="docs.google.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.signin.aws.amazon.com") || host=="signin.aws.amazon.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.login.microsoftonline.com") || host=="login.microsoftonline.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.mail.google.com") || host=="mail.google.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.msg.skype.com") || host=="msg.skype.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.drive.google.com") || host=="drive.google.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.microsoftonline.com") || host=="microsoftonline.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.files.1drv.com") || host=="files.1drv.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.rapidshare.com") || host=="rapidshare.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.amazonaws.com") || host=="amazonaws.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.graph.microsoft.com") || host=="graph.microsoft.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.sharepoint.com") || host=="sharepoint.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.attachment.outlook.live.net") || host=="attachment.outlook.live.net") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.smartfile.com") || host=="smartfile.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.outlook.office.net") || host=="outlook.office.net") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.demo.owncloud.org") || host=="demo.owncloud.org") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.www.ccloud.com") || host=="www.ccloud.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.4sync.com") || host=="4sync.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.login.live.com") || host=="login.live.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.boxcdn.net") || host=="boxcdn.net") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.opendrive.com") || host=="opendrive.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.clients6.google.com") || host=="clients6.google.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.www.idrive.com") || host=="www.idrive.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.bitcasa.com") || host=="bitcasa.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.clients3.google.com") || host=="clients3.google.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.cfsusercontent.io") || host=="cfsusercontent.io") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.app.sugarsync.com") || host=="app.sugarsync.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.evernote.com") || host=="evernote.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.skyapi.live.net") || host=="skyapi.live.net") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.office365.com") || host=="office365.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.jiv.com") || host=="jiv.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.android.clients.google.com") || host=="android.clients.google.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.joyentcloud.com") || host=="joyentcloud.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.login.windows.net") || host=="login.windows.net") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.mediap.svc.ms") || host=="mediap.svc.ms") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.www.webcargo.net") || host=="www.webcargo.net") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.filedropper.com") || host=="filedropper.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.yammer.com") || host=="yammer.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.digitalbucket.net") || host=="digitalbucket.net") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.inbox.google.com") || host=="inbox.google.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.seacloud.cc") || host=="seacloud.cc") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.portal.cloudprovider.net") || host=="portal.cloudprovider.net") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.backup.filesanywhere.com") || host=="backup.filesanywhere.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.console.aws.amazon.com") || host=="console.aws.amazon.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.googledrive.com") || host=="googledrive.com") { return "PROXY 192.168.0.102:3128"; } | |
if (shExpMatch(host, "*.api.onedrive.com") || host=="api.onedrive.com") { return "PROXY 192.168.0.102:3128"; } | |
/*************************************************************/ | |
return "DIRECT"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment