Transport the container to an appropriate site for release, such as an open field or a woodland, at least 1mile from your home. There are several types of snake traps available. The best are funnel trapsavailable in several styles. Traps work best inside buildings, but can be used outside along a wall or snake-proof fence. Traps should be placed lengthwise, so that when a snake moves along the wall or fence it will enter the trap.
Check traps daily.
The snake should be transferred to a container and released in a suitable habitat at least 1 mile from the capture site. Traps should be used to remove a specific snake that you know is present. Keeping traps set just in case a snake might come into a house is not a good plan. There is no known snake repellent. There is one commercial product which the manufacturer claims can repel one species of garter snake and one species of rattlesnake.