summaryrefslogtreecommitdiff
path: root/searxng_extra
diff options
context:
space:
mode:
authormg95 <git@esen.gay>2026-03-23 16:55:48 +0300
committerGitHub <noreply@github.com>2026-03-23 14:55:48 +0100
commit2c1ce3bd37a2548d7e8a96127d19d7b6164d746b (patch)
tree23c507e18912d79506a2853422b0b3251d243de0 /searxng_extra
parent6c7e9c19764af7e52593253a1e6573ce98b8ce97 (diff)
[fix] google: switch to using "Google App" for Android useragent (#5892)
I found a bypass using the Android Google App this time. However, unlike the iPhone GSA method, this one does have rate limits. Although it took a couple of hundred consecutive requests to trigger them.
Diffstat (limited to 'searxng_extra')
-rw-r--r--searxng_extra/update/update_gsa_useragents.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searxng_extra/update/update_gsa_useragents.py b/searxng_extra/update/update_gsa_useragents.py
index 3bb839657..8c4630be8 100644
--- a/searxng_extra/update/update_gsa_useragents.py
+++ b/searxng_extra/update/update_gsa_useragents.py
@@ -26,7 +26,7 @@ def fetch_gsa_useragents() -> list[str]:
suas: set[str] = set()
for ua in loads(decompress(response.content)):
- if ua["platform"] == "iPhone" and "GSA" in ua["userAgent"]:
+ if "Android" in ua["userAgent"] and "Chrome" in ua["userAgent"] and "Samsung" not in ua["userAgent"]:
suas.add(ua["userAgent"])
luas = list(suas)