In a Chatbot using Chatgpt, How to avoid the possibilty than somebody can hack the chatgpt training during the conversation

i was thinking to train chatgpt in order to work like a chatbot my first question is 1)how do the train with the prompt, using the api or the web interface, and also how to avoid the possibility than somebody can hack the chatgpt during the conversation and change the training during the conversation