Last active
July 26, 2024 22:11
-
-
Save gorlovka/a3fff03cf24d2604711f1d77c3680019 to your computer and use it in GitHub Desktop.
proxy mirror quick
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ($_GET['token'] != 'secret') { | |
die('Invalid token kjfdnkjdf'); | |
} | |
if ($_GET['give_all']) { | |
echo file_get_contents('http://url.kagda.ru/proxies_list_all_file.json'); | |
return; | |
} | |
$content = file_get_contents('http://url.kagda.ru/proxies_filtered_file.json'); | |
if ($_GET['give_all_filtered']) { | |
echo $content; | |
return; | |
} | |
$content = explode("\n", $content); | |
$result = trim($content[random_int(0, count($content) - 1)]); | |
echo $result; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment