Skip to content

Instantly share code, notes, and snippets.

@gorlovka
Last active July 26, 2024 22:11
Show Gist options
  • Save gorlovka/a3fff03cf24d2604711f1d77c3680019 to your computer and use it in GitHub Desktop.
Save gorlovka/a3fff03cf24d2604711f1d77c3680019 to your computer and use it in GitHub Desktop.
proxy mirror quick
<?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