Skip to content

Commit

Permalink
[FEATURE] Extend list of bots/spiders to prevent tracking in unneeded…
Browse files Browse the repository at this point in the history
… cases
  • Loading branch information
einpraegsam committed Aug 4, 2024
1 parent ac8057b commit 5b340b4
Showing 1 changed file with 40 additions and 9 deletions.
49 changes: 40 additions & 9 deletions Classes/Domain/Tracker/StopTracking.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Class StopTracking
*
* to stop the initial tracking for some reasons:
* to stop the initial tracking for some reason:
* - If useragent is empty (seems to be not a normal visitor)
* - If useragent contains stop words (e.g. lighthouse, sistrix)
* - If useragent turns out to be a blacklisted browser (e.g. "Googlebot")
Expand All @@ -35,17 +35,48 @@ class StopTracking
* @var array
*/
protected array $blacklistedUa = [
'googlebot',
'pinterestbot',
'linkedinbot',
'bingbot',
'adidxbot',
'ahrefsbot',
'alexabot',
'amazonbot',
'applebot',
'archive.org_bot',
'yandexbot',
'sistrix',
'baiduspider',
'bingbot',
'blexbot',
'cookieradar',
'curl',
'discordbot',
'dotbot',
'duckduckbot',
'exabot',
'facebookexternalhit',
'googlebot',
'headlesschrome',
'ia_archiver',
'lighthouse',
'linkedinbot',
'mauibot',
'msnbot',
'phantomjs',
'pingdom',
'pinterestbot',
'python-requests',
'rogerbot',
'selenium',
'semrushbot',
'sistrix',
'cookieradar',
'HeadlessChrome',
'skypebot',
'slackbot',
'slurp',
'sogou',
'telegrambot',
'twitterbot',
'uptimerobot',
'wget',
'whatsapp',
'yacybot',
'yandexbot',
];

/**
Expand Down

0 comments on commit 5b340b4

Please sign in to comment.