Snakes are attracted to a house for food, warmth, and shelter. Therefore, if you want to stop snakes from coming onto your property, you need to discourage them from doing so. Regularly mowing the lawn, trimming trees/bushes, feeding pets inside, moving woodpiles and bird feeders, sealing cracks, and installing fences are some of the best things you can do.