From 128b8c7f0a1723f488c01958fc2808e9228d90a3 Mon Sep 17 00:00:00 2001 From: Rudis Muiznieks Date: Fri, 6 Jan 2023 16:07:37 -0600 Subject: [PATCH] Add HTTP Referer header to DuckDuckGo requests closes #2080 --- searx/engines/duckduckgo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/searx/engines/duckduckgo.py b/searx/engines/duckduckgo.py index 0d82002bf..84198afc5 100644 --- a/searx/engines/duckduckgo.py +++ b/searx/engines/duckduckgo.py @@ -73,6 +73,7 @@ def request(query, params): # link again and again .. params['headers']['Content-Type'] = 'application/x-www-form-urlencoded' + params['headers']['Referer'] = 'https://lite.duckduckgo.com/' # initial page does not have an offset if params['pageno'] == 2: