SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] limiter: prevent loading cached index html when redirected
bearz3140a3eb24a0b7f
diff --git a/searx/botdetection/ip_limit.py b/searx/botdetection/ip_limit.pyindex b4c6825b3..161a9826e 100644--- a/searx/botdetection/ip_limit.py+++ b/searx/botdetection/ip_limit.py@@ -123,7 +123,9 @@ def filter_request()if c > SUSPICIOUS_IP_MAX:logger.error("BLOCK: too many request from %s in SUSPICIOUS_IP_WINDOW (redirect to /)", network)- return flask.redirect(flask.url_for('index'), code=302)+ response = flask.redirect(flask.url_for('index'), code=302)+ response.headers["Cache-Control"] = "no-store, max-age=0"+ return responsec = incr_sliding_window(redis_client, 'ip_limit.BURST_WINDOW' + network.compressed, BURST_WINDOW)if c > BURST_MAX_SUSPICIOUS: