Keeping Snakes out of your yard is best done by changing the habitat and not killing the snake or even having the snake relocated.