One way to prevent cold sores is to prevent diseases such as cold and flu. A healthy lifestyle cuts down on the number of diseases and infections a person may get. Healthy living includes a balanced diet, exercise, sleeping well and avoiding emotional stress.