Express middleware for mitigating brute-force requests