to preven wordpress from spam
by install recaptcha plugins, download it from the below URL, the installation same like normal plugin installation, but will ask yo about public key and private key, you will get the key from recaptcha website.
http://www.google.com/recaptcha
if you need further help let me know