Classes/Utility/GeneralUtility.php
public static function checkUrlForBlacklisting($url, array $blacklistConf)
    {
        // check for valid url
        if (empty($url)) {
            return true;
        }

        $blacklistConf = (array)$blacklistConf;
        foreach ($blacklistConf as $blacklistRegExp) {
            if (preg_match($blacklistRegExp, $url)) {
                return true;
            }
        }

        return false;
    }
public static function checkUrlForBlacklisting($url, array $blacklistConf)
    {
        // check for valid url
        if (empty($url)) {
            return true;
        }

        $blacklistConf = (array)$blacklistConf;
        foreach ($blacklistConf as $blacklistRegExp) {
            if (preg_match($blacklistRegExp, $url)) {
                return true;
            }
        }

        return false;
    }
public static function checkUrlForBlacklisting ( $ url , array $ blacklistConf ) { // check for valid url if ( empty ( $ url ) ) { return true ; } $ blacklistConf = ( array ) $ blacklistConf ; foreach ( $ blacklistConf as $ blacklistRegExp ) { if ( preg_match ( $ blacklistRegExp , $ url ) ) { return true ; } } return false ; }
Check if url is blacklisted

@param  string $url           URL
@param  array  $blacklistConf Blacklist configuration (list of regexp)

@return bool
Check if url is blacklisted