Skip to content

Disable bot detection on a private network. #448

@jcalfee

Description

@jcalfee

I assume this is why Open WebUI keeps printing "An error occurred while searching the web" .. These appear when it tries:

searxng  | 2025-12-26 16:12:52,812 ERROR:searx.botdetection: X-Forwarded-For nor X-Real-IP header is set!
searxng  | 2025-12-26 16:12:52,812 ERROR:searx.botdetection: X-Forwarded-For nor X-Real-IP header is set!

I have a private network and private user-base so I do not need bot detection at this time. I did not find a trust_proxy setting and tried, to no avail, to disable it using:

    volumes:
      - ./limiter.toml:/etc/searxng/limiter.toml:ro

limiter.toml

[botdetection]
trusted_proxies = [
  "127.0.0.0/8",
  "::1",
  "10.0.0.0/8",
  "172.16.0.0/12",
  "192.168.0.0/16",
  "fd00::/8"
]

[botdetection.ip_lists]
pass_ip = [
  "0.0.0.0/0",   # All IPv4 addresses
  "::/0"         # All IPv6 addresses
]

What should I do? Thank you...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions