Skip to content

Commit eaffec3

Browse files
committed
Merge pull request EFForg#999 from fuglede/altmetric.com-rules
Added Altmetric.com.xml
2 parents 8b2c66b + f5317e8 commit eaffec3

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!--
2+
Not covered:
3+
- support.altmetric.com (bad cert)
4+
5+
The page /blog/ would fail with mixed content in the relevant
6+
browsers and so is excluded. However, /blog/ is linked relatively,
7+
so simply using exclusion patterns is not sufficient.
8+
-->
9+
<ruleset name="Altmetric.com">
10+
<target host="altmetric.com" />
11+
<target host="www.altmetric.com" />
12+
<target host="alt.altmetric.com" />
13+
14+
<test url="http://altmetric.com/blog/" />
15+
<test url="https://altmetric.com/blog/" />
16+
<test url="http://www.altmetric.com/blog/" />
17+
<test url="https://www.altmetric.com/blog/" />
18+
19+
<exclusion pattern="^http://(www\.)?altmetric.com/blog/"/>
20+
<rule from="^https://(www\.)?altmetric\.com/blog/" to="http://$1altmetric.com/blog/" downgrade="1" />
21+
22+
<rule from="^http:"
23+
to="https:"/>
24+
25+
</ruleset>

utils/downgrade-whitelist.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Altmetric.com
12
Apple.com (partial)
23
CERN (partial)
34
Cheezburger

0 commit comments

Comments
 (0)