Posts: 417
Threads: 71
Joined: Dec 2013
Reputation:
0
Hi everybody,
I wanted to know what should I do to protect my server if I'm using a mysql database. What type of protection ?
That's all, thank you !
Posts: 1,164
Threads: 20
Joined: Oct 2008
Reputation:
0
Apart from a secure host, with a secure firewall and a secure password there's not many things you can do about external security. I am not an expert in security so I can't really tell;
About script security make sure you escape any string that the a player may send into a query or you may suffer SQL injections which can crash your server or DB.
Posts: 417
Threads: 71
Joined: Dec 2013
Reputation:
0
Thank you, but I don't understand what have I to do ?
For exemple for a register system, when I have to save the player password, I should use this ?
If I use "mysql_format" Is that secure ?
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
Use mysql_format everytime you pass a string as an argument in a query.
Posts: 417
Threads: 71
Joined: Dec 2013
Reputation:
0
Thank you !
So that will protect me of any sql injection in game ?