You can prevent this attack through encrypting the information as well as introducing a secondary decoding mechanism as the information passes between a user and the server.
Ungavimbela lokhu kuhlaselwa ngokubetha ulwazinjengethula indlela yokwenza ikhodi yesimanje njengoba ulwazi ludlula phakathi komsebenzisi nesiphakeli.