feat(engines/google/text.php): remove random redirection because of privacy concerns

This commit is contained in:
Ahwxorg 2023-08-02 14:00:32 +02:00 committed by GitHub
parent c592817c2b
commit 6a71de282c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 7 deletions

View File

@ -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)
{