Add reCAPTCHA to Contact Form

My client’s contact form was getting spammed a lot and asked me to do something block spam from getting submitted through the form.

I usually attempt to block spammers by adding some code within the form processing so it does not interfere with the user submitting the form.  I first attempted this approach with this contact form, but it did not resolve the spam. I added Google’s reCAPTCHA code to the contact form so bots trying to submit the form would be blocked.

No more spam!

reCAPTCHA works on any type of web form, not just contact forms.  If your HTMLforms that are sending you email are getting a lot of spam, adding a simple PHP captcha solution like reCAPTCHA will stop spam submitted by bots from getting through.

Contact me if you need help adding stopping spam coming through your PHP and HTML forms.