-
Notifications
You must be signed in to change notification settings - Fork 0
/
tor_home.pac
60 lines (57 loc) · 2 KB
/
tor_home.pac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
function FindProxyForURL(url, host)
{
var proxy;
if (myIpAddress() == "10.10.1.104")
{
proxy = "SOCKS5 127.0.0.1:9050; SOCKS 127.0.0.1:9050";
}
else
{
proxy = "SOCKS5 10.10.1.104:9100; SOCKS 10.10.1.104:9100";
}
if (shExpMatch(host, "check.torproject.org"))
{
return proxy + "; DIRECT";
}
if (shExpMatch(host, "*.nytimes.com")
|| shExpMatch(url, "http://*.nyt.com/*")
|| shExpMatch(host, "*.reuters.com")
|| shExpMatch(host, "*.reutersmedia.com")
|| shExpMatch(host, "*.bbci.co.uk")
|| shExpMatch(host, "time.com")
|| shExpMatch(host, "*.economist.com")
|| shExpMatch(host, "*.dw.com")
|| shExpMatch(host, "theinitium.com")
|| shExpMatch(host, "*.scmp.com")
|| shExpMatch(host, "*.nextmedia.com")
|| shExpMatch(host, "www.alliance.org.hk")
|| shExpMatch(host, "www.64memo.com")
|| shExpMatch(host, "www.tiananmenmother.org")
|| shExpMatch(host, "chinadigitaltimes.net")
|| shExpMatch(host, "evchk.wikia.com")
|| shExpMatch(host, "chinapower.csis.org")
|| shExpMatch(url, "http://*.tumblr.com/*")
|| shExpMatch(host, "static.tumblr.com")
|| shExpMatch(host, "resources.blogblog.com")
|| shExpMatch(host, "*.jpl.nasa.gov")
|| shExpMatch(host, "*.dropbox.com")
|| shExpMatch(host, "www.putty.org")
|| shExpMatch(host, "*.imgbox.com")
|| shExpMatch(host, "www.malwaretech.com")
|| shExpMatch(host, "*.southwest.com")
|| shExpMatch(host, "twitter.com")
|| shExpMatch(host, "*.twitter.com")
|| shExpMatch(host, "syndication.twimg.com")
|| shExpMatch(host, "cdn.syndication.twimg.com")
|| shExpMatch(host, "syndication-o.twimg.com")
|| shExpMatch(host, "image-proxy-origin.twimg.com")
|| shExpMatch(host, "www.mobile01.com")
|| shExpMatch(host, "www.ucptt.com")
|| shExpMatch(url, "http://steamcommunity.com/*")
|| shExpMatch(host, "*.onion")
)
{
return proxy;
}
return "DIRECT";
}