I have actually heard the contrary, coral snake.
From loads of guys I have heard that mothballs do the trick very well. Snakes dislike the pungent smell and move away as soon as they encounter mothballs. It might not prevent them from coming to your house to start, but it will chase them away once they arrive. Or that's the theory.
Of course I would never want to keep snakes away from my own place, so I wouldn't know
"I am dying by inches from not having anybody to talk to about insects." - Charles Darwin