You won’t stop snakes coming into your yard. But you can take steps to make the area less attractive to them.
Suggestions all center around keeping rubbish off the ground -and that includes trees, shrubs etcwith a tendency to hug or cover the ground. Prune up and keep ground under plants open and free of debris.
Also, snakes will follow a food source so try to limit wet areas in your garden. These attract small rodents etc and they are fair game.
You probably know all this stuff. It’s more common sense than science.
Peter
|