You can take measures to reduce the attractiveness of your yard or house to snakes. If you have a rock wall or other structure that has the potential to house frogs and rats, and in turn attract snakes, discourage these animals by blocking holes. Avoid creating habitat for snakes by keeping a tidy, well-maintained yard and shed. Actively discourage rats and mice, and snake-proof your aviaries and poultry pens.