Introduce exception factory to allow customization of exception thrown when ip is blocked