From 44405bd03c14bd62bc68f39dfca7b5d56a97eb14 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Mon, 29 Dec 2025 16:27:15 +0100 Subject: [PATCH] [fix] yep: fix 403 forbidden errors Apparently, yep has been broken for a while. Measures to fix it: - only use HTTP/1.1, because our HTTP2 client gets fingerprinted and blocked - send the `Origin` HTTP header --- searx/engines/yep.py | 3 +++ searx/settings.yml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/searx/engines/yep.py b/searx/engines/yep.py index 726f62c0d..2de18b729 100644 --- a/searx/engines/yep.py +++ b/searx/engines/yep.py @@ -19,6 +19,8 @@ search_type = "web" # 'web', 'images', 'news' safesearch = True safesearch_map = {0: 'off', 1: 'moderate', 2: 'strict'} +enable_http2 = False + def request(query, params): args = { @@ -30,6 +32,7 @@ def request(query, params): } params['url'] = f"{base_url}/fs/2/search?{urlencode(args)}" params['headers']['Referer'] = 'https://yep.com/' + params['headers']['Origin'] = 'https://yep.com' return params diff --git a/searx/settings.yml b/searx/settings.yml index 333d069a2..348268b4e 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -691,7 +691,7 @@ engines: shortcut: yep categories: general search_type: web - timeout: 5 + timeout: 15 disabled: true - name: yep images