stop killing prod from robots

parent 00b4d785
<?php
$json = json_decode(file_get_contents('https://the-federation.info/pods.json'));
if ($json) {
foreach ($json->pods ?? [] as $poddata) {
echo exec("php-cgi db/add.php domain={$poddata->host}") . "\r\n";
if (php_sapi_name() == "cli") {
$json = json_decode(file_get_contents('https://the-federation.info/pods.json'));
if ($json) {
foreach ($json->pods ?? [] as $poddata) {
echo exec("php-cgi db/add.php domain={$poddata->host}") . "\r\n";
}
}
} else {
header('HTTP/1.0 403 Forbidden');
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment