logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: RFC: CGI::Application::Plugin::CAPTCHA: msg#00133

lang.perl.modules.cgi-appplication

Subject: Re: RFC: CGI::Application::Plugin::CAPTCHA

Tony Fraser wrote:
On Fri, 2005-08-26 at 14:35, Michael Peters wrote:

Ok, before we go down this road, can anyone give me a good reason that
we need to permanently store these images or even cache them? The
CAPTCHA phrase should be random enough that we would never use the same
image twice in a reasonable amount of time right?


Time to add my two cents:

1) since the whole business is about preventing spamming, saving images on disk is actually a BAD idea: if a robot hits your script repeatedly, you'd end up with tons of uselessly generated images, which waste both processing power and disk space.

2) Since these images get used once, and only once, it makes perfect sense to only generate them when they're really needed.

I think that puts me firmly in Michaels camp :)

To me that leaves 2 choices:

1. Store the plain text on the server somehow, indexed by the hash. Then
generate the image as needed.

2. Generate the image and the hash at the same time and somehow save the
image so that it can be retrieved by its hash in a separate HTTP
request.


The plaintext string would be what, 8 bytes? How big would the image be, 3Kb? Easy choice there.


If you put the info required to generate the image in the query string
of the runmode that generates the image you've just given the robots
everything they need to defeat the captcha.


Depends on the form in which you pass that information. If you use a decent two-way encryption, there's no harm in my opinion. That way you don't even have to store anything on the server: pass the encrypted text both in the form (hidden) and in the captcha_create url. When you get the form data, see if encrypted and plaintext match. Simple and clean.

Rhesa



---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/cgiapp@xxxxxxxxxxxxxxxxx/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: cgiapp-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: cgiapp-help@xxxxxxxxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
krysalis.sandbo...    web.zope.zwiki/...    gnome.apps.gnum...    xfree86.newbie/...    editors.vim/200...    mozilla.enigmai...    boot-loaders.gr...    network.vnc.ult...    redhat.release....    java.geronimo.u...    os.netbsd.devel...    horde.wicked/20...    linux.lsb.discu...    ietf.ips/2005-0...    alsa.devel/2002...    user-groups.lin...    package-managem...    debian.devel.da...    security.cyrus....    video.gstreamer...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation