diff options
author | 3nprob <3nprob@3nprob> | 2021-04-05 22:24:27 +0900 |
---|---|---|
committer | 3nprob <3nprob@3nprob> | 2021-04-06 02:11:09 +0900 |
commit | 2ca0aa4f29c20f21cce7337b851481bdfaea9a67 (patch) | |
tree | ede1190c6052a87ec7b74caea203ee3cbb0a3425 | |
parent | a20141d697fcb7b22f03812be5fc7a7e32ed938f (diff) | |
download | searxng-2ca0aa4f29c20f21cce7337b851481bdfaea9a67.tar.gz searxng-2ca0aa4f29c20f21cce7337b851481bdfaea9a67.zip |
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
-rw-r--r-- | searx/plugins/tracker_url_remover.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/plugins/tracker_url_remover.py b/searx/plugins/tracker_url_remover.py index 742f39013..98ddddbcd 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') |