Edgewall Software
Modify

Opened 17 years ago

Closed 14 years ago

#4034 closed enhancement (fixed)

Numeric captcha '2*4 is?' to create new settings

Reported by: sergeych <sergeych@…> Owned by: Jonas Borgström
Priority: normal Milestone: plugin - spam-filter
Component: general Version: 0.10
Severity: minor Keywords:
Cc: sergeych@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Captcha asks question only if name and email are both empty, otherwise is skipped.

The patch for trunk/trac and trunk/templates. Error reporting should be improved - don't know what style to use to report wrong answer.

Attachments (5)

numcaptcha1.patch (7.1 KB ) - added by sergeych <sergeych@…> 17 years ago.
TracCaptcha-0.1.tar.gz (6.7 KB ) - added by Alec Thomas 17 years ago.
Captcha plugin implemented with the IRequestFilter interface
numcaptcha2.patch (7.3 KB ) - added by sergeych <sergeych@…> 17 years ago.
Num captcha integrated in Settings
spam-filter-captcha-fallback.diff (24.9 KB ) - added by Alec Thomas 17 years ago.
Captcha plugin integrated into SpamFilter
CaptchaImage_src.zip (5.0 KB ) - added by Twariq@… 15 years ago.
my resume

Download all attachments as: .zip

Change History (18)

by sergeych <sergeych@…>, 17 years ago

Attachment: numcaptcha1.patch added

comment:1 by sergeych <sergeych@…>, 17 years ago

Owner: changed from Jonas Borgström to anonymous
Severity: normalminor
Status: newassigned

Found a potential problem. I'm passig captcha answer between requests in the request handler instance var. I'm afrais thi is not good so I'll move it to the req.session very soon. I'm sorry.

BTW askimet just rejected my comments again :)

I think that it's time to add optional password to protect the account?

comment:2 by Alec Thomas, 17 years ago

Sergey, this can be entirely implemented as an IRequestFilter. I have a basic implementation that I'll attach for you to test.

by Alec Thomas, 17 years ago

Attachment: TracCaptcha-0.1.tar.gz added

Captcha plugin implemented with the IRequestFilter interface

comment:3 by Alec Thomas, 17 years ago

Give that a try. The user will be challenged with a Captcha the first time they POST a form. There is some dodgy hackery to achieve this, so it may not work in all cases. Seems to work with Wiki and ticket updates though.

The default captcha implementation is pretty much your one. An image captcha can be enabled by installing PIL and updating TracIni with:

[captcha]
captcha = ImageCaptcha

There's also a http://captcha.net implementation, but I haven't received the authentication tokens yet and so haven't been able to test it.

by sergeych <sergeych@…>, 17 years ago

Attachment: numcaptcha2.patch added

Num captcha integrated in Settings

comment:4 by sergeych <sergeych@…>, 17 years ago

Well I suppose we use the simpler approach:

  • if the user has not set hist nick or email, he or she (or it) may not post anything, so one need to set it up in one's settings. AFAIK it is already done?
  • in the settnigs screen when person for the first time enters one's nick and/or password, ones is asked for captcha.
  • as long as the user has name and or email fields not blank the captcha on settings change is inactive.

comment:5 by sergeych <sergeych@…>, 17 years ago

Well the numcaptcha2.patch should work as described

comment:6 by sergeych <sergeych@…>, 17 years ago

Cc: sergeych@… added

comment:7 by Alec Thomas, 17 years ago

I've uploaded the plugin to TracHacks.

by Alec Thomas, 17 years ago

Captcha plugin integrated into SpamFilter

comment:8 by Christian Boos, 17 years ago

Milestone: 2.0

#3391 and #4267 marked as duplicate.

Alec has started a branch for a captcha-enabled SpamFilter plugin here: source:/sandbox/spam-filter-captcha

comment:9 by asdf <asdf>, 17 years ago

Resolution: fixed
Status: assignedclosed

in reply to:  9 comment:10 by Eli Carter, 17 years ago

Resolution: fixed
Status: closedreopened

This is not a test system; please do not close tickets for no reason.

comment:11 by Emmanuel Blot, 17 years ago

Owner: changed from anonymous to Jonas Borgström
Status: reopenednew

(anonymous should not own a ticket)

by Twariq@…, 15 years ago

Attachment: CaptchaImage_src.zip added

my resume

comment:12 by Christian Boos, 14 years ago

Milestone: 2.0unscheduled

Milestone 2.0 deleted

comment:13 by Remy Blank, 14 years ago

Milestone: triagingplugin - spam-filter
Resolution: fixed
Status: newclosed

The plugin is now here: plugins/0.12/spam-filter-captcha. I guess we can close this ticket.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.