redirect ip logger python flask code example Example: get client ip flask request.environ['HTTP_X_FORWARDED_FOR']