check the blacklist only for valid URLs

it's faster