<!--
	Nonfunctional:

		- http14432.storage.akadns.net		(cert: contentstorage.akamai.com)
		- cp44823.edgefcs.net			(reset)

-->
<ruleset name="Akamai">

	<target host="*.abmr.net"/>
	<target host="a248.e.akamai.net"/>
	<target host="*.akamaihd.net"/>
		<!--
			Causes many streams to 403 and region restriction to trip inappropriately.

			https://mail1.eff.org/pipermail/https-everywhere-rules/2012-October/001324.html
			https://trac.torproject.org/projects/tor/ticket/6557
			https://trac.torproject.org/projects/tor/ticket/6871
			https://trac.torproject.org/projects/tor/ticket/7080
      https://trac.torproject.org/projects/tor/ticket/7577
										-->
		<exclusion pattern="^http://[\w\-]+-f\.akamaihd\.net/" />
		<exclusion pattern="^http://[\w\-]+-i\.akamaihd\.net/" />
		<exclusion pattern="^http://[\w\-]+-s\.akamaihd\.net/" />
		<exclusion pattern="^http://[\w\-]+-lh\.akamaihd\.net/" />
		<exclusion pattern="^http://[\w\-]+-vh\.akamaihd\.net/" />

    <!-- https://trac.torproject.org/projects/tor/ticket/7198 -->
		<exclusion pattern="^http://(median3live|mtv3median3)-s\.akamaihd\.net/" />

                <!-- Apparently causes some Zynga games to fail to load.
                        https://trac.torproject.org/projects/tor/ticket/7090
                -->
		<exclusion pattern="^http://zynga[0-9]-a.akamaihd\.net/" />

	<securecookie host="^.*\.abmr\.net$" name=".*" />

	<rule from="^http://ak1s\.abmr\.net/"
		to="https://ak1s.abmr.net/"/>

	<rule from="^http://a248\.e\.akamai\.net/"
		to="https://a248.e.akamai.net/"/>

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

</ruleset>
