mirror of
https://github.com/searxng/searxng.git
synced 2026-04-15 13:31:17 +00:00
[fix] karmasearch engine: setting Referer header to bypass bot detection (#5953)
This commit is contained in:
@@ -64,6 +64,9 @@ def request(query: str, params: "OnlineParams") -> None:
|
||||
if params["time_range"]:
|
||||
args["freshness"] = time_range_map[params["time_range"]]
|
||||
|
||||
# Needed to circumvent Cloudflare bot protection
|
||||
params['headers']['Referer'] = "https://karmasearch.org"
|
||||
|
||||
params["url"] = f"{base_url}/search/{search_type}?{urlencode(args)}"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user