Piles or hemorrhoids is basically enlarged blood vessels which gets swollen up due to any reasons and cause discomfort to such an extent that your day today activities gets hamper. There are few main reasons of it among them the basic and foremost reason is your constipation and your life style, with little change in your routine can help you save your money and time to doctors. 

we start with precautions , Important is how to relieve your constipation it can be with over the counter medications like yelo tablets in homeopathy or other laxatives. 

In terms of diet avoid spicy food and take fruits rich in fiber like vegetable chickpeas, lentils, split peas, oats, apples, pears, almonds, chia seeds, Brussels sprouts, and avocado.

I have experience some cases of piles where generally patient has no complaint of constipation still he or she is suffering from piles.so that can be few other causes like overtime straining for stool, sitting job, sedentary lifestyle and eating over spicy food etc. in those cases life style modifications are very important.

Coming to homeopathy treatment 

Besides precautions there are few cases where piles don't go away on its own and in those cases these are few patent medications for piles:

1.AESCULUS HIPPO. POTENCY 30 OR 200

Extensive pain in rectum as if some tear or cut from knife with pain radiating upwards. 

constipation,stool hard and difficult to pass, he has to strain a lot to pass stool which leads to more discomfort.

2. PAEONIA OFF . POTENCY 6 OR 30

Biting itching in anus that provokes scratching in afternoon; the orifice seems somewhat swollen.-Hemorrhoids with fissure in anus; intolerable pains during and after a stool.-Hemorrhoids and ulceration of rectum.-Very painful and sensitive ulcers and rhagades in rectum.(REF.CLARKS)

3.AlOE SOCOTRINA . POTENCY 6,30,200

Constant bearing down sensation on anus. MULTIPLE SKIN TAGS in and around anus. bleeding, soreness tenderness and relieved by cold water application.

Few patent medicines like R13, E PILES ,NO PILES are also available over counter and works well.

IMP. These are for reference only, always consult Doctor before using any among them.