Recently we created a webform for a client's Drupal site where people could sign up for their newsletter. Unfortunately, as soon as we created it the spambots started hitting it. So we needed to put a CAPTCHA on the form to stop the spam submissions. While not immediately apparent how to do this in Drupal, it's pretty easy once you know the procedure.
You'll need the CAPTCHA module installed and configured, of course. Once you do, go to "Administer->User Management->CAPTCHA". Under the "General Settings" tab, scroll down until you come to checkbox which says "Add CAPTCHA administration links to forms". Check that box and then save the configuration.
This adds a "Add CAPTCHA" item to all forms. Now view the webform you have created. Below all the fields you have created there should be a new item - "Add CAPTCHA for untrusted users". Check that box and save the form. You'll be asked to confirm what sort of CAPTCHA you want to put on this page. Now there will be a CAPTCHA at the bottom of this form which needs to be filled out before it can be successfully submitted.
Navigation
Search
Recent blog posts
- Installing OpenVPN on Ubuntu Natty
- apt-get remove old modules errors
- Cloning Drupal Sub-site
- GnuTLS error with FileZilla and vsftpd
- Installing grub on multiple drives
- Finding the fastest Debian repository
- Changing the console resolution in Grub2
- Lightning calendar plugin for x86_64
- Adding a CAPTCHA to a webform in Drupal
- Our High-Availability Setup

Comments
Adding Captcha
Thanks Jeff. Very easy to follow, answered all my questions.
Dave
BTW your own Captcha gave me a small prob - macs don't like hashtags!
thanks for article
thanks for article.the article was helpfull