mirror of
https://github.com/anticensority/runet-censorship-bypass.git
synced 2024-11-27 20:03:45 +03:00
30 lines
150 KiB
JavaScript
30 lines
150 KiB
JavaScript
|
function FindProxyForURL(url, host) {
|
||
|
// ProstoVPN.AntiZapret PAC-ip File
|
||
|
// Generated on Sun Nov 22 10:12:29 MSK 2015
|
||
|
|
||
|
// The whole PAC script is reevaluated on each call of this function.
|
||
|
|
||
|
host = host.replace(/\.+$/).toLowerCase(); // E.g. WinHTTP may be nasty.
|
||
|
|
||
|
// HTTPS proxy is a HTTP proxy over SSL. It is NOT CONNECT proxy!
|
||
|
// Supported only in Chrome and Firefox.
|
||
|
// http://www.chromium.org/developers/design-documents/secure-web-proxy
|
||
|
// This is to bypass FULL DPI
|
||
|
var isIE = /*@cc_on!@*/!1;
|
||
|
var viaProxy = isIE
|
||
|
? 'PROXY proxy.antizapret.prostovpn.org:3128; DIRECT'
|
||
|
: 'HTTPS proxy.antizapret.prostovpn.org:3143; PROXY proxy.antizapret.prostovpn.org:3128; DIRECT';
|
||
|
|
||
|
return (function ifProxyByIp(host, blockedIpsArray) {
|
||
|
|
||
|
// Internet Explorer
|
||
|
if (!Array.prototype.indexOf)
|
||
|
Array.prototype.indexOf = function(obj, start) {
|
||
|
for (var i = (start || 0), j = this.length; i < j; i++)
|
||
|
if (this[i] === obj) return i;
|
||
|
return -1;
|
||
|
}
|
||
|
|
||
|
return blockedIpsArray.indexOf( dnsResolve(host) ) !== -1
|
||
|
})(host, ["101.1.29.82","103.21.58.156","103.240.151.25","103.242.101.220","103.244.44.13","103.244.44.19","103.246.17.198","103.249.70.208","103.254.144.114","103.254.155.166","103.3.61.79","103.30.240.245","103.31.228.191","103.4.200.135","103.4.200.136","103.4.200.195","103.4.200.196","103.4.200.197","103.4.200.199","103.4.200.200","103.4.200.201","103.4.200.203","103.4.200.204","103.4.200.205","103.4.200.206","103.4.200.210","103.4.200.211","103.4.200.212","103.4.200.213","103.4.200.214","103.4.200.215","103.4.200.216","103.4.200.217","103.4.200.218","103.4.200.219","103.4.200.221","103.4.200.222","103.4.200.226","103.4.200.227","103.4.200.234","103.4.200.244","103.4.200.249","103.4.200.253","103.4.200.254","103.4.201.11","103.4.201.131","103.4.201.2","103.4.201.3","103.4.201.4","103.4.201.5","103.4.201.67","103.4.201.68","103.4.201.69","103.4.201.70","103.4.201.75","103.43.135.219","103.43.25.150","104.130.120.10","104.130.120.116","104.130.120.121","104.130.120.126","104.130.120.132","104.130.120.139","104.130.120.14","104.130.120.140","104.130.120.144","104.130.120.145","104.130.120.153","104.130.120.162","104.130.120.164","104.130.120.172","104.130.120.177","104.130.120.179","104.130.120.181","104.130.120.183","104.130.120.189","104.130.120.190","104.130.120.192","104.130.120.195","104.130.120.203","104.130.120.206","104.130.120.207","104.130.120.208","104.130.120.209","104.130.120.210","104.130.120.219","104.130.120.223","104.130.120.226","104.130.120.23","104.130.120.243","104.130.120.245","104.130.120.246","104.130.120.248","104.130.120.249","104.130.120.25","104.130.120.31","104.130.120.33","104.130.120.37","104.130.120.41","104.130.120.45","104.130.120.51","104.130.120.6","104.130.120.60","104.130.120.75","104.130.120.99","104.130.121.104","104.130.121.116","104.130.121.124","104.130.121.126","104.130.121.142","104.130.121.15","104.130.121.151","104.130.121.154","104.130.121.158","104.130.121.163","104.130.121.17","104.130.121.176","104.130.121.177","104.130.121.184","104.130.121.197","104.130.121.200","104.130.121.202","104.130.121.205","104.130.121.208","104.130.121.215","104.130.121.216","104.130.121.217","104.130.121.220","104.130.121.222","104.130.121.223","104.130.121.227","104.130.121.239","104.130.121.240","104.130.121.249","104.130.121.252","104.130.121.253","104.130.121.28","104.130.121.29","104.130.121.32","104.130.121.46","104.130.121.50","104.130.121.59","104.130.121.6","104.130.121.67","104.130.121.69","104.130.121.70","104.130.121.81","104.130.121.86","104.130.121.89","104.130.121.9","104.130.121.93","104.130.236.100","104.130.236.101","104.130.236.102","104.130.236.105","104.130.236.110","104.130.236.112","104.130.236.123","104.130.236.124","104.130.236.125","104.130.236.128","104.130.236.13","104.130.236.130","104.130.236.145","104.130.236.147","104.130.236.148","104.130.236.151","104.130.236.152","104.130.236.155","104.130.236.169","104.130.236.170","104.130.236.203","104.130.236.204","104.130.236.205","104.130.236.206","104.130.236.232","104.130.236.246","104.130.236.249","104.130.236.253","104.130.236.254","104.130.236.26","104.130.236.31","104.130.236.35","104.130.236.41","104.130.236.42","104.130.236.54","104.130.236.61","104.130.236.77","104.130.236.8","104.130.236.9","104.130.236.97","104.130.240.192","104.130.247.25","104.130.250.202","104.130.254.221","104.130.255.130","104.130.42.101","104.130.42.107","104.130.42.110","104.130.42.116","104.130.42.122","104.130.42.137","104.130.42.143","104.130.42.146","104.130.42.173","104.130.42.189","104.130.42.222","104.130.42.240","104.130.42.25","104.130.42.33","104.130.42.42","104.130.42.43","104.130.42.5","104.130.42.74","104.130.42.75","104.130.42.82","104.130.42.84","104.130.42.90","104.130.43.186","104.130.43.2","104.130.43.201","104.130.43.212","104.130.43.215","104.130.43.30","104.130.43.37","104.130.43.43","104.130.43.57","104.130.43.68","104.130.43.8","104.130.52.115","104.130.52.122","104.130.52.124","104.130.52.136","104.130.52.138","104.130.52.140","104.130.52.155","104.130.52.165","104.130.52.17","104.130.52.171","104.130.52.19
|
||
|
}
|