function FindProxyForURL(url, host) { // If URL has no dots in host name, send traffic direct. if (isPlainHostName(host)) return "DIRECT"; // If specific URL needs to bypass proxy, send traffic direct. if (shExpMatch(host,"*.local*") || shExpMatch(host,"*a1mc.ru*") || shExpMatch(host,"mail.a1mc.ru") || shExpMatch(host,"ftp.a1mc.ru") || shExpMatch(host,"192.168.*") || shExpMatch(host,"127.*") || dnsDomainIs(host,".a1mc.ru") ) return "DIRECT"; if (shExpMatch(host,"*pornhub.com") shExpMatch(host,"seasonvar.ru") || shExpMatch(host,"pornhub.com") || shExpMatch(host,"phonenumber.to") || shExpMatch(host,"rutracker.org") || shExpMatch(host,"sourceforge.net") || shExpMatch(host,"*sourceforge.net") || shExpMatch(host,"nomer.org") || shExpMatch(host,"xvideos.com") || shExpMatch(host,"new-rutor.org") || shExpMatch(host,"rutor.org") || shExpMatch(host,"xnxx.com") || shExpMatch(host,"lurkmore.to")) return "PROXY 192.168.0.113:3205"; //if (shExpMatch(host,"*.onion") || shExpMatch(host,".onion") || shExpMatch(host,"phonenumber.to")) //return "SOCKS 192.168.0.114:9150"; //if (shExpMatch(host,"phonenumber.to") || shExpMatch(host,"rutracker.org") || shExpMatch(host,"nomer.org") || shExpMatch(host,"new-rutor.org")) //return "PROXY 111.13.111.184:80"; //if (shExpMatch(url, "https:*") || // shExpMatch(url, "socks:*")) { // return "DIRECT"; // } // All other traffic uses below proxies, in fail-over order. //return "PROXY 192.168.0.174:3128"; return "DIRECT"; }