recaptcha for anonymous comments on public pages
Bug #1599241 reported by
Stéphane
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
While it was imperative to give public a voice if desired on selected public page, the fact that comments are anonymous let spammers do their unwanted actions.
It was added in https:/
Hence the request :
If public comment is allowed on a page and the visitor is not authenticated, there should be a recaptcha feature to limit spam.
Changed in mahara: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
To post a comment you must log in.
Hi Stephane,
For what it's worth, reCaptcha did little to stop our spam problem at mahara.org. See Bug 1252098.
That said, I suppose adding it for public comments couldn't hurt. Mahara an API for adding captcha's to forms. You just add a "captcha" pieform element to it.
Unfortunately, I tried it just now, and adding this to the comment form didn't entirely work. It displays the reCAPTCHA okay the first time you load the page, but not after you submit a comment (successfully or not). I suspect this is because we're reloading the comments section via Ajax, and my recaptcha implementation wasn't clever enough to handle that.
If anyone wants to give it a try, the starting point is this:
diff --git htdocs/ artefact/ comment/ lib.php htdocs/ artefact/ comment/ lib.php artefact/ comment/ lib.php artefact/ comment/ lib.php
'required' => true, elements' ]['captcha' ] = array('type' => 'captcha');
$form[ 'elements' ]['message' ] = array(
index d9d2ce1..846886b 100644
--- htdocs/
+++ htdocs/
@@ -931,6 +931,7 @@ class ArtefactTypeComment extends ArtefactType {
),
);
+ $form['
}
'type' => 'wysiwyg',