<!--
	Other Mozilla rulesets:

		- BrowserID.xml
		- Bugzilla.xml
		- GetPersonas.xml
		- Lizard_Wrangler.com.xml
		- Mozilla.com.tw.xml
		- Mozilla_Persona.xml
		- Mozilla_Webmaker.xml
		- Open_Badges.xml


	CDN buckets:

		- 2-01-2967-0005.cdx.cedexis.net

			- cdn.mozilla.net

		- wac.1237.edgecastcdn.net/??1237/

			- getpersonas-cdn.mozilla.net
			- hardhat.mozilla.net

		- images.s4.exacttarget.com.edgesuite.net

			- image.e.mozilla.org

		- click.virt.s4.exacttarget.com

			- click.e.mozilla.org

		- view.virt.s4.exacttarget.com

			- view.e.mozilla.org


	Nonfunctional domains:

		- www.authstage.mozilla.com ³
		- identity.mozilla.com ¹
		- www-trunk.stage.mozilla.com ³

		- mozilla.org subdomains:

			- bonsai		(prompts for LDAP login; mismatched, CN: tinderbox.mozilla.org)
			- browserquest ²
			- dxr ²
			- view.e ³
			- graphs ²
			- planet ²
			- releases ³
			- sfx-images ²		(banners)
			- start ²
			- telemetry ²
			- website-archive ²
			- www-archive		(prompts for LDAP login, CN: static-san.mozilla.org)

		- blog.webfwd.org ³

	¹ Hosted on tumblr
	² Refused
	³ Dropped


	Problematic domains:

		- firefox.com
		- www.firefox.com		(works; mismatched, CN: static-san.mozilla.org)
		- cdn.mozilla.net		(404; mismatched, CN: gp1.wac.edgecastcdn.net)
		- download.cdn.mozilla.net	(503, akamai)
		- getpersonas-cdn.mozilla.net	(mismatched, CN: ssl2.cdngc.net)
		- hardhat.mozilla.net ⁵

		- mozilla.org subdomains:

			- affiliates-cdn	(works; mismatched, CN: affiliates.mozilla.org)
			- beta *
			- click.e		(works; mismatched, CN: *.virt.s4.exacttarget.com)
			- image.e		(works, akamai)
			- krakenbenchmark	(works; mismatched, CN: static-san.mozilla.org)
			- labs *
			- talkback-public *
			- videos		(works; mismatched, CN: static-cdn.addons.mozilla.net)

		- hardhat.mozilla.net ⁵

	⁵ Works; mismatched, CN: gp1.wac.edgecastcdn.net
	* Prompts for LDAP login; mismatched, CN: static-san.mozilla.org


	Fully covered domains:

		- drumbeat.org
		- www.drumbeat.org
		- (www.)firefox.com		(→ www.mozilla.org)
		- marketplace.firefox.com

		- mozilla.com subdomains:

			- (www.)
			- addons
			- air
			- basket
			- blog
			- brasstacks
			- crash-analysis
			- crash-stats
			- data
			- input
			- mail
			- people
			- mail.corp.phx1
			- location.services
			- support

		- mozilla.net subdomains:

			- (www.)		(→ www.mozilla.org)
			- static-cdn.addons
			- static-ssl-cdn.addons

			- cdn subdomains:

				- addons
				- developer
				- download		(→ ftp.mozilla.org)
				- download-installer
				- fhr
				- getpersonas
				- marketplace
				- mozorg
				- support
				- versioncheck

			- getpersonas-cdn	(→ getpersonas.cdn)
			- videos-cdn

		- mozilla.org subdomains:

			- (www.)

			- addons subdomains:

				- ^
				- forums
				- pyrepo
				- services

			- affiliates
			- affiliates-cdn	(→ affiliates)
			- air
			- basket
			- beta		(→ mozilla.org/en-US/firefox/channel/)
			- blog
			- boardwiki
			- bugzilla
			- bzr
			- careers
			- communitystore
			- creative
			- developer
			- directory
			- dnt
			- donate
			- download
			- education
			- etherpad
			- fb-affiliates
			- firefoxflicks
			- firefoxlive
			- forums
			- foundationwiki
			- ftp
			- gameon
			- gpg
			- hacks
			- hg
			- inform
			- input
			- intlstore
			- join
                        - keys
                        - keyserver
			- l10n
			- labs		(→ mozillalabs.com)
			- ldap
			- lists
			- localize
			- mail
			- mana
			- marketplace
			- metrics
			- moztrap
			- mpl
			- mxr
			- nightly
			- outgoing
			- people	(→ people.mozilla.com)
			- quality
			- reps
			- securitywiki
			- sendto
			- studentreps
			- support
			- talkback-public	(→ crash-stats.mozilla.com)
			- tbpl
			- videos	(→ videos-cdn.mozilla.net)
			- wiki

		- mdn.mozillademos.org
		- (www.)mozillaignite.org
		- blog.mozillaignite.org

		- mozillalabs.com subdomains:

			- (www.)
			- apps
			- bespin
			- bespinplugins
			- gaming
			- heatmap
			- jetpack
			- testpilot
			- webmaker

		- planet.mozillamessaging.com
		- support.mozillamessaging.com
		- (www.)webfwd.org


	Cookie domains:

		- mail.mozilla.com
		- mail.corp.phx1.mozilla.com
		- addons.mozilla.org
		- reps.mozilla.org


	Mixed content:

		- Image on www.mozilla.org from www.seamonkey-project.org

