You are having herpes
Take tab acyclovir
400 mg thrice a day
Apply acyclovir cream twice a day till you are cured
It can recure... Repeat the same drugs.
For prevention you improve immunity .. For that go for blood test to rule out any systemic diseases, take good food , avoid stress
, do exercise , yog and meditation