summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2025-12-29 16:27:15 +0100
committerBnyro <bnyro@tutanota.com>2026-01-10 12:46:22 +0100
commit44405bd03c14bd62bc68f39dfca7b5d56a97eb14 (patch)
treec74774ea1eb5e9375fd2a02b58d46db7bb736dc7
parent26e275222b0f831930aef0a6b38e32e56ad78c36 (diff)
[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
-rw-r--r--searx/engines/yep.py3
-rw-r--r--searx/settings.yml2
2 files changed, 4 insertions, 1 deletions
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