Skip to content

fix: add forwarded IP headers to searxng requests#1055

Open
stablegenius49 wants to merge 1 commit intoItzCrazyKns:masterfrom
stablegenius49:pr-factory/issue-858-searxng-forwarded-ip
Open

fix: add forwarded IP headers to searxng requests#1055
stablegenius49 wants to merge 1 commit intoItzCrazyKns:masterfrom
stablegenius49:pr-factory/issue-858-searxng-forwarded-ip

Conversation

@stablegenius49
Copy link

@stablegenius49 stablegenius49 commented Mar 11, 2026

Summary

  • add explicit X-Forwarded-For and X-Real-IP headers to SearXNG requests
  • use loopback headers for Vane's server-side fetches so default SearXNG botdetection no longer aborts the request

Testing

  • ./node_modules/.bin/eslint --config .eslintrc.json src/lib/searxng.ts
  • ./node_modules/.bin/tsc --noEmit

Closes #858.


Summary by cubic

Add loopback IP headers to SearXNG requests so server-side searches no longer fail due to bot detection. Closes #858 by sending X-Forwarded-For and X-Real-IP set to 127.0.0.1.

Written for commit b39461f. Summary will update on new commits.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ERROR:searx.botdetection: X-Forwarded-For nor X-Real-IP header is set!

1 participant