There are a number of things a person can do to try and prevent a hernia from developing. Properly warming up and stretching prior to exercising as well as exercising the core abdominal muscles can help to prevent hernia. Maintaining a healthy weight, not smoking, and consuming a high fiber diet are also known to help prevent the development of a variety of hernias.