|
30 | 30 |
|
31 | 31 | - Images on showroom from showroom.adform.com ˢ |
32 | 32 |
|
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/ |
34 | 34 |
|
35 | 35 | --> |
36 | 36 | <ruleset name="Adform (partial)"> |
37 | 37 |
|
| 38 | + <!-- Direct rewrites: |
| 39 | + --> |
38 | 40 | <target host="adform.com" /> |
| 41 | + <target host="showroom.adform.com" /> |
| 42 | + <target host="site.adform.com" /> |
39 | 43 | <target host="www.adform.com" /> |
40 | 44 |
|
41 | 45 | <target host="a1.adform.net" /> |
42 | 46 | <target host="adx.adform.net" /> |
43 | 47 | <target host="asia.adform.net" /> |
44 | 48 | <target host="cp.adform.net" /> |
| 49 | + <target host="dmp.adform.net" /> |
45 | 50 | <target host="files.adform.net" /> |
46 | 51 | <target host="s1.adform.net" /> |
47 | 52 | <target host="s2.adform.net" /> |
|
58 | 63 | <!--test url="http://dmp.adform.net/dmp/profile/?CC=1&pid=1&" /--> |
59 | 64 | <!--test url="http://track.adform.net/Serving/TrackPoint/?pm=1" /--> |
60 | 65 |
|
| 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 | + |
61 | 80 |
|
62 | 81 | <!-- Not secured by server: |
63 | 82 | --> |
64 | 83 | <!--securecookie host="^\.adform\.net$" name="^uid$" /--> |
65 | 84 | <!--securecookie host="^track\.adform\.net$" name="^C$" /--> |
66 | 85 |
|
67 | | - <securecookie host="^www\.adform\.com$" name=".+" /> |
| 86 | + <securecookie host="^\w.*\.adform\.com$" name="." /> |
68 | 87 | <!-- |
69 | 88 | name="^(GCM|TPC)$" |
70 | 89 | --> |
71 | | - <securecookie host="^\.adform\.net$" name=".+" /> |
72 | | - <securecookie host="^track\.adform\.net$" name=".+" /> |
| 90 | + <securecookie host="\.adform\.net$" name="." /> |
73 | 91 | <!-- |
74 | 92 | name="^uid$" |
75 | 93 | --> |
76 | | - <securecookie host="^\.adformdsp\.net$" name=".+" /> |
77 | | - <securecookie host="^server\.adformdsp\.net$" name=".+" /> |
| 94 | + <securecookie host="\.adformdsp\.net$" name="." /> |
78 | 95 |
|
79 | 96 |
|
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/" /> |
82 | 106 |
|
83 | 107 | <rule from="^http:" |
84 | 108 | to="https:" /> |
|
0 commit comments