Perianal abscess occurs due to infection of the region around the anal canal with causes collection of pus. The infection usually reaches there from a wound in the canal(fissure). The wound occurs due to hard stools and constipation.
So if you do not have correct that then it keeps recurring. A perianal abscess usually ends up in a fistula in ano which is very difficult to treat.
You need to change your diet and lifestyle first.
Consult for detailed discussion and treatment.
Need more details of your age if you are diabetic, etc
There is no point to take antibiotics for weeks together for this.
Next Steps
Consult. If diabetic review with sugars.
Health Tips
High fiber diet, drink plenty of water. Sitz bath. If diabetic check sugars