Some people associate cold sores with long exposure to the sun. You can prevent cold sores caused by sun exposure by using sun block. It should be applied to your lips and any areas affected by cold sores.