Repair any holes in the foundation or outside wall of the house. Practice snake prevention by finding the hole that snakes use to enter their den. Then dig it up and fill it in. Most snakes can't dig their own holes so they must rely on existing holes. Therefore, filling in the entry holes of dens will prevent snakes from hibernating in the yard.
Snakes require cover such as long grass, weed edges along walls or fences, or thick shrubbery.
Minimize this cover and snakes will move elsewhere to find a more suitable habitat. Keep lawns reasonably short, trim weed lines, and space out shrubbery. These products are thick, sticky liquids which snakes refuse to crawl over. The substances irritate the scales of adults and may entrap smaller snakes. Use fencing to effectively block off small areas.