Welcome to Healthcare Magic Forum
You are probably suffering from PILES/ HEMORRHOIDS.
The veins around the rectum
are swollen, and protrude out when you stain while passing stool. Blood is coming frm the same veins. Its a fairly common conditon, esp in ppl who suffer from consitipation, during pregnany etc.
Treamment involves avoiding contipation & straining, taking lots of fruits, salad, whole grains, plenty of fluids, eating , sleeping & waking at regular hours, avoiding long sitting hours.
Medication available helps make stool soft and clear constipation
You cant try homeopathy
for piles, its really helpful.
Also, i would suggest you to visit a general surgeon
, for an examintion to rule out any other condition ( just 2 be safe)