Middleware for filtering suspicious HTTP requests based on user-agent and url rules