packages feed

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

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


	fbcdn-profile-a.akamaihd.net
	fbcdn-sphotos-a.akamaihd.net

-->
<ruleset name="Facebook">

	<target host="facebook.com" />
	<target host="*.facebook.com" />
	<target host="*.facebook.de" />
	<target host="facebook.de" />
	<target host="*.facebook.fr" />
	<target host="facebook.fr" />
	<target host="connect.facebook.net" />
	<target host="fb.com" />
	<target host="www.fb.com" />
	<target host="*.fbcdn.net" />
	<target host="*.ak.fbcdn.net" />


	<rule from="^http://(?:www\.)?f(?:acebook|b)\.com/"
		to="https://www.facebook.com/"/>

	<rule from="^http://(\w\w-\w\w|developers|graph|login|m|ssl|static-ak|www\.v6)\.facebook\.com/"
		to="https://$1.facebook.com/"/>

	<rule from="^http://s-static\.ak\.facebook\.com/"
		to="https://s-static.ak.facebook.com/" />

	<rule from="^https?://badge\.facebook\.com/badge/"
		to="https://www.facebook.com/badge/"/>

	<!--		Cert doesn't match and
		this is what the server does.
						-->
	<rule from="^https?://www\.facebook\.(de|fr)/"
		to="https://$1-$1.facebook.com/" />

	<!--	Ditto.
			-->
	<rule from="^https?://(?:(?:de-de|fr-fr)\.|www\.)?facebook\.(de|fr)/"
		to="https://$1-$1.facebook.com/"/>

	<rule from="^http://connect\.facebook\.net/"
		to="https://connect.facebook.net/"/>

	<!--	Akamai	-->
	<rule from="^https?://profile\.ak\.fbcdn\.net/"
		to="https://fbcdn-profile-a.akamaihd.net/" />

	<!--	- Akamai
		- Data are also on static.facebook.com
				-->
	<rule from="^https?://(?:s-)?static\.ak\.fbcdn\.net/"
		to="https://s-static.ak.fbcdn.net/"/>

	<rule from="^http://([^@:\./]+)\.fbcdn\.net/"
		to="https://$1.fbcdn.net/"/>

</ruleset>