searxng/searx/plugins
Markus Heiser b8c7c2c9aa [mod] botdetection - improve ip_limit and link_token methods
- counting requests in LONG_WINDOW and BURST_WINDOW is not needed when the
  request is validated by the link_token method [1]

- renew a ping-key on validation [2], this is needed for infinite scrolling,
  where no new token (CSS) is loaded. / this does not fix the BURST_MAX issue in
  the vanilla limiter

- normalize the counter names of the ip_limit method to 'ip_limit.*'

- just integrate the ip_limit method straight forward in the limiter plugin /
  non intermediate code --> ip_limit now returns None or a werkzeug.Response
  object that can be passed by the plugin to the flask application / non
  intermediate code that returns a tuple

[1] https://github.com/searxng/searxng/pull/2357#issuecomment-1566113277
[2] https://github.com/searxng/searxng/pull/2357#discussion_r1208542206
[3] https://github.com/searxng/searxng/pull/2357#issuecomment-1566125979

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-06-01 14:38:53 +02:00
..
__init__.py [fix] prepare for pylint 2.14.0 2022-06-03 15:41:52 +02:00
ahmia_filter.py
hash_plugin.py
hostname_replace.py [mod] templates: rename field for <iframe> URL to iframe_src 2022-02-18 19:00:49 +01:00
limiter.py [mod] botdetection - improve ip_limit and link_token methods 2023-06-01 14:38:53 +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