From 8eeaf19cbd397c6894bbad49a837edf2c061de31 Mon Sep 17 00:00:00 2001 From: neon_arch Date: Sat, 2 Sep 2023 17:35:58 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20add=20new=20config=20option?= =?UTF-8?q?=20`safe=5Fsearch`=20(#201)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- websurfx/config.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/websurfx/config.lua b/websurfx/config.lua index 4f2633c..fb6c4fe 100644 --- a/websurfx/config.lua +++ b/websurfx/config.lua @@ -11,6 +11,17 @@ production_use = false -- whether to use production mode or not (in other words -- There will be a random delay before sending the request to the search engines, this is to prevent DDoSing the upstream search engines from a large number of simultaneous requests. request_timeout = 30 -- timeout for the search requests sent to the upstream search engines to be fetched (value in seconds). +-- ### Search ### +-- Filter results based on different levels. The levels provided are: +-- {{ +-- 0 - None +-- 1 - Low +-- 2 - Moderate +-- 3 - High +-- 4 - Aggressive +-- }} +safe_search = 2 + -- ### Website ### -- The different colorschemes provided are: -- {{