return;
}
+ if (Network::isUrlBlocked($url)) {
+ Logger::info('Server domain is blocked', ['url' => $url]);
+ return;
+ } elseif (Network::isUrlBlocked($nurl)) {
+ Logger::info('Server domain is blocked', ['nurl' => $nurl]);
+ return;
+ }
+
self::insert(['url' => $url, 'nurl' => $nurl,
'network' => Protocol::PHANTOM, 'created' => DateTimeFormat::utcNow(),
'failed' => true, 'last_failure' => DateTimeFormat::utcNow()]);
self::detect($url, $network, $only_nodeinfo);
}
return false;
+ } elseif (Network::isUrlBlocked($url)) {
+ Logger::info('Server domain is blocked', ['url' => $url]);
+ return false;
}
$valid_url = Network::isUrlValid($url);