There are many other ways you can prevent hemorrhoids including regular exercise, avoiding too much stress, drinking plenty of water and staying away from caffeinated drinks like coffee or tea, wearing loose-fitting clothing that allows for air circulation, getting enough sleep, and avoiding smoking.