SIMPLE-FAST-PROXY-PAC.SCRIPT-READY-TO-USE


SUBMITTED BY: benk2x

DATE: Nov. 20, 2019, 5:21 p.m.

UPDATED: Jan. 28, 2020, 5:40 a.m.

FORMAT: Text only

SIZE: 3.9 kB

HITS: 1124

  1. //the file must be saved as proxy-pac-scripts-name.pac, the fileextension must be *.pac
  2. //see also https://findproxyforurl.com/pac-functions/
  3. //see also https://findproxyforurl.com/example-pac-file/
  4. //see also here https://en.wikipedia.org/wiki/Proxy_auto-config
  5. https://web.archive.org/web/20040810122331/http://developer.netscape.com/docs/manuals/proxy/adminux/autoconf.htm
  6. function FindProxyForURL(url, host)
  7. {
  8. return "SOCKS5 47.91.88.100:1080; SOCKS5 31.146.179.50:9999; SOCKS5 78.251.218.80:9050; SOCKS5 24.139.244.238:9999; SOCKS5 179.43.157.119:1080; SOCKS5 123.1.187.49:1080; SOCKS5 181.209.134.138:4145; SOCKS5 217.29.18.206:4145; SOCKS5 80.106.228.15:4145; SOCKS5 81.183.210.46:4145; SOCKS5 207.154.231.212:1080; SOCKS5
  9. 95.85.36.236:1080; SOCKS5 198.199.120.102:1080; SOCKS5 138.68.165.154:1080; SOCKS5 138.68.161.60:1080; SOCKS5 207.154.231.211:1080; SOCKS5 82.196.11.105:1080; SOCKS5 139.59.169.246:1080; SOCKS5 138.68.173.29:1080; SOCKS5 46.4.96.137:1080; SOCKS5 207.154.231.213:1080; SOCKS5 188.226.141.127:1080; SOCKS5 178.62.193.19:1080; SOCKS5 88.198.50.103:1080; SOCKS5 207.154.231.217:1080; SOCKS5 138.68.161.14:1080; SOCKS5 176.9.119.170:1080; SOCKS5 188.226.141.211:1080; SOCKS5 145.239.81.69:1080; SOCKS5 176.9.75.42:1080; SOCKS5 207.154.231.216:1080; SOCKS5 188.226.141.61:1080; SOCKS5 203.99.116.121:9999; DIRECT";
  10. }
  11. -----------------------------------------------------------
  12. function FindProxyForURL(url, host)
  13. {
  14. // If the protocol or URL matches, send direct.
  15. if (url.substring(0, 4)=="ftp:" ||
  16. shExpMatch(url, "http://abcdomain.com/folder/*"))
  17. return "DIRECT";
  18. // If the requested website is hosted within the internal network, send direct.
  19. if (isPlainHostName(host) ||
  20. shExpMatch(host, "*.local") ||
  21. isInNet(dnsResolve(host), "10.0.0.0", "255.0.0.0") ||
  22. isInNet(dnsResolve(host), "172.16.0.0", "255.240.0.0") ||
  23. isInNet(dnsResolve(host), "192.168.0.0", "255.255.0.0") ||
  24. isInNet(dnsResolve(host), "127.0.0.0", "255.255.255.0"))
  25. return "DIRECT";
  26. return "SOCKS5 47.91.88.100:1080; SOCKS5 31.146.179.50:9999; SOCKS5 78.251.218.80:9050; SOCKS5 24.139.244.238:9999; SOCKS5 179.43.157.119:1080; SOCKS5 123.1.187.49:1080; SOCKS5 181.209.134.138:4145; SOCKS5 217.29.18.206:4145; SOCKS5 80.106.228.15:4145; SOCKS5 81.183.210.46:4145; SOCKS5 207.154.231.212:1080; SOCKS5 95.85.36.236:1080; SOCKS5 198.199.120.102:1080; SOCKS5 138.68.165.154:1080; SOCKS5 138.68.161.60:1080; SOCKS5 207.154.231.211:1080; SOCKS5 82.196.11.105:1080; SOCKS5 139.59.169.246:1080; SOCKS5 138.68.173.29:1080; SOCKS5 46.4.96.137:1080; SOCKS5 207.154.231.213:1080; SOCKS5 188.226.141.127:1080; SOCKS5 178.62.193.19:1080; SOCKS5 88.198.50.103:1080; SOCKS5 207.154.231.217:1080; SOCKS5 138.68.161.14:1080; SOCKS5 176.9.119.170:1080; SOCKS5 188.226.141.211:1080; SOCKS5 145.239.81.69:1080; SOCKS5 176.9.75.42:1080; SOCKS5 207.154.231.216:1080; SOCKS5 188.226.141.61:1080; SOCKS5 203.99.116.121:9999; SOCKS5 77.45.110.212:4153; SOCKS5 103.28.84.5:1080; SOCKS5 92.62.72.252:4145; SOCKS5 89.135.126.157:4153; SOCKS5 188.35.167.7:45619; SOCKS5 117.102.81.6:53281; SOCKS5 89.186.1.215:53281; SOCKS5 81.218.131.96:8088; SOCKS5 164.52.42.2:4145; SOCKS5 191.100.27.51:4145; SOCKS5 80.94.118.192:4145; SOCKS5 188.65.85.4:4145; SOCKS5 41.33.212.68:4145; SOCKS5 85.117.60.126:4145; SOCKS5 212.72.149.234:4145; SOCKS5 201.159.112.70:4145; SOCKS5 78.28.118.211:4145; SOCKS5 191.100.27.51:4145; SOCKS5 24.139.244.238:9999; SOCKS5 41.84.156.46:9999; SOCKS5 ; SOCKS5 ; SOCKS5 ; SOCKS5 ; SOCKS5 ; SOCKS5 ; SOCKS5 81.93.88.31:4145; SOCKS5 46.14.179.157:4153; SOCKS5 89.232.34.161:4145; SOCKS5 86.120.79.84:4145; SOCKS5 41.75.123.8:1080; SOCKS5 82.166.152.154:4145; SOCKS5 95.167.159.250:1080; DIRECT";
  27. }
  28. TESTTESTTEST
  29. your pacfile
  30. https://app.thorsen.pm/proxyforurl

comments powered by Disqus