Merge remote-tracking branch 'olivier/rules/Perl-sites' into 4.0
[pde/https-everywhere.git] / src / chrome / content / rules / BBC.xml
1 <!--
2 For problematic rules, see BBC-mismatches.xml.
3
4
5 CDN buckets:
6
7 - electradl.iplayer.bbc.co.uk.edgesuite.net
8 - news.bbc.co.uk.edgesuite.net
9 - newsimg.bbc.co.uk
10 - news.bbcimg.co.uk
11 - emp.bbci.co.uk.edgesuite.net
12 - ichef.bbci.co.uk.edgesuite.net
13 - bbcmedia.fcod.llnwd.net
14
15
16 Nonfunctional domains:
17
18 - bbc.co.uk subdomains:
19
20 - news
21 When rewritten to www, redirects back to news
22 - newsimg
23 - When rewritten news, doesn't redirect back to newsimg..
24 - When rewritten to www, redirects to http =(
25 - Not on static.
26 - stats
27 - wwwimg
28 redirects to http
29
30 - (www.)bbcamerica.com (reset)
31 - emp.bbci.co.uk (Akamai; 503)
32 - ichef.bbci.co.uk (ditto)
33 - news.bbcimg.co.uk (ditto)
34
35 -->
36 <ruleset name="BBC (partial)">
37
38 <target host="bbc.co.uk" />
39 <target host="*.bbc.co.uk" />
40 <!--
41 Causes censorship bypass to fail.
42 -->
43 <exclusion pattern="^http://www\.bbc\.co\.uk/iplayer/episode/\w+/(?:hd/)?\w+/?(?:$|\?)" />
44 <target host="*.bbci.co.uk" />
45 <!-- Akamai -->
46 <target host="*.bbcimg.co.uk" />
47
48
49 <!-- Tracking cookie set by sa -->
50 <securecookie host="^\.bbc\.co\.uk$" name="^s1$" />
51
52
53 <!-- ichef: Images.
54 -->
55 <rule from="^https?://(ichef|sa|static)\.bbci?\.co\.uk/"
56 to="https://$1.bbc.co.uk/" />
57
58 <rule from="^https?://(?:www\.)?bbc\.co\.uk/(emp/|favicon\.ico$|glow/|guidance/|iplayer/)"
59 to="https://www.bbc.co.uk/$1" />
60
61 <rule from="^http://(id|ssl)\.bbc\.co\.uk/"
62 to="https://$1.bbc.co.uk/" />
63
64 <rule from="^https?://node[12]\.bbcimg\.co\.uk/(crossdomain\.xml$|glow/|iplayer/)"
65 to="https://www.bbc.co.uk/$1" />
66
67 <rule from="^https://www\.bbc\.co\.uk/iplayer/episode/(\w+/(?:hd/)?\w+/?(?:$|\?))"
68 to="http://www.bbc.co.uk/iplayer/episode/$1" downgrade="1" />
69
70 <!-- iPlayer points here, but only when fetched via https.
71
72 <rule from="^https://open\.bbci\.co\.uk/buzz/shares($|\?)"
73 to="http://open.bbci.co.uk/buzz/shares$1" downgrade="1" /-->
74
75 </ruleset>