Browse Source

Merge pull request #2161 from return42/fix-2146

[fix-2146] set different HTTP Referer header to DuckDuckGo requests
Markus Heiser 2 years ago
parent
commit
9faf0dc289
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/engines/duckduckgo.py

+ 1 - 1
searx/engines/duckduckgo.py

@@ -73,7 +73,7 @@ def request(query, params):
     # link again and again ..
     # link again and again ..
 
 
     params['headers']['Content-Type'] = 'application/x-www-form-urlencoded'
     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
     # initial page does not have an offset
     if params['pageno'] == 2:
     if params['pageno'] == 2: