summaryrefslogtreecommitdiff
path: root/searx/plugins
diff options
context:
space:
mode:
author3nprob <3nprob@3nprob>2021-04-05 22:24:27 +0900
committer3nprob <3nprob@3nprob>2021-04-06 02:11:09 +0900
commit2ca0aa4f29c20f21cce7337b851481bdfaea9a67 (patch)
treeede1190c6052a87ec7b74caea203ee3cbb0a3425 /searx/plugins
parenta20141d697fcb7b22f03812be5fc7a7e32ed938f (diff)
downloadsearxng-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
Diffstat (limited to 'searx/plugins')
-rw-r--r--searx/plugins/tracker_url_remover.py1
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')