searxng/searx
Markus Heiser fd814aac86 [mod] isolation of botdetection from the limiter
This patch was inspired by the discussion around PR-2882 [2].  The goals of this
patch are:

1. Convert plugin searx.plugin.limiter to normal code [1]
2. isolation of botdetection from the limiter [2]
3. searx/{tools => botdetection}/config.py and drop searx.tools
4. in URL /config, 'limiter.enabled' is true only if the limiter is really
   enabled (Redis is available).

This patch moves all the code that belongs to botdetection into namespace
searx.botdetection and code that belongs to limiter is placed in namespace
searx.limiter.

Tthe limiter used to be a plugin at some point botdetection was added, it was
not a plugin.  The modularization of these two components was long overdue.
With the clear modularization, the documentation could then also be organized
according to the architecture.

[1] https://github.com/searxng/searxng/pull/2882
[2] https://github.com/searxng/searxng/pull/2882#issuecomment-1741716891

To test:

- check the app works without the limiter, check `/config`
- check the app works with the limiter and with the token, check `/config`
- make docs.live .. and read
  - http://0.0.0.0:8000/admin/searx.limiter.html
  - http://0.0.0.0:8000/src/searx.botdetection.html#botdetection

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-11-01 06:44:56 +01:00
..
answerers [mod] random answerer: add random hex color generator 2023-08-27 18:59:54 +02:00
botdetection [mod] isolation of botdetection from the limiter 2023-11-01 06:44:56 +01:00
data Update searx.data - update_engine_traits.py 2023-10-29 09:04:24 +01:00
enginelib [fix] spelling 2023-09-18 16:20:27 +02:00
engines fixing results parsing brave 2023-10-13 11:47:30 +02:00
infopage [mod] search-syntax.md: add tutorial about the feeling lucky feature 2023-09-21 15:17:23 +02:00
metrics [fix] spelling 2023-09-18 16:20:27 +02:00
network [fix] spelling 2023-09-18 16:20:27 +02:00
plugins [mod] isolation of botdetection from the limiter 2023-11-01 06:44:56 +01:00
search [feat] implement feeling lucky feature 2023-09-19 09:40:57 +02:00
static [build] /static 2023-10-13 12:56:29 +02:00
templates/simple Check public_instance in simple theme 2023-10-31 10:40:19 +01:00
translations [translations] update from Weblate 2023-10-27 09:23:23 +02:00
__init__.py add warning about enabling public_instance setting 2023-09-25 22:31:14 +02:00
autocomplete.py [doc] add documentation of Mwmbl engine & autocompleter 2023-08-27 17:25:26 +02:00
babel_extract.py [mod] move category and names of constants to searx/searxng.msg 2022-03-16 09:55:53 +01:00
compat.py [fix] pyright repported errors 2022-07-30 18:04:44 +02:00
exceptions.py [fix] spelling 2023-09-18 16:20:27 +02:00
external_bang.py [mod] external bang: go to main instead of search page when query is empty 2023-04-25 15:02:34 +02:00
external_urls.py [fix] typos / reported by @kianmeng in searx PR-3366 2022-09-27 18:32:14 +02:00
flaskfix.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
limiter.py [mod] isolation of botdetection from the limiter 2023-11-01 06:44:56 +01:00
limiter.toml [mod] isolation of botdetection from the limiter 2023-11-01 06:44:56 +01:00
locales.py [fix] spelling 2023-09-18 16:20:27 +02:00
preferences.py [mod] add hotkeys option to settings.yml 2023-10-09 18:13:00 +02:00
query.py [feat] implement feeling lucky feature 2023-09-19 09:40:57 +02:00
redisdb.py move searx.shared.redisdb to searx.redisdb 2022-12-10 09:26:38 +01:00
redislib.py [fix] spelling 2023-09-18 16:20:27 +02:00
results.py [mod] move some code from webapp module to webutils module (no functional change) 2023-06-19 19:49:44 +02:00
searxng.msg [mod] clarify the difference of the default category and subgrouping 2023-04-07 11:03:25 +02:00
settings.yml [mod] yacy: use official instance by default and fix crashes 2023-10-09 20:50:24 +02:00
settings_defaults.py [mod] add hotkeys option to settings.yml 2023-10-09 18:13:00 +02:00
settings_loader.py [fix] spelling 2023-09-18 16:20:27 +02:00
sxng_locales.py Update searx.data - update_engine_traits.py 2023-09-27 09:12:38 +02:00
unixthreadname.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
utils.py [fix] HTMLParser: undocumented not implemented method 2023-10-22 10:35:02 +02:00
version.py [fix] typos in documentation & messages 2023-08-13 08:50:29 +02:00
webadapter.py [fix] limit maximum page number of a search query to page 50. 2023-10-29 16:17:25 +01:00
webapp.py [mod] isolation of botdetection from the limiter 2023-11-01 06:44:56 +01:00
webutils.py [fix] implement a JSONEncoder for the json format 2023-06-19 19:49:44 +02:00