Go Back   SitePoint Forums > Forum Index > Program Your Site > PHP
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
Reply
 
Thread Tools Display Modes
Old Mar 8, 2007, 17:35   #1
TantekHack
SitePoint Zealot
 
Join Date: Jan 2007
Posts: 119
When is it necessary to implement a form of CAPTCHA?

I am building some simple contact forms and was wondering if there was a general rule for knowing when you should implement some form of CAPTCHA process to keep the bots from filling out the forms and submitting? What are the chances that spam bots would submit a contact form? Thanks.
TantekHack is offline   Reply With Quote
Old Mar 8, 2007, 17:45   #2
Mandes
Who turned the lights out !!
 
Mandes's Avatar
 
Join Date: May 2005
Location: S.W. France
Posts: 2,067
If your going to publish your site and link it to the googles of the world you will get your first bot spam shortly afterwards, however if your contact form is hidden behind secure access area, no need to bother.

Its not difficult to put one on, and it worth the extra hassle now rather than later.
Mandes is offline   Reply With Quote
Old Mar 8, 2007, 17:55   #3
brothercake
SitePoint Evangelist
 
Join Date: Mar 2004
Location: Earth
Posts: 401
I disagree - CAPTCHA should not be used, because it blocks out a proportion of legitimate users (anyone who can't see it!). Even an audio alternative doesn't solve this problem, because that assumes that the user can hear and has a computer that can make sound.

Having said that ... I'm afraid I don't have a concrete alternative to offer. The best idea I've seen is Eric Meyer's "Gatekeeper" - http://meyerweb.com/eric/thoughts/20...wp-gatekeeper/
brothercake is offline   Reply With Quote
Old Mar 9, 2007, 04:30   #4
mrwooster
SitePoint Evangelist
 
mrwooster's Avatar
 
Join Date: Jan 2006
Posts: 419
Quote:
Originally Posted by brothercake View Post
I disagree - CAPTCHA should not be used, because it blocks out a proportion of legitimate users (anyone who can't see it!). Even an audio alternative doesn't solve this problem, because that assumes that the user can hear and has a computer that can make sound.

You say that captchas should not be used because some people can't see them, but the alternative that you suggsted also relies on people being able to see.

I am very much in favour of making the web more accessible to everyone, but I think captchas serve their purpose well, and I think that it is reasonable to assume that anyone who has a sight problem will have the sound turned on on their computer as they will most probably have software to read them text.


Regards

Guy
mrwooster is offline   Reply With Quote
Old Mar 9, 2007, 20:55   #5
brothercake
SitePoint Evangelist
 
Join Date: Mar 2004
Location: Earth
Posts: 401
Quote:
Originally Posted by mrwooster View Post
You say that captchas should not be used because some people can't see them, but the alternative that you suggsted also relies on people being able to see.
No it doesn't - the alternative I suggest is based on text and a form - it's perfectly accessible to assistive technologies. It may be problematic for someone with a cognitive disability, and that's why it's not a perfect solution; but there's no problem for blind or partially-sighted users.

Quote:
Originally Posted by mrwooster View Post
I think that it is reasonable to assume that anyone who has a sight problem will have the sound turned on on their computer as they will most probably have software to read them text.
Well that's where we disagree - it is not reasonable to assume anything at all. Not everyone with a sight problem uses reading software. Heck, I have 20-20 vision, and I have difficulty reading CAPTCHAS.

To say that you're "very much in favour" of making the web more accessible is a cop-out if you're not prepared to see that through to its logical conclusion - it pays lip service to the idea of accessibility, without being prepared to do what's necessary. If the web is not accessible, it's broken, because technology is the last bastion of accessibility; it's not like physical accessibility where there are tangible reasons why some kinds of access are impossible - with technology, there is no good reason, only excuses.

Quote:
Originally Posted by Mandes View Post
I understand your point of view, and its an important one, but I'm not prepared to get into a discussion here on the php forum on accessibillty issues.
Well maybe you should be As a PHP developer you can't just hide on the server and disregard the client - what you produce has a client-side, and you need to consider that. I don't care how difficult or inconvenient it is - that's our problem - and CAPTCHAs, just like anti-spam opt-in systems, are unfair - they force users to take responsibility for our problem.

What really matters is what the client gets, and making it easy for them, because that's what we do all this for.
brothercake is offline   Reply With Quote
Old Mar 8, 2007, 18:00   #6
Mandes
Who turned the lights out !!
 
Mandes's Avatar
 
Join Date: May 2005
Location: S.W. France
Posts: 2,067
I think your disagreement would be highly dependant on the content of the site. But I take your point of view
Mandes is offline   Reply With Quote
Old Mar 8, 2007, 19:51   #7
brothercake
SitePoint Evangelist
 
Join Date: Mar 2004
Location: Earth
Posts: 401
Why dependent on the content?
brothercake is offline   Reply With Quote
Old Mar 8, 2007, 20:30   #8
Bill Palmer
SitePoint Zealot
 
Bill Palmer's Avatar
 
Join Date: Oct 2005
Location: London, UK
Posts: 148
Quote:
Originally Posted by brothercake View Post
Why dependent on the content?
A site catering to teenagers will probably have less people NOT capable of reading a captcha than a site catering to retirees/the elderly.

Not sure if that's what he meant, but that's what I got out of it.
Bill Palmer is offline   Reply With Quote
Old Mar 8, 2007, 22:41   #9
brothercake
SitePoint Evangelist
 
Join Date: Mar 2004
Location: Earth
Posts: 401
So there are no teenagers in the world who are blind or have a vision impairment ..?
brothercake is offline   Reply With Quote
Old Mar 8, 2007, 23:32   #10
Bill Palmer
SitePoint Zealot
 
Bill Palmer's Avatar
 
Join Date: Oct 2005
Location: London, UK
Posts: 148
Quote:
Originally Posted by brothercake View Post
So there are no teenagers in the world who are blind or have a vision impairment ..?
Quote:
will probably have less
Stop seeing what you want to see.
Bill Palmer is offline   Reply With Quote
Old Mar 9, 2007, 00:33   #11
Mandes
Who turned the lights out !!
 
Mandes's Avatar
 
Join Date: May 2005
Location: S.W. France
Posts: 2,067
Quote:
Originally Posted by brothercake View Post
Why dependent on the content?
If the site is an information site whose content can be parsed by a text reader then yes I agree using a captcha would not be ideal, however if the site relies heavily on jS, Flash and images to make its content viewable then I see no problem with the use of captcha.

For example a gaming site is unlikely to attract persons using a textonly browser, (does anyone still actually use these anyway ??) or requiring the use of a textreading browser.
Mandes is offline   Reply With Quote
Old Mar 9, 2007, 03:28   #12
brothercake
SitePoint Evangelist
 
Join Date: Mar 2004
Location: Earth
Posts: 401
Quote:
Originally Posted by Mandes View Post
if the site relies heavily on jS, Flash and images to make its content viewable.
If the site relies on those things, then it's a badly made and inaccessible site

Quote:
Originally Posted by Mandes View Post
(does anyone still actually use these anyway ??)
Yes they do; and mobile browsers are often of a comparable spec.

But that's not the point - I'm not talking about browsers that can't parse images, I'm talking about people who can't see. For example, a blind user using JAWS is also using Internet Explorer - a JS capable, graphical browser; but they still can't see your CAPTCHA, or interact with a lot of complex scripting.
brothercake is offline   Reply With Quote
Old Mar 9, 2007, 04:17   #13
Mandes
Who turned the lights out !!
 
Mandes's Avatar
 
Join Date: May 2005
Location: S.W. France
Posts: 2,067
Quote:
Originally Posted by brothercake View Post
.............. but they still can't see your CAPTCHA, or interact with a lot of complex scripting.
Exactly, which was why I said it depends on the content of the site and therefore the expected target audience. As an extreme example somebody that cant see is hardly likely to want to fill in a form on a site that sells flying lessons.

I understand your point of view, and its an important one, but I'm not prepared to get into a discussion here on the php forum on accessibillty issues.

Last edited by Mandes; Mar 9, 2007 at 05:38.
Mandes is offline   Reply With Quote
Old Mar 10, 2007, 05:41   #14
mrwooster
SitePoint Evangelist
 
mrwooster's Avatar
 
Join Date: Jan 2006
Posts: 419
BTW: I have just noticed that php.net use the technology suggested by brothercake, when you want to write a comment, you are asked to do a simple arithmetic sum.
mrwooster is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 18:18.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved