<!--
	CDN buckets:

		- d1y9yo7q4hy8a7.cloudfront.net
		- d24w6bsrhbeh9d.cloudfront.net


	Problematic subdomains:

		- t	(works; mismatched, CN: 9gag.com)


	Partially covered subdomains:

		- (www.) *
		- m *

	* Some pages redirect to http.


	Fully covered subdomains:

		- admin
		- api
		- comment

-->
<ruleset name="9gag (partial)">

	<target host="9gag.com" />
	<target host="*.9gag.com" />
		<!--exclusion pattern="^http://(www\.)?9gag\.com/+($|\?|(cute|fresh|gag/\w+|geeky|gif|hot|nsfw|trending)($|\?))" /-->
		<!--exclusion pattern="^http://(www\.)?9gag\.com/+(?!(about|advertise|faq|login|privacy|recover|signup|tos)($|[?/])|favicon\.ico|img/)" /-->
		<!--exclusion pattern="^http://m\.9gag\.com/+($|\?|gag/\w+($|\?))" /-->
		<!--exclusion pattern="^http://m\.9gag\.com/+(?!favicon\.ico|img/|(login|recover|signup)($|\?))" /-->
		<exclusion pattern="^http://(?:m\.|www\.)?9gag\.com/+(?!(?:about|advertise|faq|login|privacy|recover|signup|tos)(?:$|[?/])|favicon\.ico|img/)" />
  
  
	<securecookie host="^admin\.9gag\.com$" name=".+" />


	<rule from="^http://((?:admin|api|comment|m|www)\.)?9gag\.com/"
		to="https://$19gag.com/" />

</ruleset>
