Image verification

Does anyone know of a tutorial on how to implement an image verification system on a registration page? i.e. something to block spiders or bots from registering 1000 times in 1 sec.

thanks