You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
11 months ago
..
answerers
botdetection [mod] isolation of botdetection from the limiter 11 months ago
data Update searx.data - update_engine_traits.py 11 months ago
enginelib
engines fixing results parsing brave 11 months ago
infopage [mod] search-syntax.md: add tutorial about the feeling lucky feature 1 year ago
metrics
network
plugins [mod] isolation of botdetection from the limiter 11 months ago
search
static [build] /static 11 months ago
templates/simple Check `public_instance` in simple theme 11 months ago
translations [translations] update from Weblate 11 months ago
__init__.py add warning about enabling public_instance setting 1 year ago
autocomplete.py
babel_extract.py
compat.py
exceptions.py
external_bang.py
external_urls.py
flaskfix.py
limiter.py [mod] isolation of botdetection from the limiter 11 months ago
limiter.toml [mod] isolation of botdetection from the limiter 11 months ago
locales.py
preferences.py [mod] add hotkeys option to settings.yml 12 months ago
query.py
redisdb.py
redislib.py
results.py
searxng.msg
settings.yml [mod] yacy: use official instance by default and fix crashes 12 months ago
settings_defaults.py [mod] add hotkeys option to settings.yml 12 months ago
settings_loader.py
sxng_locales.py Update searx.data - update_engine_traits.py 12 months ago
unixthreadname.py
utils.py [fix] HTMLParser: undocumented not implemented method 11 months ago
version.py
webadapter.py [fix] limit maximum page number of a search query to page 50. 11 months ago
webapp.py [mod] isolation of botdetection from the limiter 11 months ago
webutils.py