ParTecs Weblog

Introducing PloneCaptcha…

March 31st, 2006

So we got the new and improved version of our website up, announcing all our new initiatives with lot of new content and even a bright new Contact us form. The site includes Geoff’s CacheFu with all its recent enhancements (did you know 1.0 is in beta now) making it fast and responsive, all the flash animations we did looks great (OK, kinda great…), the content looks sharp and concise, and I should be feeling relieved and at peace, but instead I am tossing and turnin with this nagging feeling that wont let me go to sleep…

Its the darn Contact us form. See, we have been doing a whole lot of of automated web testing using frameworks like mechanize, twill and zope.testbrowser and I know how easy it would be for some kook to write a script that will submit those Contact forms dozens to the minute creating a whole bunch of spam and bringing our server to its knees. In fact I met a couple of those kooks at the last beer party I went to.

If only I could add one of those squiggly text images and a word verification text box to our Plone site and thus ensure that only a real live human being (or an extremely well trained chimp) would be filling out our Plone Training request forms…

So I dig around. As it turns out this mechanism is called a Captcha. Short for “Completely Automated Public Turing test to tell Computers and Humans Apart”. Invented by Carnegie Mellon University after they decided to do something useful for furthering Computer Science. And there is a whole site http://captchas.net that provides the service straight from their site. For free! All we need is to do a little bit of tailoring of our forms. Darn easy to make it work. What’s even better is that it looks like a slated feature for Plone 3.0. Of course only if the Accessibility freaks (you know who you are 😉 ) let it get there!

You know the rest of the story. I throw together the PloneCaptcha product. And with one stroke of metal you can have your own squiggly text image on your pages, thus ensuring that only a really well trained chimp could sign up for that Plone training of yours.

PS; The stroke of metal you need:

< div metal:use-macro=”here/captcha/macros/edit” />

And Get your PloneCatcha here!

3 Comments »

  1. Shane Graber says

    Any way you could make these releases on plone.org as well? They would get more visibility there.

    Shane

    March 31st, 2006 | #

  2. pradeep says

    Hi Shane,
    the PloneCaptcha product is now available on Plone.org .

    Enjoy!

    April 10th, 2006 | #

  3. Nate Aune says

    When I try to install PloneCaptcha on plone4artists.org (Plone 2.0/Zope 2.7), it gives the following error:

    1.
    2006-09-01 08:48:39
    2.
    failed:
    3.
    Traceback (most recent call last):
    4.

    5.
    File “/usr/local/zope/instance1/Products/CMFQuickInstallerTool/QuickInstallerTool.py”, line 262, in installProduct
    6.
    res=install()
    7.

    8.
    File “/usr/local/zope/277/lib/python/Products/ExternalMethod/ExternalMethod.py”, line 232, in __call__
    9.
    return f(self.aq_parent.this(), *args, **kw)
    10.

    11.
    File “/usr/local/zope/instance1/Products/PloneCaptcha/Extensions/Install.py”, line 29, in install
    12.
    installTypes(self, out, listTypes(PROJECTNAME), PROJECTNAME, GLOBALS)
    13.

    14.
    NameError: global name ‘PROJECTNAME’ is not defined

    any idea what is causing this? I checked config.py and it has PROJECTNAME defined, and Install.py is importing this from config.

    September 1st, 2006 | #

Leave a comment

:mrgreen: :neutral: :twisted: :shock: :smile: :???: :cool: :evil: :grin: :oops: :razz: :roll: :wink: :cry: :eek: :lol: :mad: :sad:

RSS feed for these comments. | TrackBack URI

Feedburner RSS

Enter your email address:

Delivered by FeedBurner

Blogroll

Categories

RSS Telematics Freedom

March 2006
M T W T F S S
« Feb   Apr »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Archive

Sky Sponsored by Web Hosting