Created
May 10, 2010 04:19
-
-
Save timnovinger/395662 to your computer and use it in GitHub Desktop.
Proxy PAC file for watching UK telly outside of the UK
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
// ======================================================== | |
// Route traffic through UK based proxy | |
// ======================================================== | |
function FindProxyForURL(url, host) { | |
// -------------------------------------------------------- | |
// No longer work still it seems | |
// -------------------------------------------------------- | |
// 92.52.125.20:80 | |
// 217.111.163.142:8080 | |
// 146.191.228.22:9090 | |
// 81.144.176.136:80 | |
// 80.68.89.210:3128 | |
// 85.234.141.187:8888 | |
// 85.234.156.91:80 | |
// 213.171.196.140:8080 | |
// -------------------------------------------------------- | |
// Works, but is slow / low latency | |
// -------------------------------------------------------- | |
// 78.86.202.230:80 | |
// 93.174.81.194:3128// | |
// 91.103.185.182:80 | |
// 92.48.88.210:7743 | |
// -------------------------------------------------------- | |
var host = host.toLowerCase(); | |
var proxy = "PROXY 88.98.28.60:80"; | |
// -------------------------------------------------------- | |
// ======================================================== | |
// CONDITIONS | |
// ======================================================== | |
// BBC | |
if (dnsDomainIs(host, ".bbc.co.uk")) { return proxy;} | |
// ITV | |
if (dnsDomainIs(host, ".itv.com")) { return proxy;} | |
// Seesaw | |
if (dnsDomainIs(host, ".seesaw.com")) { return proxy;} | |
// Channel 4 | |
if (dnsDomainIs(host, ".channel4.com")) { return proxy;} | |
// Default return condition is DIRECT for all others | |
return "DIRECT"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment