Boils can be caused by a variety of factors, and it is impossible to prevent them. You can prevent them from becoming extremely large or painful. Some of these treatments include washing the area with antibacterial soap, taking antibiotics, or surgery. You can find more information here: http://www.associatedcontent.com/article/324644/how_to_prevent_skin_boils.html?cat=68