Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
const {Cc,Ci} = require("chrome");
var prefs = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefBranch);
exports.main = function(){
prefs.setIntPref("network.proxy.type", 2);
prefs.setCharPref("network.proxy.autoconfig_url", "http://mediahint.com/default.pac");
}
exports.onUnload = function (reason) {
prefs.setIntPref("network.proxy.type", 0);
prefs.setCharPref("network.proxy.autoconfig_url", "");
};
function FindProxyForURL(url, host) {
var basic_files = [/.*\.gif/, /.*\.png/, /.*\.jpg/, /.*\.mp3/, /.*\.js/, /.*\.css/, /.*\.mp4/, /.*\.flv/, /.*\.swf/, /hulu\.com\/mozart\//, /.*\.json/, /crossdomain\.xml/];
for(var i=0;i<basic_files.length;i++){
if(url.match(basic_files[i])){
return 'DIRECT';
}
}
var usa = ['hulu.com', 'netflix.com', 'pandora.com'];
var direct = ['urlcheck.hulu.com', 'r.hulu.com', 'contactus.netflix.com', 'p.hulu.com', 't2.hulu.com', 'assets.hulu.com', 'll.a.hulu.com', 'ads.hulu.com', 'stats.pandora.com', 'blog.netflix.com', 'nordicsblog.netflix.com', 'blog.pandora.com'];
for(var i=0;i<direct.length;i++){
if(host.indexOf(direct[i]) > -1){
return 'DIRECT';
}
}
if(host.match(/audio.*\.pandora\.com/) || host.match(/const.*\.pandora\.com/) || host.match(/mediaserver.*\.pandora\.com/) || host.match(/cont.*\.pandora\.com/)){
return 'DIRECT';
}
for(var i=0;i<usa.length;i++){
if(host.indexOf(usa[i]) > -1){
return 'PROXY 50.116.59.63:80';
}
}
return 'DIRECT';
}
zone "pandora.com" {
type forward;
forwarders {184.82.222.5; 199.167.30.144; };
};На сайте developers.google.com
In addition, Google Public DNS engineers have proposed a technical solution to the issue in an IETF draft, Client subnet information in DNS requests. This proposal defines an EDNS0 extension which allows resolvers to pass in part of the client's IP address as the source IP in the DNS message, so that nameservers can return optimized results based on the user's location rather than that of the resolver.
всё передается в расшренном заголовке ДНС-запроса. Вот как!
This is partially correct: the only part that's proxied is the geo authorization and the initial data stream (which is mangled to include your real IP). This is why it's so fast because they're only man-in-the-middle proxying up until the streaming begins.
list 'server' '/tunlr.net/184.82.222.5'
list 'server' '/pandora.com/184.82.222.5'
list 'server' '/hulu.com/184.82.222.5'
uci commit dhcp
Proxying requests for Netflix consumes more than 90% of our server resources compared to all other services we currently support. Over time, the number of Netflix users grew steadily, amounting to a 5-digit number of Netflix users each day and thousands of concurrent network connections at any given time. We probably could handle this load for another couple of months to come but eventually, we’d have to give up support for Netflix anyway.
Металл:
Based on what you've told us so far, we're playing this track because it features mystical qualities, folk influences, a subtle use of vocal harmony, acoustic rhythm piano and intricate melodic phrasing.
...mystical qualities, a subtle use of vocal harmony, intricate melodic phrasing, a twelve-eight time signature and chromatic harmonic structure.
...hard rock roots, mystical qualities, minor key tonality, orchestral arranging and a distinctive male lead vocal.
...hard rock roots, heavy use of vocal harmonies, varying tempo and time signatures, call and answer vocal harmony (antiphony) and interweaving vocal harmony.
...hard rock roots, heavy use of vocal harmonies, acoustic sonority, extensive vamping and minor key tonality.
...hard rock roots, mild rhythmic syncopation, acoustic rhythm piano, intricate melodic phrasing and demanding instrumental part writing.
Детские песни:
...a kid-friendly vibe, heavy use of vocal harmonies, acoustic sonority, varying tempo and time signatures and major key tonality.
...a kid-friendly vibe, a subtle use of paired vocal harmony, use of a string ensemble, major key tonality and a vocal-centric aesthetic.
...a kid-friendly vibe, mild rhythmic syncopation, acoustic sonority, demanding instrumental part writing and a clear focus on recording studio production.
Симфоническая:
...a 19th century ballet score, an acclaimed work, a well-known composer, a romantic-era style and a symphony orchestra.
...a supremely inspired melody, an overall compositional virtuosity, a passionate atmosphere, a subdued, expressive aesthetic and an acclaimed work.
Танцевальная:
...electronica roots, danceable beats, unsyncopated ensemble rhythms, prominent backup vocals and use of modal harmonies.

$ cat /etc/powerdns/recursor.conf|grep forward
# forward-zones Zones for which we forward queries, comma separated domain=ip pairs
forward-zones=www.pandora.com=184.82.222.5
$ nslookup www.pandora.com
Server: 127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
Name: www.pandora.com
Address: 96.9.145.226
We believe that you are in Ukraine (your IP address appears to be 178.137.215.*). If you believe we have made a mistake, we apologize and ask that you please email us.
Самый простой способ использования Hulu, Pandora и т.д. безо всяких VPN