searxng/searx/plugins
Markus Heiser 1ec325adcc [mod] limiter -> botdetection: modularization and documentation
In order to be able to meet the outstanding requirements, the implementation is
modularized and supplemented with documentation.

This patch does not contain functional change, except it fixes issue #2455

----

Aktivate limiter in the settings.yml and simulate a bot request by::

    curl -H 'Accept-Language: de-DE,en-US;q=0.7,en;q=0.3' \
         -H 'Accept: text/html'
         -H 'User-Agent: xyz' \
         -H 'Accept-Encoding: gzip' \
         'http://127.0.0.1:8888/search?q=foo'

In the LOG:

    DEBUG   searx.botdetection.link_token : missing ping for this request: .....

Since ``BURST_MAX_SUSPICIOUS = 2`` you can repeat the query above two time
before you get a "Too Many Requests" response.

Closes: https://github.com/searxng/searxng/issues/2455
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-05-29 14:54:56 +02:00
..
__init__.py [fix] prepare for pylint 2.14.0 2022-06-03 15:41:52 +02:00
ahmia_filter.py plugins: refactor initialization 2021-10-06 19:18:19 +02:00
hash_plugin.py [mod] oscar theme /preferences: reorganize the preferences 2021-06-17 15:29:07 +02:00
hostname_replace.py [mod] templates: rename field for <iframe> URL to iframe_src 2022-02-18 19:00:49 +01:00
limiter.py [mod] limiter -> botdetection: modularization and documentation 2023-05-29 14:54:56 +02:00
oa_doi_rewrite.py oa_doi_rewrite: add the doi to the result when it is found. 2022-09-23 20:45:58 +02:00
search_on_category_select.py [fix] prepare for pylint 2.14.0 2022-06-03 15:41:52 +02:00
self_info.py [fix] typos / reported by @kianmeng in searx PR-3366 2022-09-27 18:32:14 +02:00
tor_check.py [fix] typo in searx/plugins/tor_check.py 2023-02-17 13:09:14 +01:00
tracker_url_remover.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
vim_hotkeys.py theme: remove __common__ 2022-05-07 19:40:48 +02:00