From fde585a122aeb1869cda494c083e0ca095885912 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Tue, 12 Nov 2024 07:52:36 +0100 Subject: [PATCH] Added new version of MapXPlorer into abusers list Signed-off-by: Alexander Borsuk --- src/servers.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/servers.ts b/src/servers.ts index e271f6a..4f07143 100644 --- a/src/servers.ts +++ b/src/servers.ts @@ -119,10 +119,11 @@ export async function getServersList(request: Request) { // of their current maps data version, for example, "211022" (October 22, 2021). // It is lowercased by Cloudflare. const dataVersion = parseDataVersion(request.headers.get('x-om-dataversion')); + const abusedVersions = ['1.8.6-4-ios', '1.8.8-1-ios']; if (dataVersion === null) { // Older clients download from the archive. servers = [SERVER.backblaze]; - } else if (dataVersion == 240702 && request.headers.get('x-om-appversion') == '1.8.6-4-ios') { + } else if (dataVersion == 240702 && abusedVersions.includes(request.headers.get('x-om-appversion'))) { // Redirect https://apps.apple.com/us/app/mapxplorer-navigation-radar/id6463052823 // who abuses our servers to a slow download "trap" node. return new Response('["https://cdn-fi2.organicmaps.app/"]', {