Check if a user ID is blacklisted. Returns the entry if blocked.
(&self, user_id: &str)
| 167 | |
| 168 | /// Check if a user ID is blacklisted. Returns the entry if blocked. |
| 169 | pub fn check_user(&self, user_id: &str) -> Option<BlacklistEntry> { |
| 170 | let key = format!("user:{user_id}"); |
| 171 | self.check(&key) |
| 172 | } |
| 173 | |
| 174 | /// Check if an IP address is blacklisted. Returns the entry if blocked. |
| 175 | /// Also checks CIDR ranges via the IP blacklist module. |
no test coverage detected