While some risk factors are beyond control, adopting a healthy lifestyle, maintaining a healthy weight, avoiding heavy lifting, and practising proper lifting techniques can help reduce the risk of hernias.