Ticket #167 (closed Task: fixed)

Opened 11 months ago

Last modified 3 months ago

Captcha Helper/Library

Reported by: Shadowhand Owned by: Geert
Priority: minor Milestone: 2.2
Component: Libraries Version: SVN HEAD
Keywords: captcha gd gd2 security image Cc:

Description

We need to create (or port) a captcha plugin. I think we can make something really good.

Some helpful links:

Ideally, I'd like to see these features:

  • Storage of the captcha with the filename as the captcha phrase (eg: captcha text is "DFRN", filename is "DFRN.jpg") to eliminate the need for the database
  • Expiration, based on date the captcha was created (12-36 hours?), configurable
  • Dynamic selection of the captcha to be displayed, storage of the current captcha in $_SESSION
  • Allow both random text and (configurable) word selection
  • Use GD2 exclusively (imagecreatetruecolor > imagecreate)

Change History

Changed 11 months ago by Shadowhand

  • summary changed from captcha plugin to Captcha Helper/Library

Changed 11 months ago by flickerfly

It would be nice to have the option of using reCaptcha. http://recaptcha.net/

In addition, we'd help out the digitizing of books. :-)

Changed 11 months ago by zombor

Shouldn't this be part of the validation library?

Changed 11 months ago by forngren

This project uses a clever approach, instead of relying in images/sound, it asks the user a simple question. This has huge usability benefits and can be used visually challenged as well as mobile users.

http://drupal.org/project/riddler

Changed 9 months ago by Shadowhand

  • keywords image added
  • priority changed from major to minor

This feature depends on #156.

Changed 9 months ago by gregmac

  • component changed from Core to Libraries

Changed 9 months ago by Lick

Storing as #captcha_text#.jpg would defeat the purpose of having a captcha system!

ReCAPTCHA requires registration, but is really nice. I had made a Library for CakePHP for it before, it's not that hard to implement it in Application though. Most of the code will be in the vendor's file.

Changed 9 months ago by Shadowhand

  • milestone changed from 2.1 to 2.2

Moving to 2.2, there's too much work left to get this into 2.1.

Changed 7 months ago by OscarB

  • owner set to OscarB
  • status changed from new to assigned

Initial version in r2195 Working but not polished yet.

Changed 3 months ago by Geert

More improvements in r3015. Switched to a driver based structure which allows for great flexibility in the type of Captcha's that can be generated.

Changed 3 months ago by Geert

  • owner changed from OscarB to Geert
  • status changed from assigned to new

Changed 3 months ago by Geert

  • status changed from new to assigned

Changed 3 months ago by Geert

  • status changed from assigned to closed
  • resolution set to fixed

Closing this ticket. Over the past few days, a lot of work has gone into a rebuilt Captcha library.

  • We've got a flexible driver-based structure allowing you to build your own Captcha challenges.
  • We've got the power to easily switch Captcha styles (~drivers) via config groups.
  • We've got prebuilt drivers for both random text and language-specific word selection, for riddles and math.
  • We've got gradients in GD2. Yay!
  • We've got a simple yet effective counter and promotion system which in my opinion is even better than going the caching route.

What more do you want?

Note: See TracTickets for help on using tickets.