From 2ca0aa4f29c20f21cce7337b851481bdfaea9a67 Mon Sep 17 00:00:00 2001 From: 3nprob <3nprob@3nprob> Date: Mon, 5 Apr 2021 22:24:27 +0900 Subject: [PATCH] Remove hubsbpot tracking URL params More information here: https://knowledge.hubspot.com/settings/how-do-i-create-a-tracking-url https://knowledge.hubspot.com/ads/ad-tracking-in-hubspot https://knowledge.hubspot.com/ctas/calls-to-action-frequently-asked-questions https://meta.stackexchange.com/questions/263392/what-are-these-very-long-parameters-in-so-careers-feedback-always-welcome-url --- searx/plugins/tracker_url_remover.py | 1 + 1 file changed, 1 insertion(+) diff --git a/searx/plugins/tracker_url_remover.py b/searx/plugins/tracker_url_remover.py index 742f3901..98ddddbc 100644 --- a/searx/plugins/tracker_url_remover.py +++ b/searx/plugins/tracker_url_remover.py @@ -21,6 +21,7 @@ from urllib.parse import urlunparse, parse_qsl, urlencode regexes = {re.compile(r'utm_[^&]+'), re.compile(r'(wkey|wemail)[^&]*'), + re.compile(r'(_hsenc|_hsmi|hsCtaTracking|__hssc|__hstc|__hsfp)[^&]*'), re.compile(r'&$')} name = gettext('Tracker URL remover')