<!--

	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="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" />

	<target host="sjws.bdstatic.com" />
		<test url="http://sjws.bdstatic.com/static/official_pc/js/skrollr.min_a085946.js" />
	<target host="vs5.bdstatic.com" />
		<test url="http://vs5.bdstatic.com/browse_static/v3/common/pkg/common_ui_video_d23e9ca8.css" />
	<target host="vs6.bdstatic.com" />
		<test url="http://vs6.bdstatic.com/browse_static/v3/index/widget/video/newsSquareTags/up_to_news_ctrl_0824d3b.gif" />

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