You can use several methods to keep snakes away from your home. Keep their food supply away. These are mice and other rodents. Keep grasses cut short. Don't keep woodpiles or piles of anything near your home. Don't kill the harmless snakes, as these will eat the food supply and that will keep the bad snakes away. You can buy several products to use, but most people say they don't work. Having one or two outdoor cats will help keep them away as well.