#3051 closed enhancement (worksforme)
Recaptcha support for comments
Reported by: | Artem Egorkine | Owned by: | osimons |
---|---|---|---|
Priority: | normal | Component: | AddCommentMacro |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
From personal experience, comments added by AddCommentMacro are not filtered by any Trac spam filter plugins. Attached is a patch for 0.10-version of the macro to integrate the recaptcha.net support.
To use, one must explicitly turn on recaptcha feature in the ini-file:
[addcomment] recaptcha = on recaptcha_private_key = ... recaptcha_public_key = ...
When enabled, a recaptcha widget will appear below the comment input field and buttons. The default behavior is to require only anonymous users to solve the captcha. If logged in users are required to solve one as well, add
recaptcha_logged_in = on
to the aforementioned block in the ini-file.
In case if the captcha is solved correctly, pressing "Add comment" button will add the comment. If the captcha is solved incorrectly, "Add comment" will instead switch to "Preview" functionality, displaying a message that the captcha needs to be solved before the comment can be posted.
Attachments (2)
Change History (12)
Changed 17 years ago by
Attachment: | addcomment-0.10-r3699-repatcha.patch added |
---|
Changed 17 years ago by
Attachment: | repatcha-screenshot.png added |
---|
Screenshot of the recaptcha-enabled AddCommentMacro in action.
comment:2 Changed 17 years ago by
Owner: | changed from Christian Boos to anonymous |
---|
(I'm not in charge of this plugin)
comment:4 Changed 16 years ago by
Owner: | changed from anonymous to Alec Thomas |
---|
comment:5 follow-up: 6 Changed 16 years ago by
Owner: | changed from Alec Thomas to osimons |
---|
I think osimons is maintaining this plugin now.
comment:6 follow-up: 7 Changed 16 years ago by
Replying to athomas:
I think osimons is maintaining this plugin now.
Yeah, I suppose I am.
Personally I don't feel the need for an addcomment-only captcha implementation against one particular service.
However: I recently added change listener support for 0.11 version ([3723]), meaning trac:wiki:SpamFilter and similar plugins will work for comments. Would not that be a sufficient solution to the original issue raised? I propose worksforme
, advicing update to 0.11 and using spamfilter plugin...
comment:7 Changed 16 years ago by
Replying to osimons:
Personally I don't feel the need for an addcomment-only captcha implementation against one particular service.
However: I recently added change listener support for 0.11 version ([3723]), meaning trac:wiki:SpamFilter and similar plugins will work for comments. Would not that be a sufficient solution to the original issue raised? I propose
worksforme
, advicing update to 0.11 and using spamfilter plugin...
The current patch was born out of the lack of AddComment-SpamFilter integration. I think it may be useful for people still using 0.10 for one reason or another, but I see no point in maintaining it as such for 0.11 and onwards...
comment:8 follow-up: 9 Changed 16 years ago by
Porting my patch from [3723] to 0.10 shouldn't be that hard...
comment:9 Changed 16 years ago by
Replying to thomas.moschny@...:
Porting my patch from [3723] to 0.10 shouldn't be that hard...
No it shouldn't really. Question is, do we want to? I haven't been running the 0.10 version for a long time, and pending reports of any major bugs or security implications I likely never will again... I personally consider the feature-set of 0.10 as frozen at this stage with Trac 0.11 released (and 0.10-stable frozen), but will of course happily commit useful backports if someone volunteers to maintain the old version.
Any takers?
comment:10 Changed 13 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Well, no chance of fixing this for 0.10 at this stage.... If you have 0.10.x then upgrade!
recaptcha support for Trac-0.10 version of AddCommentMacro