limiter.toml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. [real_ip]
  2. # Number of values to trust for X-Forwarded-For.
  3. x_for = 1
  4. # The prefix defines the number of leading bits in an address that are compared
  5. # to determine whether or not an address is part of a (client) network.
  6. ipv4_prefix = 32
  7. ipv6_prefix = 48
  8. [botdetection.ip_limit]
  9. # To get unlimited access in a local network, by default link-local addresses
  10. # (networks) are not monitored by the ip_limit
  11. filter_link_local = false
  12. # activate link_token method in the ip_limit method
  13. link_token = false
  14. [botdetection.ip_lists]
  15. # In the limiter, the ip_lists method has priority over all other methods -> if
  16. # an IP is in the pass_ip list, it has unrestricted access and it is also not
  17. # checked if e.g. the "user agent" suggests a bot (e.g. curl).
  18. block_ip = [
  19. # '93.184.216.34', # IPv4 of example.org
  20. # '257.1.1.1', # invalid IP --> will be ignored, logged in ERROR class
  21. ]
  22. pass_ip = [
  23. # '192.168.0.0/16', # IPv4 private network
  24. # 'fe80::/10' # IPv6 linklocal / wins over botdetection.ip_limit.filter_link_local
  25. ]
  26. # Activate passlist of (hardcoded) IPs from the SearXNG organization,
  27. # e.g. `check.searx.space`.
  28. pass_searxng_org = true