Skip to content

Commit 286d284

Browse files
author
MB
committed
[MediaMath] Enumerate, squish, split, add comments, add coverage
1 parent 0cee6d7 commit 286d284

4 files changed

Lines changed: 117 additions & 9 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!--
2+
For other MediaMath coverage, see MediaMath.xml.
3+
4+
5+
CDN buckets:
6+
7+
- ak1.abmr.net/is/pixel.mathtag.com
8+
9+
-->
10+
<ruleset name="Mathtag.com">
11+
12+
<!-- Direct rewrites:
13+
-->
14+
<target host="action.mathtag.com" />
15+
<target host="akamai.mathtag.com" />
16+
<target host="pixel.mathtag.com" />
17+
<target host="sync.mathtag.com" />
18+
19+
20+
<!-- name="^(HRL8|uuid)$"
21+
-->
22+
<securecookie host="^\.mathtag\.com$" name=".*" />
23+
24+
25+
<rule from="^http:"
26+
to="https:" />
27+
28+
</ruleset>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!--
2+
For other MediaMath coverage, see MediaMath.xml.
3+
4+
-->
5+
<ruleset name="MediaMath.com (false MCB)" platform="mixedcontent">
6+
7+
<target host="devblog.mediamath.com" />
8+
<target host="www.mediamath.com" />
9+
10+
11+
<securecookie host="^www\.mediamath\.com$" name=".+" />
12+
13+
14+
<rule from="^http:"
15+
to="https:" />
16+
17+
</ruleset>
Lines changed: 70 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,88 @@
11
<!--
2+
For rules causing broken MCB, see MediaMath.com-falsemixed.xml.
3+
4+
5+
Other MediaMath rulesets:
6+
7+
- Mathtag.com.xml
8+
9+
210
CDN buckets:
311
412
- ak1.abmr.net/is/pixel.mathtag.com
513
14+
15+
Partially covered hosts in *
16+
17+
- devblog *
18+
- www *
19+
20+
* Avoiding broken MCB
21+
22+
23+
Fully covered hosts in *mediamath.com:
24+
25+
- ^
26+
- developer
27+
- t1
28+
- t1beta
29+
- t1cdn
30+
31+
32+
Insecure cookies are set for these hosts:
33+
34+
- www.mediamath.com
35+
36+
37+
Mixed content:
38+
39+
- css on www from $self *
40+
- Video on www from $self *
41+
- Images on www from $self *
42+
43+
* Secured by us
44+
645
-->
7-
<ruleset name="MediaMath" platform="mixedcontent">
46+
<ruleset name="MediaMath.com (partial)">
847

9-
<target host="*.mathtag.com" />
48+
<!-- Direct rewrites:
49+
-->
1050
<target host="mediamath.com" />
51+
<target host="devblog.mediamath.com" />
52+
<target host="developer.mediamath.com" />
1153
<target host="t1.mediamath.com" />
54+
<target host="t1beta.mediamath.com" />
55+
<target host="t1cdn.mediamath.com" />
1256
<target host="www.mediamath.com" />
1357

58+
<!-- Avoid broken MCB:
59+
-->
60+
<exclusion pattern="^http://(?:devblog|www)\.mediamath\.com/+(?!content/uploads/|wp-content/)" />
1461

15-
<!-- name="^(HRL8|uuid)$"
62+
<!-- +ve:
1663
-->
17-
<securecookie host="^\.mathtag\.com$" name=".*" />
18-
<securecookie host="^(?:.*\.)?mediamath\.com$" name=".*" />
64+
<test url="http://devblog.mediamath.com/author/jessica-edwards" />
65+
<test url="http://devblog.mediamath.com/category/hacks" />
66+
<test url="http://devblog.mediamath.com/extending-plays-validation-to-work-with-big-data-tools-like-dynamodb-s3-spark" />
67+
<test url="http://www.mediamath.com/about/" />
68+
<test url="http://www.mediamath.com/careers/" />
69+
<test url="http://www.mediamath.com/education/" />
1970

71+
<!-- -ve:
72+
-->
73+
<test url="http://devblog.mediamath.com/wp-content/themes/mediamath/images/iab.png" />
74+
<test url="http://www.mediamath.com/content/uploads/2014/06/location-chicago-355x450.jpg" />
75+
<test url="http://www.mediamath.com/wp-content/uploads/2014/06/location-new-york-1-355x450.jpg" />
76+
77+
78+
<!-- Not secured by server:
79+
-->
80+
<!--securecookie host="^www\.mediamath\.com$" name="^PHPSESSID$" /-->
81+
82+
<securecookie host="^(?:.*\.)?mediamath\.com$" name=".*" />
2083

21-
<rule from="^http://(action|akamai|pixel|sync)\.mathtag\.com/"
22-
to="https://$1.mathtag.com/" />
2384

24-
<rule from="^http://(t1\.|www\.)?mediamath\.com/"
25-
to="https://$1mediamath.com/" />
85+
<rule from="^http:"
86+
to="https:" />
2687

2788
</ruleset>

‎utils/duplicate-whitelist.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ maemo-apps.org
143143
makeagif.com
144144
mandiant.com
145145
marketplace.org
146+
devblog.mediamath.com
147+
www.mediamath.com
146148
mediciglobal.com
147149
megaglest.org
148150
*.meetupstatic.com

0 commit comments

Comments
 (0)