How to add CAPTCHA protection to a Drupal site
This article explains how to use the CAPTCHA module to add Drupal CAPTCHA protection to a website. Using CAPTCHAs can assist prevent bots and other bad actors from flooding your Drupal website.
For general information about what Drupal CAPTCHAs are and what they do, please see this article.Table of Contents
- Adding Drupal CAPTCHA protection
- More Information
Adding Drupal CAPTCHA protection
To add Drupal CAPTCHA protection to a site using the CAPTCHA module, follow these steps:
- Use your web browser to visit https://drupal.org/project/captcha.
- Under Downloads, download the .gz file to your computer.
- Log in to your Drupal site as the administrator.
- On the top menu bar, click Modules, and then click Install new module.
- Click Browse, select the .gz file on your local computer, and then click Install. Drupal installs the CAPTCHA module.
- Under Next steps, click Enable newly added modules. The Modules page appears.
- Scroll down to SPAM CONTROL, and select the ENABLED check box next to the CAPTCHA module.By default, the Drupal CAPTCHA module uses math problems for CAPTCHA tests. If you want to use image-based CAPTCHA tests, enable the Image CAPTCHA module also.
- Click Save configuration.
- Scroll down to SPAM CONTROL again, and click Configure for the CAPTCHA module. The CAPTCHA module configuration page appears.
- You can now define which areas of your site are protected by CAPTCHAs. For example, to protect registration forms, locate user_register_form in the FORM_ID column, select the challenge type, and then click Save configuration. To test this, go to your Drupal site and click a register link. Drupal displays a CAPTCHA in the registration form.To preview the CAPTCHAs’ appearance based the current site settings, click Examples.