Skip to content

Commit 6a9f6ce

Browse files
committed
Merge pull request EFForg#1675 from PotcFdk/rule-readthedocs.org
New ruleset for ReadTheDocs
2 parents 9a3e6be + 3f00ba0 commit 6a9f6ce

File tree

2 files changed

+42
-21
lines changed

2 files changed

+42
-21
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<!--
2+
readthedocs.org and readthedocs.com work correctly.
3+
4+
Working subdomains on readthedocs.org / readthedocs.com:
5+
- www
6+
- media
7+
8+
All other *.readthedocs.(com|org) and *.rtfd.org
9+
use the '*.readthedocs.org' certificate.
10+
-->
11+
12+
<ruleset name="Read the Docs">
13+
<target host="readthedocs.org" />
14+
<target host="*.readthedocs.org" />
15+
16+
<target host="readthedocs.com" />
17+
<target host="*.readthedocs.com" />
18+
19+
<target host="rtfd.org" />
20+
<target host="*.rtfd.org" />
21+
22+
<exclusion pattern="^https://www\.readthedocs\.com/" />
23+
<exclusion pattern="^https://media\.readthedocs\.com/" />
24+
25+
<test url="http://www.readthedocs.com/" />
26+
<test url="http://media.readthedocs.com/" />
27+
<test url="https://www.readthedocs.com/" />
28+
<test url="https://media.readthedocs.com/" />
29+
30+
<test url="http://testing.readthedocs.org/" />
31+
<test url="http://testing.readthedocs.com/" />
32+
<test url="https://testing.readthedocs.com/" />
33+
<test url="http://testing.rtfd.org/" />
34+
35+
<securecookie host="^readthedocs\.org$" name=".+" />
36+
<securecookie host="^readthedocs\.com$" name=".+" />
37+
38+
<rule from="^http://(www|media)\.readthedocs\.com/" to="https://$1.readthedocs.com/" />
39+
<rule from="^https?://(.+)\.readthedocs\.com/" to="https://$1.readthedocs.org/" />
40+
<rule from="^https?://(.+\.)?rtfd\.org/" to="https://$1readthedocs.org/" />
41+
<rule from="^http:" to="https:" />
42+
</ruleset>

src/chrome/content/rules/Read_the_Docs.org.xml

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)