
MyCaptcha1 is a CAPTCHA implementation for Drupal 5.x. A CAPTCHA is a test that tries to determine whether a user is human (learn more).
The combination of MyCaptcha and Form Store enables you to add captchas to arbitrary forms2 on your site without modifying a single line of code.
While MyCaptcha provides much of the same functionality, it is not related to the Captcha and TextImage modules by Fabiano Sant'Ana that can be downloaded from Drupal.org.
1Yes, a lousy name.
2Due to the way the Drupal login form has been coded, it cannot be protected by MyCaptcha.
Update: MyCaptcha is no longer supported.
Before installation, ensure your system meets the requirements.
While MyCaptcha supports PostgreSQL, Form Store doesn't (yet; there's an untested patch in the Form store issue queue).
MyCaptcha cannot be used alongside the modules TextImage and Captcha from Drupal.org.
form_store into sites/all/modules/ using a decompression utility (7-zip).mycap into sites/all/modules/ using a decompression utility (7-zip).Visit Administer » Site building » Modules (admin/build/modules) and check the modules:
Save the configuration. Both Form Store and MyCaptcha will apply all necessary changes to the database.

The first tab of Administer » Site configuration » Captcha (admin/settings/mycaptcha) enables you to select the captcha type (math or image) that will be used site-wide. It also contains the clickable sentence "Captcha settings for ..." for each role defined on your site.
When you click on such a sentence, for example, "Captcha settings for anonymous user", a box will open as in the image on the right. This box lists the various forms you can use a captcha on. Simply check the relevant forms and repeat for the other roles on your site (if necessary). Click Save and you're done.
Suppose you wish to enable image captchas for the user registration page. First, select Image captcha for the captcha type. Then, open the "Captcha settings for anonymous user" setting box by clicking on the title. Check the box in front of "register a user account" and click save. If you now logout and visit user/register you'll see an image captcha on the registration form.
Settings for both captcha types are available via tabs on Administer » Site configuration » Captcha (admin/settings/mycaptcha). See for more information:
Visit the Advanced configuration guide to learn how to add a captcha to forms not listed on the Captcha settings page.
The tab 'Images' on Administer » Site configuration » Captcha (admin/settings/mycaptcha/image) gives access to a few settings to influence image captcha generation.
Next come a number of settings that add noise to the picture to make solving the captcha more difficult. As you can see in the examples below, those settings can be combined. Overdoing it might lead to a high percentage of captchas that aren't solvable by your visitors.
Be aware that some settings make it more time consuming, not impossible for a program to solve a CAPTCHA; most despeckle algorithms can clean up the dot noise, but they cost time.
| CAPTCHA | Settings |
|---|---|
| No additional noise | |
| Double vision | |
| Add dots as noise | |
| Add lines as noise | |
| Double vision, add dots as noise | |
| Add dots as noise, add lines as noise |
The tab 'Math' on Administer » Site configuration » Captcha (admin/settings/mycaptcha/math) doesn't contain a whole lot of settings. The only configurable option right now is the maximum answer of the math captcha. This is a measure of the difficulty of the captcha for humans (at least for those who can't find Calculator in their Start menu). The higher the maximum answer, the lower the chance that a bot guesses the right answer.
Note: It would be fairly easy to write a bot that could solve this kind of captcha.
Suppose you want to add a CAPTCHA to the site-wide contact form. As you enable the Contact module and configure the various contact settings, you realize you're out of luck; The Captcha settings page on Administer » Site configuration » Captcha (adminster/settings/mycaptcha) doesn't list the contact form!
Now what?
This is the part where a bit of work is required. In order to add a CAPTCHA to arbitrary forms, MyCaptcha utilizes the helper modules Form store and Form Collect. The module Form store provides MyCaptcha with its list of forms, whereas Form Collect is an ultrasmall helper that can add any form to the Form Store.
As you can see in the image above, the contact form isn't listed in the Form Store. So, check whether the module Form Collect is enabled (admin/build/modules) and do as the help text says; Visit Administer » Site configuration » Form Store, tab Collect forms (admin/settings/form-store/collect).
Simply check "Collect forms while browsing the site" and save the configuration. Now, all you have to do is visit the forms you want to add to the Form Store, in our case the form on the path contact. The moment you, or another visitor views the form, it is added to the Store. Return to Administer » Site configuration » Form Store, tab Collect forms (admin/settings/form-store/collect) to disable the collection.
You will now see that the contact form, with the cryptic name contact_mail_page has been added to the Form Store.
You can use the Description field to provide a more friendly description. This description will, when available, be used by MyCaptcha. To edit or remove a form, click edit, then choose the appropriate action.
In our case, we will add the description "contact form" to the form with the internal name contact_mail_page, so we'll have a less confusing Captcha settings page.
After all this, you can visit Administer » Site configuration » Captcha (adminster/settings/mycaptcha) once more. The contact form is now listed on the page and a CAPTCHA (here in the most unreadable variant) can be added to it.
While the example just adds one form to the Form Store, you can add multiple forms in one sitting.
When you finish Form collection, visit Administer » Site configuration » Form Store, tab Collect forms (admin/settings/form-store/collect) to disable collection. You can now disable the module Form collect (on admin/build/modules).
Other known issues may be found in the MyCaptcha forum.
MyCaptcha uses fonts by Bitstream and a wave distortion function from KCAPTCHA by Kruglov Sergei.
MyCaptcha is Copyright © 2007 by Heine Deelstra. Please see the files LICENSE.TXT and fonts/LICENSE.txt in the download for licensing terms.
The most up to date credits can be found in the Thanks & Credits section of README.txt.