|
53 | 53 | --> |
54 | 54 | <ruleset name="Hatena (partial)"> |
55 | 55 |
|
56 | | - <target host="hatena.ne.jp" /> |
57 | 56 | <target host="*.hatena.ne.jp" /> |
58 | 57 | <target host="*.st-hatena.com" /> |
59 | 58 |
|
60 | 59 |
|
61 | | - <!-- Not secured by server: |
62 | | - --> |
| 60 | + <!-- Not secured by server: --> |
63 | 61 | <!--securecookie host="^\.hatena\.ne\.jp$" name="^b$" /--> |
| 62 | + <!--securecookie host="^\.hatena\.ne\.jp$" name=".+" /--> |
64 | 63 |
|
65 | | - <securecookie host="^\.hatena\.ne\.jp$" name=".+" /> |
66 | 64 |
|
| 65 | + <rule from="^http://(www\.)?hatena\.ne\.jp/(css/|images/|login($|\?|/)|statics/)" |
| 66 | + to="https://www.hatena.ne.jp/$2" /> |
67 | 67 |
|
68 | | - <rule from="^http://(?:www\.)?hatena\.ne\.jp/(css/|images/|login(?:$|\?|/)|statics/)" |
69 | | - to="https://www.hatena.ne.jp/$1" /> |
| 68 | + <test url="http://hatena.ne.jp/css/" /> |
| 69 | + <test url="http://hatena.ne.jp/images/" /> |
| 70 | + <test url="http://hatena.ne.jp/login/" /> |
| 71 | + <test url="http://hatena.ne.jp/statics/" /> |
| 72 | + <test url="http://www.hatena.ne.jp/css/" /> |
| 73 | + <test url="http://www.hatena.ne.jp/images/" /> |
| 74 | + <test url="http://www.hatena.ne.jp/login/" /> |
| 75 | + <test url="http://www.hatena.ne.jp/statics/" /> |
70 | 76 |
|
71 | | - <rule from="^http://(b|d)\.(?:hatena\.ne\.jp|st-hatena\.com)/images/" |
| 77 | + <rule from="^http://(b|d)\.st-hatena\.com/images/" |
72 | 78 | to="https://$1.hatena.ne.jp/images/" /> |
73 | 79 |
|
74 | | - <rule from="^http://cdn-ak\.favicon\.st-hetena\.com/" |
75 | | - to="https://a248.e.akamai.net/m/336/3102/4/cdn-ak.favicon.st-hatena.com/" /> |
| 80 | + <test url="http://b.st-hatena.com/images/" /> |
| 81 | + <test url="http://d.st-hatena.com/images/" /> |
76 | 82 |
|
77 | | - <rule from="^http://(?:cdn\.)?www\.st-hatena\.com/" |
| 83 | + <rule from="^http://(cdn\.)?www\.st-hatena\.com/" |
78 | 84 | to="https://www.hatena.ne.jp/" /> |
79 | 85 |
|
80 | | - <rule from="^http://cdn1\.www\.st-hatena\.com/" |
81 | | - to="https://a248.e.akamai.net/f/1075/6343/5/cdn1.www.st-hatena.com/" /> |
| 86 | + <test url="http://cdn.www.st-hatena.com/" /> |
| 87 | + <test url="http://www.st-hatena.com/" /> |
82 | 88 |
|
83 | 89 | </ruleset> |
0 commit comments