Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Perl Captcha Solution

by Anonymous Monk
on Oct 29, 2007 at 09:21 UTC ( [id://647808]=perlquestion: print w/replies, xml ) Need Help??

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi All

I have a slight problem in that I need to implement a captcha field on a web submission system that is written in Perl - but we do not have GD or ImageMagik installed and have no way of installing it. I need a solution which does not rely on root level software like that if possible.

I realize it might be difficult to generate an image, is there any other way of implementing a solution, using Flash or such interfacing with Perl?

Any advice would be greatly appreciated

Thanks!

Replies are listed 'Best First'.
Re: Perl Captcha Solution
by andreas1234567 (Vicar) on Oct 29, 2007 at 09:38 UTC
      Captcha::reCAPTCHA is pure Perl and wouldn't require root access to use a local copy. Just install it into a local user directory and use 'use lib' so that your CGI script will find it.

      I haven't found Captcha:reCAPTCHA to be the world's easiest software to use, but it's OK.

      This example is derived from one of the posted examples; you may find it useful. Note that I'm assuming that your Captcha::reCAPTCHA library is installed into a local directory, and that you've situated your public and private key files appropriately. Note that for security reasons these key files (especially the private one) shouldn't be located within web-browsable disk space.

      HTH ...

      Agreed that captcha services generally seem to be the way to go. The one I've used before is captchas.net (via WebService::CaptchasDotNet), but ReCAPTCHA looks like its text may be easier (for humans) to recognize.
      And this one is also promoting his own business. Shame on you!
Re: Perl Captcha Solution
by zentara (Archbishop) on Oct 29, 2007 at 12:45 UTC
    In my opinion, the easiest solution would be to generate 10,000 random captcha images on a capable local machine, then upload 1000 of them to the site, and rotate them on a weekly basis( or whatever you feel is secure enough). Those small images do not take up much disk space.

    I'm not really a human, but I play one on earth. Cogito ergo sum a bum
Re: Perl Captcha Solution
by wazoox (Prior) on Oct 30, 2007 at 21:15 UTC
    There's an idea that I think is quite good, easy to implement and better than most unreadable CAPTCHAs : display 20 thumbnails of animals (or use your preferred category) randomly arranged in a grid, and simply ask "please click on the cat" (or the dog, the pigeon or whatever). It's cute, it's easy (some CAPTCHAs are seriously unreadable for real humans too).
    If you think random clicks are too easy for bots, than ask "please click on the cat, then the dog, last the cow" and it should defeat any randomly clicking bot if necessary.
Re: Perl Captcha Solution
by Anonymous Monk on Oct 29, 2007 at 12:19 UTC
    Those aren't root level software
Re: Perl Captcha Solution
by Anonymous Monk on Nov 19, 2007 at 22:36 UTC
    Have a look at http://webspamprotect.com
      Another pay pay version!
        You are just promoting your own business. Shame on you!!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://647808]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-04-23 10:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found