Small (baby) snakes can go right through 1/2 hardware cloth. You have to use no larger than 1/4 inch to stop them. If your snakes are climbing, the fence has to be slanted outward at about 30 degrees to stop them being able to climb, or has to be very smooth and slick...