Add a rack middleware to forbid access to unsafe IP addresses