summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2023-01-07 08:27:18 +0100
committerGitHub <noreply@github.com>2023-01-07 08:27:18 +0100
commit633ba8b1b6a6b6d10f0de394340c758dc6276d6b (patch)
treebc53581c8acb1e7b2d321636acf86ffc42589cf0
parentb241015e930030c0d7d5a152439d9dc48060dd6c (diff)
parent128b8c7f0a1723f488c01958fc2808e9228d90a3 (diff)
downloadsearxng-633ba8b1b6a6b6d10f0de394340c758dc6276d6b.tar.gz
searxng-633ba8b1b6a6b6d10f0de394340c758dc6276d6b.zip
Merge pull request #2081 from rudism/duckduckgo-referer
Add HTTP Referer header to DuckDuckGo requests
-rw-r--r--searx/engines/duckduckgo.py1
1 files changed, 1 insertions, 0 deletions
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: