Proper bolt tightening, gasket selection, and ensuring a smooth and square pipe end can prevent flange leaks.