<!--
	Other Instagram rulesets:

		- CDN_Instagram.com.xml
		- Instagr.am.xml
		- Instagrampartners.com.xml


	CDN buckets:

		- igcdn-photos-a-a.akamaihd.net
		- igcdn-photos-b-a.akamaihd.net
		- igcdn-photos-c-a.akamaihd.net
		- igcdn-photos-d-a.akamaihd.net
		- igcdn-photos-e-a.akamaihd.net
		- igcdn-photos-f-a.akamaihd.net
		- instagramimages-a.akamaihd.net
		- instagramstatic-a.akamaihd.net

		- distillery.s3.amazonaws.com | d18txuuu339yuz.cloudfront.net

			- images.instagram.com


	Problematic hosts in *instagram.com:

		- images1.ak	(works, akamai)

		Mismatch (tumblr):
			- blog.instagram.com
			- blog.business.instagram.com
			- developers.instagram.com


	Insecure cookies are set for these domains and hosts:

		- instagram.com
		- badges.instagram.com
		- .help.instagram.com

-->
<ruleset name="Instagram.com (partial)">

	<!--	Direct rewrites:
				-->
	<target host="instagram.com" />
	<target host="www.instagram.com" />
	<target host="api.instagram.com" />
	<target host="badges.instagram.com" />
	<target host="business.instagram.com" />
	<target host="engineering.instagram.com" />
	<target host="help.instagram.com" />
	<target host="l.instagram.com" />
	<target host="platform.instagram.com" />

	<!--	Complications:
				-->
	<target host="images.instagram.com" />


	<!--	Not secured by server:
					-->
	<!--securecookie host="^(badges\.)?instagram\.com$" name="^(csrftoken|mid)$" /-->
	<!--securecookie host="^\.help\.instagram\.com$" name="^(datr|noscript|reg_ext_ref|reg_fb_ref|reg_fb_gate)$" /-->

	<securecookie host="^(?:badges\.|\.help\.)?instagram\.com$" name=".+" />

	<rule from="^http://images\.instagram\.com/"
		to="https://d18txuuu339yuz.cloudfront.net/" />

	<rule from="^http:"
		to="https:" />

</ruleset>
