Hi,
Welcome to health care magic,
Blood in stool with hard motions could be due to piles,fissures,
constipation or fistula or rarely any growth in rectum etc.
Here, it could be possible that your hard stool has done some ulcer over the
anal canal or anus due to which you are facing stool with blood.
First you need to be examined around anus and per rectum by surgeon to rule out above possibilities.
Meanwhile,you can take below treatment for symptomatic relief.
1) Take quinolones antibiotics with antiprotozoals,
2) Anovate or Dobesil cream or ointment to be applied over anus after defecation,
3) Hot sitz bath,
4) Sit naked in hot warm water for 15 minutes
5) Avoid alcohol,
6) Avoid oily and spicy foods.
So,it would be better you
consult general surgeon who will do thoroughly clinical examination with relevant investigations like
colonoscopy to detect the exact underlying cause.
Regards,