That's where HTTPS comes into play. HTTPS stands for HyperText Transfer Protocol Secure.
What do you think HTTPS might do?
Nice! That's why your web browser will give you a warning when visiting sites with using http in the URL and not https.
The "S" in HTTPS stands for Secure. That's because it encrypts the messages before sending them across the internet.