RestClient Alternative for Protection Function