I have a Unity WebGL app that communicates with a remote server using plain old WWW that calls several different php scripts on server and sending it parameters using WWWForm and POST and getting stuff back.
In the browser i can easily select the debugging console and see all the php scripts and their parameters being called, this is something i dont want because then a hacker can do the same and see everything and then hack my server.
Instead of me manually writing code to encrypt and decrypt on both sides, can I just buy an SSL certificate and enable SSL on my website, then use https for all communication.
Would doing this encrypt everything for me automatically so that hackers can’t just open their browser console and see which php scripts are getting called and the data being sent and received to/from it?
If that cant work then how to prevent everyone seeing which php scripts im calling and the parameters getting send to it (like passwords and session info for example).
How can anyone secure their game and server from hacker?
Thanks