From 6a71de282ce256a1d9efde9936502446d1aedd73 Mon Sep 17 00:00:00 2001 From: Ahwxorg Date: Wed, 2 Aug 2023 14:00:32 +0200 Subject: [PATCH] feat(engines/google/text.php): remove random redirection because of privacy concerns --- engines/google/text.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/engines/google/text.php b/engines/google/text.php index c598cc1..0ce2855 100644 --- a/engines/google/text.php +++ b/engines/google/text.php @@ -70,13 +70,6 @@ do { curl_multi_exec($mh, $running); } while ($running); - if (curl_getinfo($google_ch)['http_code'] == '302') { - $instances_json = json_decode(file_get_contents("instances.json"), true); - $instances = array_map(fn($n) => $n['clearnet'], array_filter($instances_json['instances'], fn($n) => !is_null($n['clearnet']))); - header("Location: " . $instances[array_rand($instances)] . "search.php?q=$query"); - die(); - } - if ($special_search != 0) {