Thank you for your query on Healthcare Magic.
It seems you are having constipation
with passing of hard stools.
The blood is due to bleeding from the lacerated wound in the rectum
which developed due to passing hard stool.
Take plenty of oral fluids and water.
Eat vegetables, leafy vegetables, and fruits which contain more dietary fiber
which will help to pass soft stools.
You can take oral stool softeners like lactulose
in prescribed dose.
Hope I have answered your query.