<!--
	Other Marketo rulesets:

		- Crowd-Factory.xml
		- Marketo.net.xml
		- Mktoresp.com.xml


	Nonfunctional subdomains:

		- blog ¹
		- pages2 ²

	¹ Redirects to http
	² 404


	Problematic domains:

		- marketo.com *

	* Cert only matches *.marketo.com


	Partially covered subdomains:

		- developers *

	* blog/ redirects to $


	Fully covered subdomains:

		- (www.)?	(^ → www)
		- app

		- app-\w+:

			- -[a-q]
			- -ab01
			- -ab[ak]
			- -lon0[23]
			- -sj\d
			- -sj[fghlnp]

		- b2c-mlm
		- community
		- fr
		- launchpoint
		- micro

		- na-\w+:

			- -[a-df-q]
			- -ab01
			- -ab[ak]
			- -lon0[23]
			- -sj0\d
			- -sj[fhlnp]

		- summit
		- support


	Insecure cookies are set for these hosts:

		- app-\w+.marketo.com
		- developers.marketo.com
		- fr.marketo.com
		- launchpoint.marketo.com
		- summit.marketo.com
		- www.marketo.com


	Mixed content:

		- Videos on fr from [\da-f-]+.r\d+.cf\d.rackcdn.com *

		- css on developers from developers.marketo.com

		- Images on developers from developers.marketo.com

		- favicons, on:

			- developers from marketo.com ¹
			- developers from developers.marketo.com

		- Bug on developers from www.googletagmanager.com

	¹ Secured by us

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

	<target host="marketo.com" />
	<target host="*.marketo.com" />
		<!--
			Redirects to http:
						-->
		<!--exclusion pattern="^http://blog\.marketo\.com/($|\?source=|favicon\.ico|wp-content/)" /-->
		<!--
			Redirects to ...:443 or .../$
							-->
		<!--exclusion pattern="^http://developers\.marketo\.com/blog(?:$|[?/])" /-->
		<!--
			Exceptions:
					-->
		<!--exclusion pattern="^http://developers\.marketo\.com/(?!$|assets/|favicon\.ico|foundationforms/|support/|themes/)" /-->
		<!--
			Avoid broken MCB:
						-->
		<exclusion pattern="^http://developers\.marketo\.com/+(?!assets/|favicon\.ico|foundationforms/|themes/)" />

			<test url="http://developers.marketo.com/" />
			<test url="http://developers.marketo.com/activity-types/ " />
			<test url="http://developers.marketo.com/assets/Uploads/dev-blog.png" />
			<test url="http://developers.marketo.com/blog/" />
			<test url="http://developers.marketo.com/documentation/faq/" />
			<test url="http://developers.marketo.com/documentation/websites/" />
			<test url="http://developers.marketo.com/favicon.ico" />
			<test url="http://developers.marketo.com/support/overview/" />

		<test url="http://app-ab01.marketo.com/" />
		<test url="http://app-aba.marketo.com/" />
		<test url="http://app-abk.marketo.com/" />
		<test url="http://b2c-mlm.marketo.com/" />
		<test url="http://community.marketo.com/" />
		<test url="http://fr.marketo.com/" />
		<test url="http://launchpoint.marketo.com/" />
		<test url="http://micro.marketo.com/" />
		<test url="http://na-ab01.marketo.com/" />
		<test url="http://summit.marketo.com/" />
		<test url="http://support.marketo.com/" />
		<test url="http://www.marketo.com/" />


	<!--	Not secured by server:
					-->
	<!--securecookie host="^app-\w+\.marketo\.com$" name="^BIGipServer[\w-]+$" /-->
	<!--securecookie host="^(fr|launchpoint|summit|support|www)\.marketo\.com$" name="^bIPs$" /-->

	<!--	https://github.com/EFForg/https-everywhere/issues/1179

		This seems to break login:
						-->
	<!--securecookie host="^\.marketo\.com$" name="^rememberUserId$" /-->

	<securecookie host="^(?:.*\.)?marketo\.com$" name="^(?!rememberUserId$).+" />


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

	<!--	Redirect drops slash and args:
						-->
	<rule from="^http://pages2\.marketo\.com/+(?:\?.*)?$"
		to="https://www.marketo.com/" />

		<test url="http://pages2.marketo.com/" />
		<test url="http://pages2.marketo.com/?" />
		<test url="http://pages2.marketo.com/?foo" />
		<test url="http://pages2.marketo.com//" />
		<test url="http://pages2.marketo.com//?" />

	<rule from="^http://pages2\.marketo\.com/(?=css/|images/|js/|rs/)"
		to="https://na-abk.marketo.com/" />

		<test url="http://pages2.marketo.com/css/mktLPSupportCompat.css" />
		<test url="http://pages2.marketo.com/images/forms/backRequiredGray.gif" />
		<test url="http://pages2.marketo.com/rs/marketob2/images/Marketing-First-Footer.gif" />
		<test url="http://pages2.marketo.com/rs/marketob2/images/demo-video-no-play-button.jpg" />
		<test url="http://pages2.marketo.com/rs/marketob2/images/logo_marketo_new.png" />
		<test url="http://pages2.marketo.com/rs/marketob2/images/marketo-website-footer-lp-2.gif" />

	<rule from="^http://(app|app-\w+|b2c-mlm|community|developers|fr|launchpoint|micro|na-\w+|summit|support|www)\.marketo\.com/"
		to="https://$1.marketo.com/" />

</ruleset>
