Prevent hemorrhoids by maintaining a diet high in fiber, staying hydrated, exercising regularly, avoiding prolonged sitting or standing, and not straining during bowel movements.