PAC-file-EXAMPLE-PROXY


SUBMITTED BY: proudloyality88

DATE: Oct. 22, 2019, 11:48 a.m.

FORMAT: Text only

SIZE: 1.3 kB

HITS: 942

  1. function FindProxyForURL(url, host) {
  2. // If the hostname matches, send direct.
  3. if (dnsDomainIs(host, "intranet.domain.com") ||
  4. shExpMatch(host, "(*.abcdomain.com|abcdomain.com)"))
  5. return "DIRECT";
  6. // If the protocol or URL matches, send direct.
  7. if (url.substring(0, 4)=="ftp:" ||
  8. shExpMatch(url, "http://abcdomain.com/folder/*"))
  9. return "DIRECT";
  10. // If the requested website is hosted within the internal network, send direct.
  11. if (isPlainHostName(host) ||
  12. shExpMatch(host, "*.local") ||
  13. isInNet(dnsResolve(host), "10.0.0.0", "255.0.0.0") ||
  14. isInNet(dnsResolve(host), "172.16.0.0", "255.240.0.0") ||
  15. isInNet(dnsResolve(host), "192.168.0.0", "255.255.0.0") ||
  16. isInNet(dnsResolve(host), "127.0.0.0", "255.255.255.0"))
  17. return "DIRECT";
  18. // If the IP address of the local machine is within a defined
  19. // subnet, send to a specific proxy.
  20. // if (isInNet(myIpAddress(), "10.10.5.0", "255.255.255.0"))
  21. // return "PROXY 1.2.3.4:8080";
  22. // DEFAULT RULE: All other traffic, use below proxies, in fail-over order.
  23. return "PROXY 47.91.88.100:1080; PROXY 31.146.179.50:9999;PROXY 78.251.218.80:9050;PROXY 24.139.244.238:9999;PROXY 179.43.157.119:1080";
  24. }

comments powered by Disqus