summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--searx/engines/karmasearch.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/searx/engines/karmasearch.py b/searx/engines/karmasearch.py
index 140002c3c..a019ec885 100644
--- a/searx/engines/karmasearch.py
+++ b/searx/engines/karmasearch.py
@@ -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)}"