473,716 Members | 2,438 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"please enter the code as you see in the image" - how does it work?

On many websites they have a blurred image with a code which you're
supposed to reenter in a text box to validate your form submission.

How do I implement such a thing using php?

Apart from preventing automatic form submission by any malicious robot,
does this serve any other purpose?

Mike

Jul 17 '05 #1
5 119566
On 25 Mar 2005 10:35:44 -0800, "siliconmik e" <si*********@ya hoo.com> wrote:
On many websites they have a blurred image with a code which you're
supposed to reenter in a text box to validate your form submission.

How do I implement such a thing using php?
Search for the keyword "captcha" - it's an acronym.
Apart from preventing automatic form submission by any malicious robot,
does this serve any other purpose?


That's pretty much all they're for.

--
Andy Hassall / <an**@andyh.co. uk> / <http://www.andyh.co.uk >
<http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #2
>On many websites they have a blurred image with a code which you're
supposed to reenter in a text box to validate your form submission.

How do I implement such a thing using php?
Make up a bunch of images with blurry pieces (e.g. a single letter
each). Select a code randomly. Put together the pieces showing
that code into a big one with the complete code (this might be just
HTML putting the images side-by-side). Be careful how you name
your images (e.g. calling them A.jpg, B.jpg, C.jpg, ... might let
a bot figure out the code without actually looking at the image.)
You may want to have several differently-blurry images for each
letter. Compare the code the user input against the correct answer.
Apart from preventing automatic form submission by any malicious robot,
does this serve any other purpose?


It slows down automatic rapid-fire form submission by a
not-necessarily-malicious robot or user (load throttling). Other
than that, this is pretty much the only point of doing it.

Beware that some bots have volunteer humans working for them to
solve these puzzles. The bot will promise (usually in SPAM) the
human something, like free access to a porn site, and then relay
your images to him. When he inputs the code, the bot passes it on
to your site. The bot may or may not deliver on its promises to
the human.

Gordon L. Burditt
Jul 17 '05 #3
siliconmike wrote:
[Turing numbers]

How do I implement such a thing using php?

Apart from preventing automatic form submission by any malicious robot,
does this serve any other purpose?


It stops those pesky blind visitors using up your bandwidth.

(Actually to be fair I've come across one or two sites that provide an audio
alternative, but they seem to be the exception...)

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Jul 17 '05 #4
"Gordon Burditt" <go***********@ burditt.org> wrote in message
news:42******** **************@ news.airnews.ne t...
On many websites they have a blurred image with a code which you're
supposed to reenter in a text box to validate your form submission.

How do I implement such a thing using php?


Make up a bunch of images with blurry pieces (e.g. a single letter
each). Select a code randomly. Put together the pieces showing
that code into a big one with the complete code (this might be just
HTML putting the images side-by-side). Be careful how you name
your images (e.g. calling them A.jpg, B.jpg, C.jpg, ... might let
a bot figure out the code without actually looking at the image.)
You may want to have several differently-blurry images for each
letter. Compare the code the user input against the correct answer.


That wouldn't work. A cracker would figure out in no time which letter is
contained in which image and program that into the bot. It doesn't help much
even if you stitch the images into one file, as a simple pixel by pixel
comparison would yield the answer.

Most implementations I have seen use a random noise background (a random
spot in a large static image, perhaps), with each letter in a differnet font
and size, usually at a small tilt.
Jul 17 '05 #5
siliconmike wrote:
On many websites they have a blurred image with a code which you're
supposed to reenter in a text box to validate your form submission.

How do I implement such a thing using php?


There is a PEAR module for that:

http://pear.php.net/package/Text_CAPTCHA/

Never used it and it's an alpha version, I have no idea how useful it is.

JP
--
Sorry, <de*****@cauce. org> is a spam trap.
Real e-mail address unavailable. 5000+ spams per month.
Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4598
by: Christopher.Becker | last post by:
When I'm running my app, I occaisonally receive this error message: PostgreSQL Error Code(1) "could not create socket: An address incompatible with the requested protocol was used" It appears to be a PostgreSQL Error, but I can't find Any documentation on it at all in the PostgreSQL docs, or webpage.† Has anyone ever scene this before or know what could be the cause?† Like I said it happens once in a while, not consistently.
2
2261
by: John Dalberg | last post by:
I installed the Pet Shop 4.0 app. However everytime I try to create a new user, I get a "Please enter a more secure password" error. I tried all kinds of passwords. I looked at the membership provider for SQL Server and I don't see any settings for passwords. So why is this error hapenning? Also the link on MS's site to Pet Shop 4.0 is broken: http://search.microsoft.com/results.aspx?q=Microsoft+.NET+Pet+Shop+4&l=3&mk
12
20688
by: John | last post by:
I can't get my head around this! I have the following code: <% .... Code for connection to the database ... .... Code for retrieving recordset ... If Not rs.EOF Then ... Do something...
1
6357
by: perspolis | last post by:
Hi all I have an application that runs well in Debug mode..but when I change to Release mode I get this error Error 48 "sgen.exe" exited with code 1." I don't know why?? thanks in advance
0
1508
by: 2Barter.net | last post by:
" Given BACK what was freely GIVEN " More options 2 messages - Expand all 2Barter.net View profile More options Dec 12, 9:48 pm Blessing Are Country
2
2436
by: brianflannery | last post by:
Greetings! My situation is this. I currently have a database of which in a form displays jpeg pictures (one at a time) which are linked to the db and stored in a separate folder. I have set up a report with an image control do display/print 4 pictures on a page. When the report opens (in preview mode) the "loading image" dialog flashes 4 times (once for each picture) which isn't a huge deal, but is annoying. There have been several...
5
6490
by: CoderMarc | last post by:
Hi, I can not get the system pause to work in a simple program. Here is my program below: // i/o example #include <iostream> using namespace std; int main ()
5
2397
by: Madmartigan | last post by:
Gidday Question : Write a program that will report the longest and shortest string in its input. I am attempting EX 3.4(page 49) from Accelerated C++ by Koenig and Moo. I keep getting the above mentioned compiler error and I'm not too sure what I'm doing wrong. Below is the source code. Please ignore the system("PAUSE") as I use this purely to pause the dos shell. Any pointers appreciated : #include <iostream>
1
3388
by: perhapscwk | last post by:
Hi, I use below in IE, it works but it not work in firefox, please help. <meta http-equiv="Site-Enter" content="revealTrans(Duration=2,Transition=23)"/> <meta http-equiv="Page-Enter" content="revealTrans(Duration=2,Transition=23)"/> <meta http-equiv="Site-Exit" content="revealTrans(Duration=2,Transition=23)"/> <meta http-equiv="Page-Exit" content="revealTrans(Duration=2,Transition=23)"/>
0
8823
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
8718
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9344
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9047
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5969
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4477
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3177
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2543
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2119
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.