Implement a whitelist + blacklist filter