Thanks for writing your query.
After reading your post, it seems that the swelling you are feeling is a hemorrhoid
A clinical examination is needed to confirm the diagnosis.
Following precautions will be helpful :-
1. Avoid spicy/oily foods.
2. Eat fibre rich foods.
3. Sitz bath is helpful.
4. You can take stool softeners or laxatives, if constipated.
You can apply locally cream containing calcium dobesilate and xylocaine
Surgical removal can be opted if it is associated with pain or with bleeding.
I hope this helpful to you.