Solved

Captcha on Mac

Posted on 2013-10-29
5
573 Views
Last Modified: 2013-10-30
We have a website that uses "captcha" such that when the user completes a form, there is a 5 letter / number code that must be retyped.

All is done in php.

On Mac computers using Safari, the browser automatically uppercases the first letter of the response; since this DOES NOT produce a match, it fails. The customer does not realize what is happening.

Is there a way to either prevent that from happening or to force Captcha to upper case the first letter?

Note I have NO CONTROL over how users will have configured their browser.

The captcha modules is attached.

Thanks
CaptchaSecurityImages.php
0
Comment
Question by:Richard Korts
  • 2
  • 2
5 Comments
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 39610196
Yes, this is easy to fix.  I have an article on CAPTCHA here with several examples.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_9849-Making-CAPTCHA-Friendlier-with-PHP-Image-Manipulation.html

You probably don't want to be using a piece of free code from 2006, anyway!  That would be like driving a 2006 car -- it's warranty has expired!
0
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 39610201
But if you decide you want to keep that old thing, change line 30 to this:

            return strtoupper($code);

And in whatever place you check the security code make a similar normalization with strtoupper().
0
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 39610397
Most captchas like the reCaptcha from Google are made to be case insensitive.
0
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 39610477
Safari on my MacBook Pro with OS X 10.6.8 does not do that, it does not capitalize the first letter.  Which version of OSX and Safari is doing that?
0
 

Author Comment

by:Richard Korts
ID: 39611474
DaveBaldwin

It doesn't do it on the iPad either.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now