UrlCheck.php
/**
     * Indicated wether the url of the crawljob is blacklisted.
     *
     * @param string $url
     * @param array $blacklist
     * @return boolean
     */
Indicated wether the url of the crawljob is blacklisted.
@param string $url
@param array $blacklist
@return boolean
Indicated wether the url of the crawljob is blacklisted . @param string $url @param array $blacklist @return boolean
public static function isUrlBlacklisted($url, array $blacklist = [])
    {
        $isBlacklisted = false;
        array_walk(
            $blacklist,
            function ($blacklistUrl) use ($url, &$isBlacklisted) {
                if (@preg_match('#' . $blacklistUrl . '#i', $url)) {
                    $isBlacklisted = true;
                }
            }
        );
        return $isBlacklisted;
    }
public static function isUrlBlacklisted ( $ url , array $ blacklist = [ ] ) { $ isBlacklisted = false ; array_walk ( $ blacklist , function ( $ blacklistUrl ) use ( $ url , & $ isBlacklisted ) { if ( @ preg_match ( '#' . $ blacklistUrl . '#i' , $ url ) ) { $ isBlacklisted = true ; } } ) ; return $ isBlacklisted ; }
Indicated wether the url of the crawljob is blacklisted.
Indicated wether the url of the crawljob is blacklisted .