Hi,Thanks for query,
As you pass blood after passing stool it seems that you might have piles giving you this trouble.
Passing hard stool damages the piles wall giving rise bleeding or spots.
Consult surgeon and get examined.
Avoid fried,chillies and junk food.
Take plenty of green veggies containing more bulk and diet fiber,this help in constipation.
Take laxative like Cremmaffin daily at night.
Ok and bye.