| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 | ==================================Limit access to your searx engines==================================Administrators might find themselves wanting to limit access to some of theenabled engines on their instances. It might be because they do not want toexpose some private information through an offline engine. Or theywould rather share engines only with their trusted friends or colleagues... _private engines:Private engines===============To solve this issue private engines were introduced in :pull-searx:`1823`.A new option was added to engines named `tokens`. It expects a listof strings. If the user making a request presents one of the tokensof an engine, they can access information about the engineand make search requests.Example configuration to restrict access to the Arch Linux Wiki engine:.. code:: yaml  - name : arch linux wiki    engine : archlinux    shortcut : al    tokens : [ 'my-secret-token' ]Unless a user has configured the right token, the engine is goingto be hidden from him/her. It is not going to be included in thelist of engines on the Preferences page and in the output of`/config` REST API call.Tokens can be added to one's configuration on the Preferences pageunder "Engine tokens". The input expects a comma separated list ofstrings.The distribution of the tokens from the administrator to the usersis not carved in stone. As providing access to such enginesimplies that the admin knows and trusts the user, we do not seenecessary to come up with a strict process. Instead,we would like to add guidelines to the documentation of the feature.Next steps==========Now that searx has support for both offline engines and private engines,it is possible to add concrete engines which benefit from these features.For example engines which search on the local host running the instance.Be it searching your file system or querying a private database. Be creativeand come up with new solutions which fit your use case.Acknowledgement===============This development was sponsored by `Search and Discovery Fund`_ of `NLnet Foundation`_ ... _Search and Discovery Fund: https://nlnet.nl/discovery.. _NLnet Foundation: https://nlnet.nl/| Happy hacking.| kvch // 2020.02.28 22:26
 |