<!--
	For other Condé Nast coverage, see Conde-Nast.xml.


	Other Reddit rulesets:

		- redditblog.com.xml
		- Reddit_media.com.xml
		- Reddit_static.com.xml
		- Redditgifts.com.xml


	As of Aug. 2014, Reddit supports lots more SSL!
	We can probably prune some of the old static rules here.


	CDN buckets:

		- s3.amazonaws.com/as-production-assets/
		- s3-us-west-2.amazonaws.com/as-user-assets/
		- s3.amazonaws.com/reddit/
		- s3.amazonaws.com/redditads/
		- s3.amazonaws.com/redditstatic/
		- s3.amazonaws.com/sp.reddit.com/
		- s3.amazonaws.com/static.reddit.com/
		- s3.amazonaws.com/(\w\.)?thumbs.redditmedia.com/
		- buttons.reddit.com.edgesuite.net


	Problematic subdomains:

		- www.np *

	* Mismatched


	Observed hosts:

		- (www.)

		- [a-z]{1,2}:

			- dr
			- fp
			- gr
			- i
			- np
			- pr
			- rd
			- sl
			- sp
			- sv

		- [a-z]{2}-[a-z]{2}:

			- en-us

		- blog
		- m
		- www.np	(→ np)
		- pay
		- pixel
		- redditama
		- ssl
		- static
		- thumbs	(→ s3.amazonaws.com)


	Insecure cookies are set for these hosts:

		- .reddit.com

-->
<ruleset name="Reddit.com">

	<target host="reddit.com" />
	<target host="*.reddit.com" />

		<test url="http://i.reddit.com/" />
		<test url="http://m.reddit.com/" />
		<test url="http://np.reddit.com/" />
		<test url="http://redditama.reddit.com/" />
		<test url="http://www.reddit.com/" />


	<securecookie host=".+" name=".+" />


	<rule from="^http://www\.np\.reddit\.com/"
		to="https://np.reddit.com/" />

		<test url="http://www.np.reddit.com/" />

	<!--rule from="^http://((?:[a-z]{1,2}|[a-z]{2}-[a-z]{2}|blog|pay|redditama|ssl|static|www)\.)?reddit\.com/"
		to="https://$1reddit.com/" /-->

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

</ruleset>
