📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Add curl/wget support & botsProtectionLevel to redis cache
Blue Mouse2bb44142de5b
diff --git a/backend/apps/production/src/analytics/analytics.service.ts b/backend/apps/production/src/analytics/analytics.service.tsindex e46ffa731..c14f9ca0a 100644--- a/backend/apps/production/src/analytics/analytics.service.ts+++ b/backend/apps/production/src/analytics/analytics.service.ts@@ -394,6 +394,7 @@ export class AnalyticsService {async throwIfBot(pid: string, userAgent: string) {const project = await this.projectService.getRedisProject(pid)+if (project.botsProtectionLevel === BotsProtectionLevel.OFF) {return}diff --git a/backend/apps/production/src/analytics/utils/ua-parser.ts b/backend/apps/production/src/analytics/utils/ua-parser.tsindex d1f0ad6f8..240d91473 100644--- a/backend/apps/production/src/analytics/utils/ua-parser.ts+++ b/backend/apps/production/src/analytics/utils/ua-parser.ts@@ -1,7 +1,7 @@import UAParser from 'ua-parser-js'const CUSTOM_BROWSERS = [- [/GameVault\/([\w.]+)/i],+ [/(wget|curl|lynx|GameVault)\/([\w.]+)/i],[UAParser.BROWSER.NAME, UAParser.BROWSER.VERSION],]diff --git a/backend/apps/production/src/project/project.service.ts b/backend/apps/production/src/project/project.service.tsindex 9f703a4ac..13c47910e 100644--- a/backend/apps/production/src/project/project.service.ts+++ b/backend/apps/production/src/project/project.service.ts@@ -325,6 +325,7 @@ export class ProjectService {'admin','public','ipBlacklist',+ 'botsProtectionLevel','captchaSecretKey','isCaptchaEnabled','passwordHash',