Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit b0cde97

Browse files
authored
Update Politico.xml (#19774)
* Update Politico.xml
1 parent b68445c commit b0cde97

File tree

1 file changed

+24
-96
lines changed

1 file changed

+24
-96
lines changed
Lines changed: 24 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,106 +1,34 @@
11
<!--
22
Other Politico rulesets:
3+
+ Politico_Pro.com.xml
34
4-
- Politico_Pro.com.xml
5+
Non-functional hosts
6+
Timeout was reached:
7+
- login.politico.com
8+
- origin-www.politico.com
59
10+
SSL peer certificate was not OK:
11+
- focus.politico.com
12+
- tk.politico.com
613
7-
Nonfunctional hosts in *politico.com:
8-
9-
- dyn ʳ
10-
- pro.beta.ops ᵈ
11-
12-
ᵈ Dropped
13-
ʳ Refused
14-
15-
16-
Problematic hosts in *politico.com:
17-
18-
- ^ * ᵐ ᵘ
19-
- images ᵐ
20-
- static ⁵
21-
- static2 ᵐ
22-
- static3 ⁴
23-
- tk ᵐ
24-
- www ⁴
25-
26-
* Protocol-relative redirect
27-
⁴ 404, equivalent to another domain
28-
⁵ 504, equivalent to another domain
29-
ᵐ Mismatched
30-
ᵘ Untrusted root
31-
32-
33-
Mixed content:
34-
35-
- Images on secure from static2.politico.com ᵐ
36-
- Images on secure from static3.politico.com/dims4/ ⁴
37-
- favicon on secure from static.politico.com ˢ
38-
39-
ᵐ Not secured by us <= mismatched
40-
⁴ 404, equivalent to another domain
41-
ˢ Secured by us, see https://www.paulirish.com/2010/the-protocol-relative-url/
42-
14+
4xx client error:
15+
- images.politico.com
16+
- rss.politico.com
17+
- static3.politico.com
4318
-->
44-
<ruleset name="Politico.com (partial)"
45-
default_off="webmaster request">
46-
47-
<!-- Direct rewrites:
48-
-->
49-
<target host="login.politico.com" />
50-
<target host="secure.politico.com" />
51-
<target host="static3.politico.com" />
52-
53-
<!-- $ 404s, so:
54-
-->
55-
<test url="http://login.politico.com/_login?base=http%3A%2F%2Fwww.politico.com" />
56-
<test url="http://static3.politico.com/resource/images/website/shared/template/bg-noise.24d18bcf9d414e030c36ffd7f30648e8.jpg" /><!-- 2033 -->
57-
58-
59-
<!-- Complications:
60-
-->
19+
<ruleset name="Politico.com (partial)">
6120
<target host="politico.com" />
62-
<target host="static.politico.com" />
6321
<target host="www.politico.com" />
22+
<target host="design.politico.com" />
23+
<target host="go.politico.com" />
24+
<target host="qablue.ops.politico.com" />
25+
<target host="secure.politico.com" />
26+
<target host="static.politico.com" />
27+
<test url="http://static.politico.com/ac/aa/9226248b44f0846616bfac182b22/logo-politicopro-200x2.png" />
28+
<test url="http://static.politico.com/ba/ac/b50c1f104e1bbf185e73058bb8fb/secureicons4.png" />
29+
<target host="vpn.politico.com" />
30+
31+
<securecookie host=".+" name=".+" />
6432

65-
<test url="http://static.politico.com/cf/05/ee684a274496b04fa20ba2978da1/politico.png" /><!-- 1064 -->
66-
67-
<securecookie host="^\." name="^(?:_ga|optimizely)" />
68-
<securecookie host="^\w" name=".+" />
69-
70-
<exclusion pattern="^http://tk\.politico\.com/" />
71-
<test url="http://tk.politico.com/zmr6qqx.js" />
72-
73-
<exclusion pattern="^http://(www\.)?politico\.com/about" />
74-
<test url="http://www.politico.com/about/" />
75-
<test url="http://www.politico.com/about/advertising" />
76-
77-
<exclusion pattern="^http://(www\.)?politico\.com/agenda" />
78-
<test url="http://www.politico.com/agenda/" />
79-
<test url="http://www.politico.com/agenda/story/2015/05/what-does-hillary-stand-for-check-her-staff-twitter-000057" />
80-
81-
<exclusion pattern="^http://(www\.)?politico\.com/magazine" />
82-
<test url="http://www.politico.com/magazine/" />
83-
<test url="http://www.politico.com/magazine/story/2014/01/waterboarding-cia-lawyer-john-rizzo-torture-101758" />
84-
85-
<exclusion pattern="^http://(www\.)?politico\.com/[0-9]+-election/" />
86-
<test url="http://www.politico.com/2014-election/results/map/house" />
87-
<test url="http://www.politico.com/2014-election/results/map/senate" />
88-
<test url="http://www.politico.com/2016-election/results/map/house" />
89-
90-
<!-- many images cannot be rewritten to static3 -->
91-
<exclusion pattern="^http://static\.politico\.com/dims4/" />
92-
<test url="http://static.politico.com/dims4/default/07b4c8d/2147483647/legacy_thumbnail/1200x800%3E/quality/90/?url=http%3A%2F%2Fstatic.politico.com%2F2b%2F6b%2F8a85c0cf44bba0a33514ee41db43%2Fap540355375077.jpg" />
93-
94-
<!-- currently 404 on www as well as secure -->
95-
<!-- <exclusion pattern="^http://www.politico.com/rss/.+\.xml$" /> -->
96-
97-
<rule from="^http://(www\.)?politico\.com/"
98-
to="https://secure.politico.com/" />
99-
100-
<rule from="^http://static\.politico\.com/"
101-
to="https://static3.politico.com/" />
102-
103-
<rule from="^http:"
104-
to="https:" />
105-
33+
<rule from="^http:" to="https:" />
10634
</ruleset>

0 commit comments

Comments
 (0)