Your dog or cat is highly susceptible to getting fleas if they go outdoors often. Though fleas only latch on to pets, that does not mean they will not spread disease. Here is how you can get rid of fleas:
Wash all your pets' bedding with hot water and soap, and treat them with suitable flea treatments like shampoo, spot-ons, or medicine. Cleaning them regularly will keep your home flea-free.
Sprinkle some baking soda or salt on carpets and other fabrics that might be infested with fleas to effectively remove them. These agents dehydrate the fleas, eventually killing them. Vacuum them thoroughly.
Place a thin slice of lemon in a pan and add boiling water to it. Let it sit overnight. Pour it into a spray bottle and use it to spray on surfaces where there are fleas. The scent will kill the fleas.
Wash all bedding in hot, soapy water. The soap will kill any flea eggs or larvae, preventing any more infestations. Vacuum your mattress as well to suck in all the remnant fleas.
Boil some rosemary in water and leave it to cool down overnight. Strain the water and spray it on your pet after a bath to prevent them from catching any more fleas.