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] sec-fetch-* headers cannot be verified for non-secure requests (#4962)
Markus Heiser39c50dc01394
diff --git a/searx/botdetection/http_sec_fetch.py b/searx/botdetection/http_sec_fetch.pyindex 5f16d1d9b..f64ee4b2c 100644--- a/searx/botdetection/http_sec_fetch.py+++ b/searx/botdetection/http_sec_fetch.py@@ -82,6 +82,12 @@ def filter_request(cfg: config.Config,) -> werkzeug.Response | None:+ if not request.is_secure:+ logger.warning(+ "Sec-Fetch cannot be verified for non-secure requests (HTTP headers are not set/sent by the client)."+ )+ return None+# Only check Sec-Fetch headers for supported browsersuser_agent = request.headers.get('User-Agent', '')if is_browser_supported(user_agent):