diff --git a/config/default-config.json b/config/default-config.json index 479f454..963ee91 100644 --- a/config/default-config.json +++ b/config/default-config.json @@ -60,6 +60,10 @@ {"func": "matchLang", "params": [], "id": "langMatch", "desc": "Client’s ‘Accept-Language’ header does not match the page language", "bot": 30 + }, + {"func": "matchesClient", "params": ["whatsapp","applemsgs"], + "id": "previewClient", "desc": "Client is known to only load a page preview", + "bot": -90 } ] } \ No newline at end of file diff --git a/config/known-bots.json b/config/known-bots.json index 4dcaa2a..8fbee46 100644 --- a/config/known-bots.json +++ b/config/known-bots.json @@ -48,7 +48,7 @@ }, {"id": "reddit", "n": "RedditBot", - "r": ["Applebot"], + "r": ["RedditBot"], "rx": [" redditbot\\/(\\d+\\.\\d+);"], "url": "http://www.reddit.com/feedback" }, @@ -94,12 +94,6 @@ "rx": ["PerplexityBot\\/(\\d+\\.\\d+);", "Perplexity‑User\\/(\\d+\\.\\d+);"], "url": "https://perplexity.ai/perplexitybot" }, - {"id": "applemsgs", - "n": "Apple Messages", - "r": [], - "rx": ["Facebot Twitterbot\\/(\\d\\.\\d)"], - "url": "https://developer.apple.com/documentation/technotes/tn3156-create-rich-previews-for-messages" - }, {"id": "metabots", "n": "Meta/Facebook", "geo": "US", "r": ["facebookexternalhit", "facebookcatalog","meta-webindexer","meta-externalads","meta-externalagent","meta-externalfetcher"], diff --git a/config/known-clients.json b/config/known-clients.json index 80adefc..5de75ba 100644 --- a/config/known-clients.json +++ b/config/known-clients.json @@ -86,5 +86,13 @@ {"n": "Firefox", "id": "firefox", "rx": [ "\\sFirefox\\/(\\d\\d\\d)\\." ] + }, + {"n": "WhatsApp", + "id": "whatsapp", + "rx": [ "WhatsApp/(\\d+\\.\\d+)" ] + }, + {"n": "Apple Messages", + "id": "applemsgs", + "rx": ["Facebot Twitterbot\\/(\\d\\.\\d)"] } ] diff --git a/img/bots.png b/img/bots.png index d7cf8f8..3d099fb 100644 Binary files a/img/bots.png and b/img/bots.png differ diff --git a/img/clients.png b/img/clients.png index 6e59da9..cf4d28d 100644 Binary files a/img/clients.png and b/img/clients.png differ diff --git a/plugin.info.txt b/plugin.info.txt index 3a9ade3..53d66bd 100644 --- a/plugin.info.txt +++ b/plugin.info.txt @@ -1,7 +1,7 @@ base botmon author Sascha Leib email ad@hominem.com -date 2025-10-03 +date 2025-10-12 name Bot Monitoring desc A tool for monitoring and analysing bot traffic to your wiki (under development) url https://www.dokuwiki.org/plugin:botmon diff --git a/style.less b/style.less index 14ba68f..119bf9f 100644 --- a/style.less +++ b/style.less @@ -49,7 +49,7 @@ &.bot_ahrefs::before { background-position-y: -120px } &.bot_seznambot::before { background-position-y: -140px } &.bot_claude::before { background-position-y: -160px } - &.bot_applemsgs::before { background-position-y: -180px } + &.bot_baidu::before { background-position-y: -180px } &.bot_reddit::before { background-position-y: -200px } &.bot_wayback::before { background-position-y: -220px } &.bot_alibaba::before { background-position-y: -241px } @@ -97,6 +97,8 @@ &.cl_ecosia::before { background-position-y: -340px } &.cl_webkit::before { background-position-y: -360px } &.cl_operaold::before { background-position-y: -380px } + &.cl_whatsapp::before { background-position-y: -400px } + &.cl_applemsgs::before { background-position-y: -420px } &.cl_other::before { background-image: url('img/more.svg') } /* Country flags */