Skip to content

Commit fdc6e8a

Browse files
committed
[CATO] Vaguely-unbreak CATO
We were only matching .com before, and CATO doesn't support TLS anymore :(
1 parent 8ef657a commit fdc6e8a

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎src/chrome/content/rules/Cato-Institute.xml‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<!--
2+
As of August 2014, CATO seems to reject all connections to :443
3+
24
CDN bucket:
35
46
- wac.0873.edgecastcdn.net/800873
@@ -15,8 +17,7 @@
1517
-->
1618
<ruleset name="Cato Institute (partial)">
1719

18-
<target host="cato.com" />
19-
<target host="*.cato.com" />
20+
<target host="secure.cato.org" />
2021

2122

2223
<!-- NB: This coverage is incomplete.
@@ -25,20 +26,20 @@
2526
2627
It seems that all pages at least two directories deep can be fetched via https
2728
-->
28-
<rule from="^https?://(?:www\.)?cato\.org/([^/]+/[^/]+)/"
29-
to="https://www.cato.org/$1/" />
29+
<!-- <rule from="^https?://(?:www\.)?cato\.org/([^/]+/[^/]+)/"
30+
to="https://www.cato.org/$1/" /> -->
3031

3132
<!-- the above rewrite makes the server print https links that point to pages which
3233
don't support https. We need to rewrite these links back to http before dealing
3334
with non-page paths below, since the paths below are matched here too.
3435
The paths that don't work comprise anything which isn't at least two
3536
directory levels deep. -->
36-
<rule from="^https://www\.cato\.org/([^/]+/?(?:[^/]+/?)?)?$"
37-
to="http://www.cato.org/$1" downgrade="1" />
37+
<!-- <rule from="^https://www\.cato\.org/([^/]+/?(?:[^/]+/?)?)?$"
38+
to="http://www.cato.org/$1" downgrade="1" /> -->
3839

3940
<!-- Account-related pages and non-page paths that support https. Not all do so. -->
40-
<rule from="^https?://(?:www\.)?cato\.org/(images/|store/(?:sites/|user/(?:password|register)))"
41-
to="https://www.cato.org/$1" />
41+
<!-- <rule from="^https?://(?:www\.)?cato\.org/(images/|store/(?:sites/|user/(?:password|register)))"
42+
to="https://www.cato.org/$1" /> -->
4243

4344
<rule from="^http://secure\.cato\.org/"
4445
to="https://secure.cato.org/" />

‎utils/downgrade-whitelist.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
Apple.com (partial)
2-
Cato Institute (partial)
32
CERN (partial)
43
Cheezburger
54
Contextly.com (partial)

0 commit comments

Comments
 (0)