fix: Add X-Forwarded-For header to SearXNG requests to bypass bot detection

This commit is contained in:
Claude committed 2025-11-22 11:23:08 +00:00
1 parent 9235ad444a
commit 20080aee74
2 files changed
+7

No files matched your search

+2
View File
@@ -67,6 +67,8 @@ async def search(
},
headers={
"Accept": "application/json",
"X-Forwarded-For": "127.0.0.1",
"X-Real-IP": "127.0.0.1",
},
)
response.raise_for_status()
+5
View File
@@ -8,6 +8,11 @@ server:
image_proxy: false
port: 8080
bind_address: "0.0.0.0"
method: "GET"
# Disable bot detection for internal API use
redis:
url: false
search:
safe_search: 0