In general, a hernia starts with pressure on an organ or your intestines. The main preventions of hernia is Maintain ideal body weight by eating a healthy diet and exercising. Eat enough fruits, vegetables and whole grains to avoid constipation. Use correct form when lifting weights or heavy objects.