Some risk factors for osteoporosis such as being older and female or having a family history of the condition cannot be avoided. But others can, like smoking cigarettes, consuming alcohol, taking certain medications, or being exposed to environmental pollutants.
Source: News Medical, https://www.news-medical.net/