packages feed

https-everywhere-rules-raw-4.0: vendor/https-everywhere/src/chrome/content/rules/BBC.xml

<!--
	For problematic rules, see BBC-mismatches.xml.


	Nonfunctional domains:

		- bbc.co.uk subdomains:

			- news
				When rewritten to www, redirects back to news
			- newsimg
				- When rewritten news, doesn't redirect back to newsimg..
				- When rewritten to www, redirects to http =(
				- Not on static.
			- stats
			- wwwimg
				redirects to http

		- (www.)bbcamerica.com	(reset)
		- emp.bbci.co.uk	(Akamai; "Service Unavailable")

-->
<ruleset name="BBC (mixed content)" platform="mixedcontent">

	<target host="bbc.co.uk" />
	<target host="*.bbc.co.uk" />
		<!--
			Causes censorship bypass to fail.
								-->
		<exclusion pattern="^http://www\.bbc\.co\.uk/iplayer/episode/\w+/(?:hd/)?\w+/?(?:$|\?)" />
		<!--
			https://trac.torproject.org/projects/tor/ticket/9136

			Breaks archived radio streams:

				"This content doesn't seem to be working"
										-->
		<exclusion pattern="^http://www\.bbc\.co\.uk/iplayer/playlist/\w+$" />
	<target host="static.bbci.co.uk" />
	<!--	Akamai	-->
	<target host="*.bbcimg.co.uk" />


	<!--	Tracking cookie set by sa	-->
	<securecookie host="^\.bbc\.co\.uk$" name="^s1$" />


	<rule from="^https?://(sa|static)\.bbci?\.co\.uk/"
		to="https://$1.bbc.co.uk/" />

	<rule from="^https?://(?:www\.)?bbc\.co\.uk/(favicon\.ico$|glow/|guidance/|iplayer/)"
		to="https://www.bbc.co.uk/$1" />

	<rule from="^https?://node[12]\.bbcimg\.co\.uk/iplayer/"
		to="https://www.bbc.co.uk/iplayer/" />

	<rule from="^https://www\.bbc\.co\.uk/iplayer/episode/(\w+/(?:hd/)?\w+/?(?:$|\?))"
		to="http://www.bbc.co.uk/iplayer/episode/$1" downgrade="1" />

</ruleset>