In all such cases blood per rectum
can not be only due to piles. You will have to get the exact diagnosis first. If it is piles then blood can be checked with use of laxatives and coagulants. you can use local analgesic
also as ointment. In ayurveda we use panch sakar churan as laxative, bol badh ras as coagulant , and pilex ointment locally.