473,411 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

CAPTCHA images/algorithms

118 100+
Hi all, I'm not sure whether or not this is PHP or not, though I'd assume so with the Dynamic Images and OOP.

I am currently implimenting user accounts on my website and to stop bots I was thinking of including a CAPTCHA image. Most people use generated images from the EZ-Gimpy program, but not all.

I was wondering how, using PHP with gd2 library, would/could I create a captcha like image with distorted background?

Or would I be better off using the pre-generated ones?

Thanks, Sam.
Oct 10 '07 #1
1 2088
Motoma
3,237 Expert 2GB
Hi all, I'm not sure whether or not this is PHP or not, though I'd assume so with the Dynamic Images and OOP.

I am currently implimenting user accounts on my website and to stop bots I was thinking of including a CAPTCHA image. Most people use generated images from the EZ-Gimpy program, but not all.

I was wondering how, using PHP with gd2 library, would/could I create a captcha like image with distorted background?

Or would I be better off using the pre-generated ones?

Thanks, Sam.
Pre-generated ones have the benefit of typically being a cut and paste solution.
Making your own, though, has benefits; you can modify them to suit your particular specifications on readability and difficulty.
If I were to go about doing this, I would create a large smeared image in Photoshop and save it. The CAPTCHA then randomly chooses two points in the image, crops to those two points, stretches or shrinks the image to fit in the size of the image you wish to produce (distortion), and then render multicolored text on top of it.
Oct 10 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Krishna Kumar | last post by:
Hai all, I am doing a project in .net and in that project I have a problem in capturing text from an image. i.e images like CAPTCHA images . which has inbuilt text with in the image.So,...
12
by: Francois Bonzon | last post by:
After a Google search, I see that quite a few CAPTCHA implementations in PHP are available. I'd like one that's not (easily) OCR-able, or otherwise crackable. Open source or commercial is not...
3
by: ldHH | last post by:
Hi all, Some web sites (for example mySpace) had in the registration form an image with alfanumeric chars... used to check the submit Could you say me ... how can I realize this ?? Or could you...
12
by: pittendrigh | last post by:
Let's say we're trying to keep blog and forum spammers out of our site--we're not trying to protect fort knox. 1) Step one is a one-time-only step. We create six different css files that define...
2
by: Varangian | last post by:
Hi all, wanted to ask about Captcha image! When should I used it? When there is free text box to be filled? Should I use a Captcha when I have a page with only click buttons? Can a bot "click a...
4
by: xeiter | last post by:
Hi, I have a captcha script on my website located at /captcha.php. What it does it generates an image with the code, displays the image (gd2) and saves the value of the code in session. How do I...
7
by: =?Utf-8?B?bWF0dCBw?= | last post by:
Steve Orr has a neat Captcha control: http://steveorr.net/articles/CAPTCHASP.aspx but aside from "dragging the control onto your toolbox.." Does anyone have any installation instructions: e.g....
0
by: Irmen de Jong | last post by:
Hi, I wanted to generate Captcha images(*) from Python and I couldn't find any module that suited my needs so I made one myself. It only needs PIL. (I used PIL 1.1.6) It can generate images...
10
by: jeddiki | last post by:
Hi, I have a captcha script which should pick up a background image and add some random letters to it and re-display This is the part of the form that the captcha image is part of: <span...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...

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.