Skip to content

Commit 99ec0e5

Browse files
authored
Merge pull request #135 from matomo-org/fix-download-url-lookup
Updated path used to look up the download URL
2 parents 08bc9ec + 3b3596a commit 99ec0e5

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

BlockedIpRanges/Azure.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ public function getDownloadUrl()
5454
// The api itself we don't really want to use. We'd need a subscriptionId. Unless we fetch it on a matomo server and make it available through a JSON there but then not sure if we are allowed to do that
5555
// or can we get it differently? Like do they have a fixed URL or so?
5656
// seems we could maybe assume the URL always stays the same except for the date part but then we'd need to check which date works (I've seen older URLs with same strucutre only date different)
57-
// might be easiest to fetch "confirmation" page and then extract the URL from there?
57+
// might be easiest to fetch "details" page and then extract the URL from there?
5858
// should look like 'https://download.microsoft.com/download/7/1/D/71D86715-5596-4529-9B13-DA13A5DE5B63/ServiceTags_Public_20201207.json'
5959

60-
$contentDownloadPage = Http::sendHttpRequest('https://www.microsoft.com/en-us/download/confirmation.aspx?id=56519', 120);
60+
$contentDownloadPage = Http::sendHttpRequest('https://www.microsoft.com/en-us/download/details.aspx?id=56519', 120);
6161
$prefixUrl = 'href="';
6262
$prefixStrLen = mb_strlen($prefixUrl, 'UTF-8');
6363
$posStart = mb_strpos($contentDownloadPage, $prefixUrl . 'https://download.microsoft.com/download/', 0, 'UTF-8');

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Changelog
22

3+
# 5.0.6 - 2024-12-09
4+
- Fixed broken Azure link for looking up IP ranges
5+
36
# 5.0.5 - 2024-10-24
47
- Look for headless browser in clientHints to detect spam
58

plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "TrackingSpamPrevention",
33
"description": "This plugin offers various options to prevent spammers and bots from making your data inaccurate so you can rely on your data again.",
4-
"version": "5.0.5",
4+
"version": "5.0.6",
55
"theme": false,
66
"require": {
77
"matomo": ">=5.0.0-b1,<6.0.0-b1"

0 commit comments

Comments
 (0)