# Image verification -- keeps bots out, and humans too!

**URL:** <https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210>\
**Category:** The BBQ Pit\
**Created:** [August 20, 2007, 2:46am UTC](https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210 "2007-08-20T02:46:36Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Sapo](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@Sapo](https://boards.straightdope.com/u/Sapo)\
**Post date:** [August 20, 2007, 12:51pm UTC](https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210/21 "2007-08-20T12:51:02Z")

</div>

[QUOTE=Suda]  
I always thought [this](http://www.defectiveyeti.com/iacaptchas/) was a great idea.  
[/QUOTE]

equally effective for bots and stupid humans. Very good.

---

<div class="post-metadata">

**Author:** ![fusoya](https://avatars.discourse-cdn.com/v4/letter/f/ecccb3/32.png) [@fusoya](https://boards.straightdope.com/u/fusoya)\
**Post date:** [August 20, 2007, 2:24pm UTC](https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210/22 "2007-08-20T14:24:55Z")

</div>

That dog & cat solution is great. I don’t think the trivia question one would be very effective, because there are only so many trivia questions that can be written, and it wouldn’t take very long for the EVIL SPAMMERS to figure out every single question that can be asked, and have their spamming bots recognize the questions, and then program them to answer them.

The original reason I made this pit is to point out that some websites are making image verifications that not only are so hard for humans to read (by using crazy color combinations) but have effects that wouldn’t hurt a computer - I’m sure an OCR has WAY WAY less trouble distinguishing between similar colors than a human eye, so I think they’re keeping less legit humans out than EVIL SPAMMERS! It also came to my realization that blind users are completely left in the dark (pun intended) when it comes to getting registered!

---

<div class="post-metadata">

**Author:** ![Ludovic](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@Ludovic](https://boards.straightdope.com/u/Ludovic)\
**Post date:** [August 20, 2007, 2:44pm UTC](https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210/23 "2007-08-20T14:44:33Z")

</div>

I think we should dust off and nuke 'em from orbit. It’s the only way to be sure.

---

<div class="post-metadata">

**Author:** ![Mangetout](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mangetout/32/19_2.png) [@Mangetout](https://boards.straightdope.com/u/Mangetout)\
**Post date:** [August 20, 2007, 2:49pm UTC](https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210/24 "2007-08-20T14:49:37Z")

</div>

I stumbled across a collection of unreadable or otherwise inappropriate CAPTCHAs a day or two ago - but I can’s seem to find it again - most of them were just completely illegible blobs, but there were a few that contained dozens and dozens of readable characters, plus one or two where the random string had happened to spell out a valid, but offensive word or phrase (like [this](http://img.thedailywtf.com/images/200701/pup2/notnice.gif) one.

---

<div class="post-metadata">

**Author:** ![Mighty\_Girl](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mighty\_Girl](https://boards.straightdope.com/u/Mighty_Girl)\
**Post date:** [August 20, 2007, 2:52pm UTC](https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210/25 "2007-08-20T14:52:43Z")

</div>

[QUOTE=fusoya]  
That dog & cat solution is great. I don’t think the trivia question one would be very effective, because there are only so many trivia questions that can be written, and it wouldn’t take very long for the EVIL SPAMMERS to figure out every single question that can be asked, and have their spamming bots recognize the questions, and then program them to answer them.  
[/QUOTE]  
Each webmaster can create his/her own questions. Each would be unique to a site and they can be changed as often as one wishes. I think it would be pretty hard for a bot to crack that.

Furthermore, if you run a niche site you can ask a question that only other enthusiasts would know, if you wish to keep non-enthusiasts out of your site.

---

<div class="post-metadata">

**Author:** ![CaerieD](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@CaerieD](https://boards.straightdope.com/u/CaerieD)\
**Post date:** [August 20, 2007, 4:00pm UTC](https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210/26 "2007-08-20T16:00:14Z")

</div>

[QUOTE=Czarcasm]  
If you set the bot to hit each website 10 times and always pick the first image, How many bots are you going to keep out on average?  
[/QUOTE]

If the puppies and kittens aren’t in the same order every time, that won’t work. Set it to randomize the order of the images with a large pool of potential images to use. Each of the five images is randomly of a different common animal or object. The script asks to select the image of the kitten/cup/puppy/duckling/shoe/etc, followed by another level of the same brief, simple security so that the bot would have to be randomly correct twice in a row to get through. Anyone capable of reading this would also be capable of identifying the images, but it would be far more difficult to get a bot that could identify each one of those images.

---

<div class="post-metadata">

**Author:** ![Sapo](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@Sapo](https://boards.straightdope.com/u/Sapo)\
**Post date:** [August 20, 2007, 4:16pm UTC](https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210/27 "2007-08-20T16:16:48Z")

</div>

[QUOTE=Mighty\_Girl]  
Each webmaster can create his/her own questions. Each would be unique to a site and they can be changed as often as one wishes. I think it would be pretty hard for a bot to crack that.

Furthermore, if you run a niche site you can ask a question that only other enthusiasts would know, if you wish to keep non-enthusiasts out of your site.  
[/QUOTE]

Actually, stupid questions are all that is needed. “What colour is a red car” is just as good to weed people from bots as any other.

---

<div class="post-metadata">

**Author:** ![Encinitas](https://avatars.discourse-cdn.com/v4/letter/e/ee7513/32.png) [@Encinitas](https://boards.straightdope.com/u/Encinitas)\
**Post date:** [August 20, 2007, 4:22pm UTC](https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210/28 "2007-08-20T16:22:00Z")

</div>

But I’m still not convinced that **fusoya** is human! 😉

---

<div class="post-metadata">

**Author:** ![pulykamell](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/pulykamell/32/3166_2.png) [@pulykamell](https://boards.straightdope.com/u/pulykamell)\
**Post date:** [August 20, 2007, 4:52pm UTC](https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210/29 "2007-08-20T16:52:19Z")

</div>

[QUOTE=CaerieD]  
If the puppies and kittens aren’t in the same order every time, that won’t work. Set it to randomize the order of the images with a large pool of potential images to use. Each of the five images is randomly of a different common animal or object. The script asks to select the image of the kitten/cup/puppy/duckling/shoe/etc, followed by another level of the same brief, simple security so that the bot would have to be randomly correct twice in a row to get through. Anyone capable of reading this would also be capable of identifying the images, but it would be far more difficult to get a bot that could identify each one of those images.  
[/QUOTE]

I’m not understanding your explanation. If the puppies and kittens aren’t in the same order every time, and your pool is five images, guessing the first image every single time should get you a success rate of about 20% (1 in 5). If you have two levels of this, the success rate is about 4% (1 in 25). For a bot, not a problem.

If the puppies and kittens stay in the same order, then the bot just needs to randomize its selection every time, and the hit rate still should average out to 20% over time for the first level and 4% through both levels.

What am I missing here?

---

<div class="post-metadata">

**Author:** ![CaerieD](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@CaerieD](https://boards.straightdope.com/u/CaerieD)\
**Post date:** [August 20, 2007, 5:28pm UTC](https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210/30 "2007-08-20T17:28:20Z")

</div>

[QUOTE=pulykamell]  
I’m not understanding your explanation. If the puppies and kittens aren’t in the same order every time, and your pool is five images, guessing the first image every single time should get you a success rate of about 20% (1 in 5). If you have two levels of this, the success rate is about 4% (1 in 25). For a bot, not a problem.

If the puppies and kittens stay in the same order, then the bot just needs to randomize its selection every time, and the hit rate still should average out to 20% over time for the first level and 4% through both levels.

What am I missing here?  
[/QUOTE]

:smack: You’re not missing anything. That’s just what I get for trying to fix the flaws in a fundamentally flawed concept. The proper identification of _all_ of the images, as **Left Hand of Dorkness** mentioned, is a far better idea.

---

<div class="post-metadata">

**Author:** ![Jayrot](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@Jayrot](https://boards.straightdope.com/u/Jayrot)\
**Post date:** [August 20, 2007, 6:09pm UTC](https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210/31 "2007-08-20T18:09:46Z")

</div>

The big point that most people miss when trying to come up with some clever new CAPTCHA system like the kittens and puppies, is that there has to be a finite number of possible pictures. Even if there are a thousand pictures of cats and dogs a human could easily go through and associate each one with the proper definition. Then all the bot has to do is recognize (most likely a hashed down version of the jpeg) and consult the list.

YES, the squiggly letters are uniquely generated and obfuscated ON THE FLY.

The ideas of trivia or cuteness and everything else is clever, but ultimately won’t work because you can’t have a computer program easily WRITE a unique question every time (or go out and snap a unique picture of a cat or dog).

---

<div class="post-metadata">

**Author:** ![gazpacho](https://avatars.discourse-cdn.com/v4/letter/g/6f9a4e/32.png) [@gazpacho](https://boards.straightdope.com/u/gazpacho)\
**Post date:** [August 20, 2007, 6:15pm UTC](https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210/32 "2007-08-20T18:15:32Z")

</div>

It would be pretty easy to add some random changes to the images on the fly such that they would not give the same checksum every time.

---

<div class="post-metadata">

**Author:** ![Jayrot](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@Jayrot](https://boards.straightdope.com/u/Jayrot)\
**Post date:** [August 20, 2007, 6:33pm UTC](https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210/33 "2007-08-20T18:33:37Z")

</div>

Yes, but they’d have to be pretty substantial changes to confuse a clever computer (checksum is, of course, only one way to do it). Pretty soon you have a jpeg that’s been so warped (on the fly) that you have the same problem you were trying to avoid in the first place: “What the hell is that?”

---

<div class="post-metadata">

**Author:** ![netsplit](https://avatars.discourse-cdn.com/v4/letter/n/ecc23a/32.png) [@netsplit](https://boards.straightdope.com/u/netsplit)\
**Post date:** [August 20, 2007, 8:10pm UTC](https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210/34 "2007-08-20T20:10:05Z")

</div>

[QUOTE=Q.E.D.]  
I\* _hat \* fac_? 😉  
[/QUOTE]

yep:p

took a whole 5 seconds to fill in the blanks vs a minute or two of “is that a zero or the letter o? and is that a t or perhaps an l or I with one of those random lines through it?”

---

<div class="post-metadata">

**Author:** ![Mighty\_Girl](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mighty\_Girl](https://boards.straightdope.com/u/Mighty_Girl)\
**Post date:** [August 20, 2007, 8:13pm UTC](https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210/35 "2007-08-20T20:13:41Z")

</div>

[QUOTE=Jayrot]  
The ideas of trivia or cuteness and everything else is clever, but ultimately won’t work because you can’t have a computer program easily WRITE a unique question every time (or go out and snap a unique picture of a cat or dog).  
[/QUOTE]  
If you run a large site that thousands of spammers want to crack you might need to go for multiple levels of security, for the smaller sites, like mine, the questiosn work fantastically. You can add as many questions as you want, each would be unique to your site and you can change them as often as you want. A bot will still have to be walked through by a human. There is no bot capable of answering certain questions, however simple.

If bots are walked through by humans, like they are doing now, no amount of “on the fly” levels of security will work.

---

<div class="post-metadata">

**Author:** ![netsplit](https://avatars.discourse-cdn.com/v4/letter/n/ecc23a/32.png) [@netsplit](https://boards.straightdope.com/u/netsplit)\
**Post date:** [August 20, 2007, 8:31pm UTC](https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210/36 "2007-08-20T20:31:08Z")

</div>

[QUOTE=Mighty\_Girl]  
If yours is a vB forum then we are both using the same mod.

[/quote]

yep it is!

> [@](#):
>
> End users in a forum have no idea what is really going on in the back. It is crazy out there.

Yep it is!

> [@](#):
>
> I run two forums, both are practically identical except that one runs in English the other in Spanish. The Spanish one had very little problem with spam, the English one was flooded with it. On top of that I got scrapers and bots seeking holes in the system all the time. It’s like a race where I am always trying to be a step ahead of them.

We had some sneak through even with image verification. The best anyone can figure is its all automated except the verification. So that the bot does all the signing up then shows the image to a human who types in the letters. A spammer could still quiet efficiently spam heaps of sites that way. The question seems to throw em off us enough that they don’t bother.

---

<div class="post-metadata">

**Author:** ![Capt.Ridley\_s\_Shooting\_Party](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@Capt.Ridley\_s\_Shooting\_Party](https://boards.straightdope.com/u/Capt.Ridley_s_Shooting_Party)\
**Post date:** [August 20, 2007, 9:54pm UTC](https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210/37 "2007-08-20T21:54:15Z")

</div>

[QUOTE=Left Hand of Dorkness]  
I believe the computer’s chance of doing so successfully is less than one in a thousand (2^10). But it should be pretty easy for end-users to do it successfully.

[/QUOTE]

Only if the computer is selecting the classification randomly. As has already been mentioned, image analysis is a massive research area in AI and results are significantly better than random (~99% accuracy in some domains).

---

<div class="post-metadata">

**Author:** ![Mighty\_Girl](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mighty\_Girl](https://boards.straightdope.com/u/Mighty_Girl)\
**Post date:** [August 20, 2007, 10:00pm UTC](https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210/38 "2007-08-20T22:00:19Z")

</div>

[QUOTE=netsplit]  
The best anyone can figure is its all automated except the verification.  
[/QUOTE]  
From what I can see that seems to be the case. All bots seem to follow the same pattern. Which makes it even easier to prune accounts that fit that pattern. It is still a massive PITA.

---

<div class="post-metadata">

**Author:** ![borschevsky](https://avatars.discourse-cdn.com/v4/letter/b/97f17d/32.png) [@borschevsky](https://boards.straightdope.com/u/borschevsky)\
**Post date:** [August 20, 2007, 10:17pm UTC](https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210/39 "2007-08-20T22:17:36Z")

</div>

[QUOTE=netsplit]  
We had some sneak through even with image verification. The best anyone can figure is its all automated except the verification. So that the bot does all the signing up then shows the image to a human who types in the letters. A spammer could still quiet efficiently spam heaps of sites that way. The question seems to throw em off us enough that they don’t bother.  
[/QUOTE]  
One mechanism spammers use for this is to set up their own site with a captcha in the registration, but the captcha is actually pulled from the site they’re trying to spam. The user of their site fills out the captcha, and behind the scenes their site has a bot that passes this through the spammed site.

---

<div class="post-metadata">

**Author:** ![Mangetout](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mangetout/32/19_2.png) [@Mangetout](https://boards.straightdope.com/u/Mangetout)\
**Post date:** [August 20, 2007, 11:27pm UTC](https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210/40 "2007-08-20T23:27:51Z")

</div>

[QUOTE=Jayrot]  
The big point that most people miss when trying to come up with some clever new CAPTCHA system like the kittens and puppies, is that there has to be a finite number of possible pictures. Even if there are a thousand pictures of cats and dogs a human could easily go through and associate each one with the proper definition. Then all the bot has to do is recognize (most likely a hashed down version of the jpeg) and consult the list.

YES, the squiggly letters are uniquely generated and obfuscated ON THE FLY.

The ideas of trivia or cuteness and everything else is clever, but ultimately won’t work because you can’t have a computer program easily WRITE a unique question every time (or go out and snap a unique picture of a cat or dog).  
[/QUOTE]

You could present a 3D-rendered picture of a cat/kitten or dog/puppy, in a randomised pose each time, with a randomised coat pattern, eye colour, background, etc. (like Nintendogs)

[Previous page](https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210.md?page=1)

[Next page](https://boards.straightdope.com/t/image-verification-keeps-bots-out-and-humans-too/416210.md?page=3)
