Skip to content

Commit c5edce4

Browse files
author
MB
committed
Adform: don't force www, squish, add coverage
1 parent 890d711 commit c5edce4

File tree

2 files changed

+33
-8
lines changed

2 files changed

+33
-8
lines changed

src/chrome/content/rules/Adform.xml

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,23 @@
3030
3131
- Images on showroom from showroom.adform.com ˢ
3232
33-
ˢ See https://www.paulirish.com/2010/the-protocol-relative-url/
33+
ˢ Secured by us, see https://www.paulirish.com/2010/the-protocol-relative-url/
3434
3535
-->
3636
<ruleset name="Adform (partial)">
3737

38+
<!-- Direct rewrites:
39+
-->
3840
<target host="adform.com" />
41+
<target host="showroom.adform.com" />
42+
<target host="site.adform.com" />
3943
<target host="www.adform.com" />
4044

4145
<target host="a1.adform.net" />
4246
<target host="adx.adform.net" />
4347
<target host="asia.adform.net" />
4448
<target host="cp.adform.net" />
49+
<target host="dmp.adform.net" />
4550
<target host="files.adform.net" />
4651
<target host="s1.adform.net" />
4752
<target host="s2.adform.net" />
@@ -58,27 +63,46 @@
5863
<!--test url="http://dmp.adform.net/dmp/profile/?CC=1&amp;pid=1&amp;" /-->
5964
<!--test url="http://track.adform.net/Serving/TrackPoint/?pm=1" /-->
6065

66+
<!-- Complications:
67+
-->
68+
<target host="academy.adform.com" />
69+
<target host="blog.adform.com" />
70+
<target host="creative.adform.com" />
71+
72+
<exclusion pattern="^http://(?:academy|blog|creative)\.adform\.com/" />
73+
74+
<!-- +ve:
75+
-->
76+
<test url="http://academy.adform.com/" />
77+
<test url="http://blog.adform.com/" />
78+
<test url="http://creative.adform.com/" />
79+
6180

6281
<!-- Not secured by server:
6382
-->
6483
<!--securecookie host="^\.adform\.net$" name="^uid$" /-->
6584
<!--securecookie host="^track\.adform\.net$" name="^C$" /-->
6685

67-
<securecookie host="^www\.adform\.com$" name=".+" />
86+
<securecookie host="^\w.*\.adform\.com$" name="." />
6887
<!--
6988
name="^(GCM|TPC)$"
7089
-->
71-
<securecookie host="^\.adform\.net$" name=".+" />
72-
<securecookie host="^track\.adform\.net$" name=".+" />
90+
<securecookie host="\.adform\.net$" name="." />
7391
<!--
7492
name="^uid$"
7593
-->
76-
<securecookie host="^\.adformdsp\.net$" name=".+" />
77-
<securecookie host="^server\.adformdsp\.net$" name=".+" />
94+
<securecookie host="\.adformdsp\.net$" name="." />
7895

7996

80-
<rule from="^http://adform\.com/"
81-
to="https://www.adform.com/" />
97+
<!-- Protocol-relative links on ^site.../$:
98+
-->
99+
<rule from="^https://(academy|blog|creative)\.adform\.com/"
100+
to="http://$1.adform.com/"
101+
downgrade="1" />
102+
103+
<test url="https://academy.adform.com/" />
104+
<test url="https://blog.adform.com/" />
105+
<test url="https://creative.adform.com/" />
82106

83107
<rule from="^http:"
84108
to="https:" />

utils/downgrade-whitelist.txt

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

0 commit comments

Comments
 (0)