Middleware to add basic auth, or block, certain server paths and origins IPs.