Allow forbiding by regular expressions, or any object with a test function.