Skip to content

Commit adbea2d

Browse files
authored
Merge pull request EFForg#5782 from renyouguo/patch-165
Update iqiyi.com.xml and Creat iQiyi_cn.xml
2 parents 20384de + 66f5acf commit adbea2d

File tree

2 files changed

+38
-37
lines changed

2 files changed

+38
-37
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!--
2+
Might be blocked by The Great Fire Wall (GFW) in China.
3+
Check error: 28, 'Operation timed out after 0 milliseconds with 0 out of 0 bytes received'
4+
Check error: 35, 'gnutls_handshake() failed: Error in the pull function.'
5+
Test in Tor broswer 6.0.2, Ok by http, however, unable to connect to https.
6+
Users could turn on this rule to test by youself.
7+
-->
8+
9+
<ruleset name="iQiyi_CN" default_off="Only avaiable in China">
10+
11+
<target host="static.iqiyi.com" />
12+
<test url="http://static.iqiyi.com/css/common/basic_css/basic.css" />
13+
<test url="http://static.iqiyi.com/js/pingback/qa.js" />
14+
15+
<target host="www.iqiyi.com" />
16+
<exclusion pattern="^http://www\.iqiyi\.com/(?!favicon\.ico|player\/cupid\/common\/clear\.swf|common\/flashplayer\/(.+)\.swf)" />
17+
<test url="http://www.iqiyi.com/" />
18+
<test url="http://www.iqiyi.com/dianying/" />
19+
<test url="http://www.iqiyi.com/dianshiju/" />
20+
<test url="http://www.iqiyi.com/weidianying/" />
21+
<test url="http://www.iqiyi.com/favicon.ico/" />
22+
<test url="http://www.iqiyi.com/player/cupid/common/clear.swf" />
23+
<test url="http://www.iqiyi.com/common/flashplayer/20160719/1206f98c2359.swf" />
24+
<test url="http://www.iqiyi.com/common/flashplayer/20150810/seed-3-0-3.swf" />
25+
26+
<rule from="^http:" to="https:" />
27+
28+
</ruleset>
Lines changed: 10 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<!--
2+
Other rulesets:
3+
- iQiyi_CN.xml
4+
- qiyi.xml
5+
- reference: https://github.com/EFForg/https-everywhere/pull/4801#issuecomment-219402538
6+
27
Nonfunctional hosts in *iqiyi.com:
3-
48
- ad ᵇ
59
- app ʳ
610
- auto ᵇ
@@ -32,68 +36,37 @@
3236
- yule ᵇ
3337
- zhaopin ᵇ
3438
- zuozhe ᵈ
35-
3639
ᵇ Shows default page
3740
ᵈ Dropped
3841
ʳ Refused
3942
40-
4143
^iqiyi.com: Mismatched
42-
44+
mbdapp.iqiyi.com: 404 not found.
4345
4446
Insecure cookies are set for these domains and hosts:
45-
4647
- .iqiyi.com
4748
- passport.iqiyi.com
4849
49-
5050
Mixed content:
51-
5251
- css, on:
53-
5452
- passport, www from static.iqiyi.com ˢ
5553
- passport from static.qiyi.com
56-
5754
- Images, on:
58-
5955
- passport from $self ˢ
6056
- passport from qiyipic.iqiyi.com ˢ
6157
- passport, www from www.qiyipic.com
6258
- www from pic\d.qiyipic.com
63-
6459
ˢ Secured by us, see https://www.paulirish.com/2010/the-protocol-relative-url/
65-
6660
-->
61+
6762
<ruleset name="iQiyi.com (partial)" platform="mixedcontent">
6863

69-
<!-- Direct rewrites:
70-
-->
71-
<target host="mbdapp.iqiyi.com" />
7264
<target host="passport.iqiyi.com" />
7365
<target host="qiyipic.iqiyi.com" />
74-
<target host="static.iqiyi.com" />
75-
<target host="www.iqiyi.com" />
76-
77-
<!-- Complications:
78-
-->
79-
<target host="iqiyi.com" />
80-
81-
<test url="http://qiyipic.iqiyi.com/common/fix/public_images/logoCommon.png" />
82-
<test url="http://static.iqiyi.com/css/common/basic_css/basic.css" />
83-
84-
85-
<!-- Not secured by server:
86-
-->
87-
<!--securecookie host="^\.iqiyi\.com$" name="^(?:P|QC)\d+$" /-->
88-
<!--securecookie host="^passport\.iqiyi\.com$" name="^JSESSIONID$" /-->
66+
<test url="http://qiyipic.iqiyi.com/common/fix/public_images/logoCommon.png" />
8967

9068
<securecookie host="^\w" name="." />
91-
92-
93-
<rule from="^http://iqiyi\.com/"
94-
to="https://www.iqiyi.com/" />
95-
96-
<rule from="^http:"
97-
to="https:" />
69+
70+
<rule from="^http:" to="https:" />
9871

9972
</ruleset>

0 commit comments

Comments
 (0)