<!--

	Might be blocked by The Great Fire Wall (GFW) in China, Check error: Connection timed out after 20000 milliseconds
	Test in Tor broswer 6.0.1, Ok by http, however, unable to connect to https.
	Users could turn on this rule to test by youself.

-->

<ruleset name="Baidu_CN" default_off="Only avaiable in China">
	
	<!--	Complication	-->
	
	<target host="baike.bdimg.com" />
	<rule from="^http://baike\.bdimg\.com/static/wiki-" to="https://baike.bdimg.com/static/wiki-" />
		<test url="http://baike.bdimg.com/static/wiki-home/pkg/wiki-home_9a31777.css" />
		<test url="http://baike.bdimg.com/static/wiki-common/widget/lib/jsmart/PHPJS_3347e0a.js" />
		<test url="http://baike.bdimg.com/static/wiki-lemma/widget/lemma_content/mainContent/lemmaReference/img/view_reference_19e8a75.gif" />
		<test url="http://baike.bdimg.com/static/wiki-lemma/widget/lemma_content/configModule/secondsKnow/resource/img/bg_f4245aa.png" />
		<test url="http://baike.bdimg.com/static/wiki-lemma/layout/resource/font/layout_a7ce753.woff" />
		<test url="http://baike.bdimg.com/static/wiki-common/css/resource/font/css_5e54325.woff2" />
	<rule from="^http://baike\.bdimg\.com/static/usercenter/images/growuptask/task2/flash/(\w+)\.swf" to="https://baike.bdimg.com/static/usercenter/images/growuptask/task2/flash/$1.swf" />
		<test url="http://baike.bdimg.com/static/usercenter/images/growuptask/task2/flash/learn_editor.swf" />
		<test url="http://baike.bdimg.com/static/usercenter/images/growuptask/task2/flash/mall.swf" />
	<rule from="^http://baike\.bdimg\.com/cms/static/cooperation/(\w+)\.pdf" to="https://baike.bdimg.com/cms/static/cooperation/$1.pdf" />
		<test url="http://baike.bdimg.com/cms/static/cooperation/qrcode.pdf" />
		<test url="http://baike.bdimg.com/cms/static/cooperation/museum.pdf" />
		
	<!--	Directly rewrite	-->

	<target host="imgsrc.baidu.com" />
		<test url="http://imgsrc.baidu.com/forum/pic/item/dcee74d9f2d3572c4d7770b68d13632763d0c387.jpg" />

	<target host="cpro.baidustatic.com"/>
		<test url="http://cpro.baidustatic.com/cpro/ui/c.js" />
		<test url="http://cpro.baidustatic.com/cpro/ui/f.js" />
	<target host="cpro2.baidustatic.com"/>
		<test url="http://cpro2.baidustatic.com/cpro/ui/c.js" />
		<test url="http://cpro2.baidustatic.com/cpro/ui/f.js" />
	<target host="ubmcmm.baidustatic.com"/>
		<test url="http://ubmcmm.baidustatic.com/media/v1/0f000a-JueNIFPmTOLDxY6.jpg" />
		<test url="http://ubmcmm.baidustatic.com/media/v1/0f0005lK65iQdUtS56W--f.swf" />
		
	<target host="imgt0.bdstatic.com" />
	<target host="imgt1.bdstatic.com" />
	<target host="imgt2.bdstatic.com" />
	<target host="imgt3.bdstatic.com" />
	<target host="imgt4.bdstatic.com" />
	<target host="imgt5.bdstatic.com" />
	<target host="imgt6.bdstatic.com" />
	<target host="imgt7.bdstatic.com" />
	<target host="imgt8.bdstatic.com" />
	<target host="imgt9.bdstatic.com" />

	<test url="http://imgt1.bdstatic.com/it/u=808014301,2814684564$amp;fm=116$amp;gp=0.jpg" />

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

</ruleset>
