Skip to content

Instantly share code, notes, and snippets.

@normansolutions
Created March 28, 2020 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save normansolutions/e0b34d57985d09bd8533a33be25b01cb to your computer and use it in GitHub Desktop.
Save normansolutions/e0b34d57985d09bd8533a33be25b01cb to your computer and use it in GitHub Desktop.
HZG Proxy Pac File
function FindProxyForURL(url, host) {
// Your proxy server name and port
var proxy_yes = "PROXY proxylb.schoolsbroadband.net:31702";
var proxy_no = "DIRECT";
if (isInNet(myIpAddress(), "10.3.0.0", "255.255.0.0")) return proxy_no;
// DEFAULT RULE: All other traffic, send direct
return proxy_yes;
}
function FindProxyForURLEx(url, host) {
// Your proxy server name and port
var proxy_yes = "PROXY proxylb.schoolsbroadband.net:31702";
var proxy_no = "DIRECT";
if (isInNetEx(myIpAddress(), "10.3.0.0/16")) return proxy_no;
// DEFAULT RULE: All other traffic, send direct
return proxy_yes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment