Created
June 24, 2013 22:49
-
-
Save anonymous/5854421 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function FindProxyForURL(url, host) | |
{ | |
//variabile | |
var proxy_US1 = "PROXY 173.234.241.98:81"; | |
var proxy_UK1 = "PROXY 109.123.79.77:81"; | |
var proxy_NL1 = "PROXY 95.211.138.75:81"; | |
if ( | |
host == "localhost" || | |
shExpMatch(url, "*pixel.quantserve.com*") || | |
shExpMatch(host, "localhost.*") || | |
host == "127.0.0.1") | |
{ | |
return "DIRECT"; | |
} | |
//to US1 | |
if ( shExpMatch(url, "*netflix.com*") || | |
shExpMatch(url, "*hulu.com*") || | |
shExpMatch(url, "*cbs.com*") || | |
shExpMatch(url, "*com.com*") || | |
shExpMatch(url, "*pandora.com*") || | |
shExpMatch(url, "*abc.go.com*") || | |
shExpMatch(url, "*fox.com*") || | |
shExpMatch(url, "*spotify.com*") || | |
shExpMatch(url, "*turntable.fm*") || | |
shExpMatch(url, "*crackle.com*") || | |
shExpMatch(url, "*tidaltv.com*") || | |
shExpMatch(url, "*cinemanow.com*") || | |
shExpMatch(url, "*warnerbros.com*") || | |
shExpMatch(url, "*cwtv.com*") || | |
shExpMatch(url, "*last.fm*") || | |
shExpMatch(url, "*rdio.com*") || | |
shExpMatch(url, "*mog.com*") || | |
shExpMatch(url, "*mtv.com*") || | |
shExpMatch(url, "*pbs.org*") || | |
shExpMatch(url, "*aetv.com*") || | |
shExpMatch(url, "*bravotv.com*") || | |
shExpMatch(url, "*cartoonnetwork.com*") || | |
shExpMatch(url, "*a.scorecardresearch.com*") || | |
shExpMatch(url, "*dsc.discovery.com*") || | |
shExpMatch(url, "*epixhd.com*") || | |
shExpMatch(url, "*foodnetwork.com*") || | |
shExpMatch(url, "*hgtv.com*") || | |
shExpMatch(url, "*nbc.com*") || | |
shExpMatch(url, "*nbcuni.com*") || | |
shExpMatch(url, "*spike.com*") || | |
shExpMatch(url, "*tv.com*") || | |
shExpMatch(url, "*tvland.com*") || | |
shExpMatch(url, "*usanetwork.com*") || | |
shExpMatch(url, "*vh1.com*") || | |
shExpMatch(url, "*thewb.com*") || | |
shExpMatch(url, "*abcfamily.go.com*") || | |
shExpMatch(url, "*amctv.com*") || | |
shExpMatch(url, "*vod.fxnetworks.com*") || | |
shExpMatch(url, "*history.com*") || | |
shExpMatch(url, "*mylifetime.com*") || | |
shExpMatch(url, "*tubemogul.com*") || | |
shExpMatch(url, "*ads.pointroll.com*") || | |
shExpMatch(url, "*cdn.doubleverify.com*") || | |
shExpMatch(url, "*29773.v.fwmrm.net*") || | |
shExpMatch(url, "*nbcuni.com*") || | |
shExpMatch(url, "*oimg.nbcuni.com*") || | |
shExpMatch(url, "*link.theplatform.com*") || | |
shExpMatch(url, "*release.theplatform.com*") || | |
shExpMatch(url, "*liverail.com*") || | |
shExpMatch(url, "*brightcove.com*") || | |
shExpMatch(url, "*syfy.com*") || | |
shExpMatch(url, "*universalsports.com*") || | |
shExpMatch(url, "*api.echoenabled.com*") || | |
shExpMatch(url, "*secure-us.imrworldwide.com*") || | |
shExpMatch(url, "*bea4.v.fwmrm.net*") || | |
shExpMatch(url, "*cdn.turner.com*") | |
) | |
{ | |
return proxy_US1; | |
} | |
//to UK1 | |
if ( shExpMatch(url, "*bbc.com*") || | |
shExpMatch(url, "*bbc.co.uk*") || | |
shExpMatch(url, "*channel4.com*") || | |
shExpMatch(url, "*stv.tv*") | |
) | |
{ | |
return proxy_UK1; | |
} | |
//to NL1 | |
if ( shExpMatch(url, "*amsterdam.nl*") | |
) | |
{ | |
return proxy_NL1; | |
} | |
return "DIRECT"; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment