Hello.. i wonder how to secure my server for Sql injection and ****.. anyone know how to secure this? kinda anoying to get hackers who spam maps full of monsters and ****.. and i dont have any GMs on server.. please help me out with this issue

Thanks alot