private-engines.rst.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. =============================
  2. How to create private engines
  3. =============================
  4. If you are running your public searx instance, you might want to restrict access
  5. to some engines. Maybe you are afraid of bots might abusing the engine. Or the
  6. engine might return private results you do not want to share with strangers.
  7. Server side configuration
  8. =========================
  9. You can make any engine private by setting a list of tokens in your settings.yml
  10. file. In the following example, we set two different tokens that provide access
  11. to the engine.
  12. .. code:: yaml
  13. - name: my-private-google
  14. engine: google
  15. shortcut: pgo
  16. tokens: ['my-secret-token-1', 'my-secret-token-2']
  17. To access the private engine, you must distribute the tokens to your searx
  18. users. It is up to you how you let them know what the access token is you
  19. created.
  20. Client side configuration
  21. =========================
  22. As a searx instance user, you can add any number of access tokens on the
  23. Preferences page. You have to set a comma separated lists of strings in "Engine
  24. tokens" input, then save your new preferences.
  25. .. image:: prefernces-private.png
  26. :width: 600px
  27. :align: center
  28. :alt: location of token textarea
  29. Once the Preferences page is loaded again, you can see the information of the
  30. private engines you got access to. If you cannot see the expected engines in the
  31. engines list, double check your token. If there is no issue with the token,
  32. contact your instance administrator.