If it's an fresh blood, external or internal heamrroids, and if it's associated with severe stomach ache there is some chances of intestinal obstruction with fecolith .
If the blood is black it's meleena, upper gastro intestinal issues like ulcers ...