<!--
	Time out over both http and https:
		youtube.tn
		youtube.com.tn
		www.youtube.com.tn

	Insecure cookies are set for these domains:

		- .youtube.com

-->
<ruleset name="YouTube">

        <!-- Main domains -->
	<target host="youtube.com" />
	<target host="*.youtube.com" />
		<test url="http://gdata.youtube.com/" />
		<test url="http://gdata.youtube.com/crossdomain.xml" />
		<test url="http://m.youtube.com/feed/trending" />
		<test url="http://www.youtube.com/opensearch?locale=en_US" />
		<test url="http://www.youtube.com/yts/img/pixel-vfl3z5WfW.gif" />
		<test url="http://www.youtube.com/channels" />

	<target host="*.ytimg.com" />
		<test url="http://i.ytimg.com/i/-9-kyTW8ZkZNDHQJ6FgpwQ/1.jpg" />
		<test url="http://i1.ytimg.com/i/-9-kyTW8ZkZNDHQJ6FgpwQ/1.jpg" />
		<test url="http://i2.ytimg.com/i/-9-kyTW8ZkZNDHQJ6FgpwQ/1.jpg" />
		<test url="http://i3.ytimg.com/i/-9-kyTW8ZkZNDHQJ6FgpwQ/1.jpg" />
		<test url="http://i4.ytimg.com/i/-9-kyTW8ZkZNDHQJ6FgpwQ/1.jpg" />
		<test url="http://i9.ytimg.com/i/-9-kyTW8ZkZNDHQJ6FgpwQ/1.jpg" />
		<test url="http://s.ytimg.com/yts/img/favicon-vflz7uhzw.ico" />

	<target host="*.googlevideo.com"/>
		<test url="http://r2---sn-25ge7nsl.googlevideo.com/videoplayback?keepalive=yes" />
		<test url="http://r19---sn-oguesnll.googlevideo.com/videoplayback?keepalive=yes" />
		<test url="http://r5---sn-oguesne6.googlevideo.com/videoplayback?keepalive=yes" />
		<test url="http://r1---sn-p5qlsns7.googlevideo.com/videoplayback?keepalive=yes" />

        <!-- Regional domains -->
	<target host="youtube.ae"/>
	<target host="www.youtube.ae"/>
	<target host="youtube.co.ae"/>
	<target host="www.youtube.co.ae"/>
	<target host="youtube.com.ar"/>
	<target host="www.youtube.com.ar"/>
	<target host="youtube.at"/>
	<target host="www.youtube.at"/>
	<target host="youtube.co.at"/>
	<target host="www.youtube.co.at"/>
	<target host="youtube.com.au"/>
	<target host="www.youtube.com.au"/>
	<target host="youtube.ba"/>
	<target host="www.youtube.ba"/>
	<target host="youtube.be"/>
	<target host="www.youtube.be"/>
	<target host="youtube.bg"/>
	<target host="www.youtube.bg"/>
	<target host="youtube.bh"/>
	<target host="www.youtube.bh"/>
	<target host="youtube.com.bh"/>
	<target host="www.youtube.com.bh"/>
	<target host="youtube.com.br"/>
	<target host="www.youtube.com.br"/>
	<target host="youtube.ca"/>
	<target host="www.youtube.ca"/>
	<target host="youtube.ch"/>
	<target host="www.youtube.ch"/>
	<target host="youtube.cl"/>
	<target host="www.youtube.cl"/>
	<target host="youtube.co"/>
	<target host="www.youtube.co"/>
	<target host="youtube.com.co"/>
	<target host="www.youtube.com.co"/>
	<target host="youtube.cz"/>
	<target host="www.youtube.cz"/>
	<target host="youtube.de"/>
	<target host="www.youtube.de"/>
	<target host="youtube.dk"/>
	<target host="www.youtube.dk"/>
	<target host="www.youtube.ee"/>
	<target host="youtube.com.ee"/>
	<target host="www.youtube.com.ee"/>
	<target host="youtube.com.eg"/>
	<target host="www.youtube.com.eg"/>
	<target host="youtube.es"/>
	<target host="www.youtube.es"/>
	<target host="youtube.com.es"/>
	<target host="www.youtube.com.es"/>
	<target host="youtube.fi"/>
	<target host="www.youtube.fi"/>
	<target host="youtube.fr"/>
	<target host="www.youtube.fr"/>
	<target host="youtube.com.gh"/>
	<target host="www.youtube.com.gh"/>
	<target host="youtube.gr"/>
	<target host="www.youtube.gr"/>
	<target host="youtube.com.gr"/>
	<target host="www.youtube.com.gr"/>
	<target host="youtube.hk"/>
	<target host="www.youtube.hk"/>
	<target host="youtube.com.hk"/>
	<target host="www.youtube.com.hk"/>
	<target host="youtube.hr"/>
	<target host="www.youtube.hr"/>
	<target host="youtube.com.hr"/>
	<target host="www.youtube.com.hr"/>
	<target host="youtube.hu"/>
	<target host="www.youtube.hu"/>
	<target host="youtube.co.hu"/>
	<target host="www.youtube.co.hu"/>
	<target host="youtube.co.id"/>
	<target host="www.youtube.co.id"/>
	<target host="youtube.ie"/>
	<target host="www.youtube.ie"/>
	<target host="youtube.co.il"/>
	<target host="www.youtube.co.il"/>
	<target host="youtube.in"/>
	<target host="www.youtube.in"/>
	<target host="youtube.co.in"/>
	<target host="www.youtube.co.in"/>
	<target host="youtube.it"/>
	<target host="www.youtube.it"/>
	<target host="youtube.jo"/>
	<target host="www.youtube.jo"/>
	<target host="youtube.com.jo"/>
	<target host="www.youtube.com.jo"/>
	<target host="youtube.co.ke"/>
	<target host="www.youtube.co.ke"/>
	<target host="youtube.kr"/>
	<target host="www.youtube.kr"/>
	<target host="youtube.co.kr"/>
	<target host="www.youtube.co.kr"/>
	<target host="youtube.com.kw"/>
	<target host="www.youtube.com.kw"/>
	<target host="youtube.com.lb"/>
	<target host="www.youtube.com.lb"/>
	<target host="youtube.lv"/>
	<target host="www.youtube.lv"/>
	<target host="youtube.com.lv"/>
	<target host="www.youtube.com.lv"/>
	<target host="youtube.lt"/>
	<target host="www.youtube.lt"/>
	<target host="youtube.ma"/>
	<target host="www.youtube.ma"/>
	<target host="youtube.co.ma"/>
	<target host="www.youtube.co.ma"/>
	<target host="youtube.me"/>
	<target host="www.youtube.me"/>
	<target host="youtube.mk"/>
	<target host="www.youtube.mk"/>
	<target host="youtube.com.mk"/>
	<target host="www.youtube.com.mk"/>
	<target host="youtube.mx"/>
	<target host="www.youtube.mx"/>
	<target host="youtube.com.mx"/>
	<target host="www.youtube.com.mx"/>
	<target host="youtube.my"/>
	<target host="www.youtube.my"/>
	<target host="youtube.com.my"/>
	<target host="www.youtube.com.my"/>
	<target host="youtube.ng"/>
	<target host="www.youtube.ng"/>
	<target host="youtube.com.ng"/>
	<target host="www.youtube.com.ng"/>
	<target host="youtube.nl"/>
	<target host="www.youtube.nl"/>
	<target host="youtube.no"/>
	<target host="www.youtube.no"/>
	<target host="youtube.co.nz"/>
	<target host="www.youtube.co.nz"/>
	<target host="youtube.com.om"/>
	<target host="www.youtube.com.om"/>
	<target host="youtube.pe"/>
	<target host="www.youtube.pe"/>
	<target host="youtube.com.pe"/>
	<target host="www.youtube.com.pe"/>
	<target host="youtube.ph"/>
	<target host="www.youtube.ph"/>
	<target host="youtube.com.ph"/>
	<target host="www.youtube.com.ph"/>
	<target host="youtube.pl"/>
	<target host="www.youtube.pl"/>
	<target host="youtube.pr"/>
	<target host="www.youtube.pr"/>
	<target host="youtube.pt"/>
	<target host="www.youtube.pt"/>
	<target host="youtube.com.pt"/>
	<target host="www.youtube.com.pt"/>
	<target host="youtube.qa"/>
	<target host="www.youtube.qa"/>
	<target host="youtube.com.qa"/>
	<target host="www.youtube.com.qa"/>
	<target host="youtube.ro"/>
	<target host="www.youtube.ro"/>
	<target host="youtube.com.ro"/>
	<target host="www.youtube.com.ro"/>
	<target host="youtube.rs"/>
	<target host="www.youtube.rs"/>
	<target host="youtube.ru"/>
	<target host="www.youtube.ru"/>
	<target host="youtube.sa"/>
	<target host="www.youtube.sa"/>
	<target host="youtube.com.sa"/>
	<target host="www.youtube.com.sa"/>
	<target host="youtube.se"/>
	<target host="www.youtube.se"/>
	<target host="youtube.sg"/>
	<target host="www.youtube.sg"/>
	<target host="youtube.com.sg"/>
	<target host="www.youtube.com.sg"/>
	<target host="youtube.si"/>
	<target host="www.youtube.si"/>
	<target host="youtube.sk"/>
	<target host="www.youtube.sk"/>
	<target host="youtube.sn"/>
	<target host="www.youtube.sn"/>
	<target host="youtube.co.th"/>
	<target host="www.youtube.co.th"/>
	<!--target host="youtube.tn"/-->
	<target host="www.youtube.tn"/>
	<!--target host="youtube.com.tn"/-->
	<!--target host="www.youtube.com.tn"/-->
	<target host="youtube.com.tr"/>
	<target host="www.youtube.com.tr"/>
	<target host="youtube.com.tw"/>
	<target host="www.youtube.com.tw"/>
	<target host="youtube.ua"/>
	<target host="www.youtube.ua"/>
	<target host="youtube.com.ua"/>
	<target host="www.youtube.com.ua"/>
	<target host="youtube.ug"/>
	<target host="www.youtube.ug"/>
	<target host="youtube.co.ug"/>
	<target host="www.youtube.co.ug"/>
	<target host="youtube.co.uk"/>
	<target host="www.youtube.co.uk"/>
	<target host="youtube.co.za"/>
	<target host="www.youtube.co.za"/>


        <!-- Alternate domains -->
	<target host="youtu.be" />
	<target host="www.youtube-nocookie.com"/>

	<!-- Many third-party flash applications which make use of the chromeless YouTube player via the deprecated Flash API (AS3) break if we rewrite their requests to HTTPS. -->

	<exclusion pattern="^http://www\.youtube\.com/apiplayer" />
	<test url="http://www.youtube.com/apiplayer" />

	<!--	Not secured by server:
					-->
	<!--securecookie host="^\.youtube\.com$" name="^(GEUP|PREF|VISITOR_INFO1_LIVE|YSC)$" /-->

	<!--	observed ^. cookies:
			- use_hitbox
			- VISITOR_INFO1_LIVE
			- recently_watched_video_id_list
			- .youtube.com		-->
	<securecookie host="^\.youtube\.com" name=".+" />


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

</ruleset>
