summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2023-02-03 10:35:52 +0100
committerGitHub <noreply@github.com>2023-02-03 10:35:52 +0100
commit9faf0dc2891e1509861e0be9ff9db67f833f8d82 (patch)
treea8bcbb596108b9941b9c65bdd04b047ba9d90ea2
parentd9ab83642f3b398c36f808bd8b08dc3b482722f4 (diff)
parent257dc7d6c40a8c4bae682c6e7e6b764a98c4ec96 (diff)
downloadsearxng-9faf0dc2891e1509861e0be9ff9db67f833f8d82.tar.gz
searxng-9faf0dc2891e1509861e0be9ff9db67f833f8d82.zip
Merge pull request #2161 from return42/fix-2146
[fix-2146] set different HTTP Referer header to DuckDuckGo requests
-rw-r--r--searx/engines/duckduckgo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/duckduckgo.py b/searx/engines/duckduckgo.py
index 84198afc5..2a7956ca8 100644
--- a/searx/engines/duckduckgo.py
+++ b/searx/engines/duckduckgo.py
@@ -73,7 +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/'
+ params['headers']['Referer'] = 'https://google.com/'
# initial page does not have an offset
if params['pageno'] == 2: