Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // proxy.pac file for eduProxy
- // For version: 1.4-14.el6
- // Generated on host: 8715prx01
- function FindProxyForURL(url, host) {
- // Normalize the URL for pattern matching
- url = url.toLowerCase();
- host = host.toLowerCase();
- // Send plain hostnames out directly
- if (isPlainHostName(host)) return "DIRECT";
- // Send requests for myself directly to myself
- if (shExpMatch(host, "eduproxy") || shExpMatch(host, "8715prx01") || shExpMatch(host, "8715prx01.services.education.vic.gov.au")) return "DIRECT";
- // Force requests for eduSTAR CDN through eduProxy, regardless of IP detection checks
- if (shExpMatch(host, "cdn.edustar.vic.edu.au")) return "PROXY 10.129.80.19:8080";
- // If the user has entered something that looks like an IP address, go direct
- reip = /^\d+\.\d+\.\d+\.\d+$/g;
- if (reip.test(host)) {
- if (isInNet(host, "10.0.0.0", "255.0.0.0") || isInNet(host, "192.168.0.0", "255.255.0.0")) return "DIRECT";
- }
- // Full hostname must have been entered - attempt DNS lookup and if destination host is on private IP, go direct
- var resolved_ip = dnsResolve(host);
- if (
- isInNet(resolved_ip, "10.0.0.0", "255.0.0.0") ||
- isInNet(resolved_ip, "172.16.0.0", "255.240.0.0") ||
- isInNet(resolved_ip, "192.168.0.0", "255.255.0.0") ||
- isInNet(resolved_ip, "127.0.0.0", "255.255.255.0")
- ) return "DIRECT";
- // Auto-config mode selected: BASIC
- // Auto-config domain exclusion list: returning data for 9 domains
- if (dnsDomainIs(host, "staff.jdlf.com.au") || (host == "staff.jdlf.com.au")) return 'DIRECT';
- if (dnsDomainIs(host, "education.vic.gov.au") || (host == "education.vic.gov.au")) return 'DIRECT';
- if (dnsDomainIs(host, "eduweb.vic.gov.au") || (host == "eduweb.vic.gov.au")) return 'DIRECT';
- if (dnsDomainIs(host, "edumail.vic.gov.au") || (host == "edumail.vic.gov.au")) return 'DIRECT';
- if (dnsDomainIs(host, "sso.clickview.com.au") || (host == "sso.clickview.com.au")) return 'DIRECT';
- if (dnsDomainIs(host, ".akamaiedge.net") || (host == ".akamaiedge.net")) return 'DIRECT';
- if (dnsDomainIs(host, "akamaiedge.net") || (host == "akamaiedge.net")) return 'DIRECT';
- if (dnsDomainIs(host, "sccmconnected-a01.cloudapp.net") || (host == "sccmconnected-a01.cloudapp.net")) return 'DIRECT';
- if (dnsDomainIs(host, "ticketmaster.com.au") || (host == "ticketmaster.com.au")) return 'DIRECT';
- if (dnsDomainIs(host, ".vcaa.vic.edu.au") || (host == ".vcaa.vic.edu.au")) return 'DIRECT';
- if (dnsDomainIs(host, "vcaa.vic.edu.au") || (host == "vcaa.vic.edu.au")) return 'DIRECT';
- if (dnsDomainIs(host, "roblox.com") || (host == "roblox.com")) return 'DIRECT';
- if (dnsDomainIs(host, "roblox.com") || (host == "setup.rbxcdn.com")) return 'DIRECT';
- if (dnsDomainIs(host, "roblox.com") || (host == "setup.roblox.com")) return 'DIRECT';
- if (dnsDomainIs(host, "roblox.com") || (host == "assetgame.roblox.com")) return 'DIRECT';
- if (dnsDomainIs(host, "roblox.com") || (host == "chatsite.roblox.com")) return 'DIRECT';
- if (dnsDomainIs(host, "roblox.com") || (host == "chat.roblox.com")) return 'DIRECT';
- if (dnsDomainIs(host, "roblox.com") || (host == "versioncompatibility.api.roblox.com")) return 'DIRECT';
- if (dnsDomainIs(host, "roblox.com") || (host == "clientsettings.api.roblox.com")) return 'DIRECT';
- if (dnsDomainIs(host, "roblox.com") || (host == "api.roblox.com")) return 'DIRECT';
- // Otherwise, use local eduProxy
- return "PROXY 10.129.80.19:8080";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement