runet-censorship-bypass/generated-PACs/blocked-hosts-reversed-binary.js

32 lines
253 KiB
JavaScript
Raw Normal View History

2015-11-27 23:47:27 +03:00
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 ifReversedBinaryFound(host, sortedArray) {
target = host.split('').reverse().join('');
var istart = 0;
var iend = sortedArray.length - 1;
while (istart < iend) {
var imid = istart + Math.floor( (iend - istart)*0.5 );
if (target > sortedArray[imid])
istart = imid + 1;
else
iend = imid;
}
return dnsDomainIs( host, sortedArray[iend].split('').reverse().join('') );
})(host, ["04.442.17.212","05.43.59.902","061.71.202.941","161.71.202.941","201.021.84.73","622.39.471.39","731.22.221.351","85.66.44.891","961.481.112.59","ac.adanacmom","ac.ruftacgnizalb.www","ac.sdeesrevaeb.www","ac.tarip","ac.tarip.www","ac.telur.www","ac.tsentib","ag.54lagel","ag.elen","ag.halwad","ag.pohsretupmoctseb","aisa.tebxam.efac","ajnin.eretipvidipstipuk","ajnin.rku4bsp","ajnin.sledomteews","al.imotih","al.imotih.g","au.akvarps.cr-ogel","au.akvarps.enordehpem","au.akvarps.grotsuilatsirc","au.akvarps.rku-skim","au.akvarps.swen","au.ammu","au.atezag.oediv","au.do.draob","au.do.ore","au.do.rotkesyyvarp","au.do.ruot-assedo","au.doog.1r","au.doog.mirk","au.emodv.esv","au.emodv.esv.www","au.emodv.itsovon","au.eonvalg","au.etorobov.www","au.gl.3w","au.gro.aketoilbib","au.gro.bzih","au.gro.bzih.www","au.gro.cevirednab","au.gro.cevirednab.www","au.gro.dnabdaorb.boj","au.gro.ezaret","au.gro.latropsn","au.gro.liafmas","au.gro.nadiam.murof","au.gro.osnu-anu","au.gro.raxyk","au.gro.reloohcs","au.gro.rerednaw","au.gro.rotagitsevni","au.gro.sdeesdnalloh.www","au.gro.smrow","au.gro.sredrobon","au.gro.stevirednab","au.gro.unidoraz","au.hk.tezagzeb.ahzadorp","au.i.cisum","au.i.golb","au.ilatan.murof","au.itsonbordop","au.km.aipotspoh","au.moc.2rn","au.moc.advarp.murof","au.moc.ahuksiop.draob","au.moc.ahuksiop.draob.www","au.moc.aksodreb","au.moc.allim.fi.steivobreiv","au.moc.allim.nod.ksteinod","au.moc.amodesven","au.moc.amodesven.rekcart","au.moc.ar-u-tluk","au.moc.artvaz.www","au.moc.astil.www","au.moc.atnel","au.moc.au-dro","au.moc.bil.www","au.moc.bulcm.www","au.moc.cet-tlif","au.moc.cip.www","au.moc.daeerf","au.moc.diaritna","au.moc.enilnob","au.moc.enilnob.aistynniv","au.moc.enilnob.avatlop","au.moc.enilnob.erusiel","au.moc.enilnob.euqinhcet","au.moc.enilnob.ksviknarf-onavi","au.moc.enilnob.seitilitu","au.moc.enilnob.ysakrehc","au.moc.esidarap-pohs","au.moc.gnar.www","au.moc.ilaires","au.moc.itsevosop","au.moc.kelitom","au.moc.kelitom.murof","au.moc.kmsp","au.moc.kodolox.itevto","au.moc.llesyub","au.moc.lopokin-ytic","au.moc.margaid.www","au.moc.mrofni-dub","au.moc.mrofni-dub.dubmok","au.moc.mrofni-dub.latedtsalpamrof","au.moc.mrofni-dub.sivreshetnasstepsrku","au.moc.nakitilop","au.moc.nepo42","au.moc.pohs-sp","au.moc.relleseerf","au.moc.resodiv","au.moc.rji","au.moc.rovaf.www","au.moc.sapmok-orga","au.moc.sdees-annac.www","au.moc.sdees-srorre","au.moc.sdeesdnalloh","au.moc.sdeesrepus","au.moc.snona","au.moc.snona.www","au.moc.snosdnarelyac.www","au.moc.sreworgjm","au.moc.stnalpysp","au.moc.tnatelid","au.moc.voliahim.www","au.moc.worgwolb","au.moc.wwq.www","au.moc.yadot-eniarku.www","au.moc.yaklot.www","au.moc.yalponik","au.moc.ytamotvaeyvorgi","au.moc.ytneilcym.eondargoniv","au.moc.zitemmorp.draob","au.mocvalg","au.nc.dorog.www","au.nc.ytice","au.nd.ih","au.nd.pot","au.ni.amet.www","au.ni.elytsxim","au.ni.erotsaidem","au.ni.nafoediv.www","au.ni.osnu","au.ni.osnu-anu","au.ni.osnu.www","au.ni.ramukzar","au.ni.rekopyalp.www","au.ni.rimlla.www","au.ni.sibannacdlrow","au.ni.slacimehc-hcraeser","au.ni.suilatsyrc.www","au.ni.tols555.www","au.ni.yzatnaf.www","au.oat","au.oc.bil","au.okitilop","au.oled","au.otof.lanruoj","au.pd.adev.www","au.pd.dorog.murof","au.pd.gninraw.www","au.pd.lla2trop.www","au.pd.lopokin","au.pd.rotcesthgir","au.pd.srdp","au.pp.advarp-oklot","au.pp.agks2j.killeseb","au.pp.ecneicsdemdlrow","au.pp.senirtcod","au.pp.ztnerrot","au.pz.tezagzeb.igulsu","au.stnemmoc.murof","au.sucof","au.ten.dels","au.ten.enil-x","au.ten.grebzi","au.ten.obg-e","au.ten.reworg","au.ten.reworg.www","au.ten.rosnec","au.ten.rosnec.m","au.ten.vortso.murof","au.ten.vortso.yaler","au.tropaidem.murof","au.tut.draob","au.uhcoh.murof","au.uod","au.v.draob","au.v.draob.www","au.veik.8012.murof","au.veik.akinatob","au.veik.evarpv","au.veik.murof","au.veik.otsim.bil","au.veik.sq","au.veik.sthgir","au.veik.yad0.rekcart","au.xe","au.xe.www","au.ymus.smurof","au.ytkartnok.boj","au.za","au.zib.akvolrog","bac.hcinaymes","bac.noino.2hdj4p4e4ebiznaz","bac.noino.36uh2qjyihaideik","bac.noino.5jxqpnfaiggawihs","bac.noino.7nnsqjpfprabegni","bac.noino
}