With cryptography. Look at e.g. Privacy Pass, there is an RFC about it.