Issue 10747: Improved check for blocked domains

This commit is contained in:
Michael 2021-10-02 10:25:50 +00:00
parent ac49a02c36
commit f1e2ceb32c
2 changed files with 12 additions and 1 deletions

View file

@ -119,7 +119,8 @@ class APContact
*/
public static function getByURL($url, $update = null)
{
if (empty($url)) {
if (empty($url) || Network::isUrlBlocked($url)) {
Logger::info('Domain is blocked', ['url' => $url]);
return [];
}