Summary: Uses captchas to protect certain actions from spambots
Version: 0.0001
Prerequisites: none
Status: pre-alpha, discussion
Maintainer: Nils Knappmeier
Questions answered by this recipe
- How can I prevent spambots from editing my wiki?
- How can I prevent spambots from using my mailform to send me spam?
Description
Uses captchas to protect certain actions from spambots
This recipe is an adaption of the captcha-class by Andreas John [1] to PmWiki.
Download pmwiki-captcha.tar.gzΔ (or pmwiki-captcha.zipΔ) and unpack it into your PmWiki-Directory.
To activate the recipe
- add the line
include_once('cookbook/captcha.php') to config.php
- add a line
CaptchaAction('any_action') to config.php to redirect PmWiki-actions to the captcha class.
Examples
include_once('cookbook/captcha.php');
CaptchaAction('mailform');
to display a captcha before sending the mail.
- You can use
CaptchaAction('edit') to display a captcha before every edit-action. At the moment there is no way to display the captcha only when posting the edited page.
Notes
- The status of this recipe is pre-alpha. It is far from being well-tested and it is certainly not very sophisticated. It is merely a base of discussion. Further input is welcome. My time is still limited at the moment: If anyone wants to take over maintaining this recipe...
- It can be used to protect the mailform. This seems to work.
Release Notes
If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".
Comments
- to protect comments if using commentboxstyled.php just add on line 12 of captcha.php :
if ($action == 'comment')
SDV($HandleActions['comment'],'HandleCommentPost');
seems to work fine for me! -JoelMig (2007-08-22)
- You can integrate this Captcha recipe into your Site.EditForm by adding markup just above the (:input e_savebutton:) line, like this:
{$Captcha} (:input captcha:)
(:input e_savebutton:)
I was unable to get this recipe to work until I edited captcha_image.php and changed HTTP_GET_VARS to _GET -Steve (2007-08-31)
See Discussion at Captchas-Talk
See Also
Contributors