-->
<ruleset name="Mozilla">

	<target host="drumbeat.org" />
	<target host="www.drumbeat.org" />
	<target host="firefox.com" />
	<target host="*.firefox.com" />
	<target host="mozilla.com" />
	<target host="*.mozilla.com" />
		<exclusion pattern="^http://(?:www\.authstage|identity|www-trunk\.stage)\.mozilla\.com/" />
	<target host="mozilla.net" />
	<target host="*.mozilla.net" />
		<exclusion pattern="^http://(?:cdn|hardhat)\.mozilla\.net/" />
	<target host="mozilla.org" />
	<target host="*.mozilla.org" />
		<!--
			https://mail1.eff.org/pipermail/https-everywhere-rules/2013-July/001649.html
													-->
		<exclusion pattern="^http://(?:bonsai|browserquest|dxr|graphs|krakenbenchmark|planet|releases|sfx-images|start|telemetry|w(?:ebsite|ww)-archive)\.mozilla\.org/" />
		<!--
			Breaks newsletter:

				https://mail1.eff.org/pipermail/https-everywhere-rules/2013-June/001635.html
									-->
		<exclusion pattern="^http://\w+\.e\.mozilla\.org/" />
	<target host="mdn.mozillademos.org" />
	<target host="mozillaignite.com" />
	<target host="*.mozillaignite.com" />
	<target host="mozillalabs.com" />
	<target host="*.mozillalabs.com" />
	<target host="*.mozillamessaging.com" />
	<target host="webfwd.org" />
	<target host="www.webfwd.org" />


	<securecookie host="^marketplace\.firefox\.com$" name=".+" />
	<securecookie host="^.*\.mozilla\.(?:com|org)$" name=".+" />
	<securecookie host="^mozilla(?:ignite|labs)\.com$" name=".+" />


	<rule from="^http://(www\.)?(drumbeat|webfwd)\.org/"
		to="https://$1$2.org/" />

	<!--	Redirects like so over http.
						-->
	<rule from="^https?://(?:www\.)?firefox\.com/"
		to="https://www.mozilla.org/firefox/" />

	<rule from="^http://marketplace\.firefox\.com/"
		to="https://marketplace.firefox.com/" />

	<rule from="^http://([\w.-]+\.)?mozilla\.com/"
		to="https://$1mozilla.com/" />

	<!--	Redirects as so over http.
						-->
	<rule from="^https?://(?:www\.)?mozilla\.net/"
		to="https://www.mozilla.org/" />

	<rule from="^https?://download\.cdn\.mozilla\.net/"
		to="https://ftp.mozilla.org/" />

	<rule from="^https?://getpersonas-cdn\.mozilla\.net/"
		to="https://getpersonas.cdn.mozilla.net/" />

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

	<rule from="^https?://affiliates-cdn\.mozilla\.org/"
		to="https://affiliates.mozilla.org/" />

	<rule from="^https?://beta\.mozilla\.org/"
		to="https://www.mozilla.org/firefox/channel/" />

	<rule from="^http://labs\.mozilla\.org/"
		to="https://mozillalabs.com/" />

	<rule from="^https?://people\.mozilla\.org/"
		to="https://people.mozilla.com/" />

	<!--	Redirects like so over http.
						-->
	<rule from="^https?://talkback-public\.mozilla\.org/"
		to="https://crash-stats.mozilla.com/" />

	<rule from="^https?://videos\.mozilla\.org/"
		to="https://videos-cdn.mozilla.net/" />

	<rule from="^http://([\w\.-]+\.)?mozilla\.org/"
		to="https://$1mozilla.org/" />

	<rule from="^http://mdn\.mozillademos\.org/"
		to="https://mdn.mozillademos.org/" />

	<rule from="^http://(\w+\.)?mozillaignite\.com/"
		to="https://$1mozillaignite.com/" />

	<rule from="^http://(www\.)?mozillalabs\.com/"
		to="https://$1mozillalabs.com/" />

	<rule from="^http://(\w+)\.mozillalabs\.com/"
		to="https://$1.mozillalabs.com/"/>

	<rule from="^http://(planet|support)\.mozillamessaging\.com/"
		to="https://$1.mozillamessaging.com/" />

</ruleset>
