summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorRudis Muiznieks <rudis@sitosis.com>2023-01-06 16:07:37 -0600
committerRudis Muiznieks <rudis@sitosis.com>2023-01-06 16:07:37 -0600
commit128b8c7f0a1723f488c01958fc2808e9228d90a3 (patch)
treebc53581c8acb1e7b2d321636acf86ffc42589cf0 /searx
parentb241015e930030c0d7d5a152439d9dc48060dd6c (diff)
downloadsearxng-128b8c7f0a1723f488c01958fc2808e9228d90a3.tar.gz
searxng-128b8c7f0a1723f488c01958fc2808e9228d90a3.zip
Add HTTP Referer header to DuckDuckGo requests
closes #2080
Diffstat (limited to 'searx')
-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: