Preventing bacterial infections at home is easier than you think if you follow a few simple hygiene habits. Regular hand washing is one of the best ways to stop the spread of bacteria. Wash your hands with soap and water, especially before eating, after using the bathroom, and after touching surfaces like doorknobs or shared electronics.