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.
1 2118 Motoma 3,237
Recognized Expert Specialist
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.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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, Can any one suggest me how to continue
my work or give their valuable suggestions for capturing text in the
CAPTCHA image .
yours
KrishnaKumar
|
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 important. Any
recommendations, or experience with a specific one to share?
I get a lot of SPAM entries on a guestbook, and want to protect it.
I'll require users to solve a CAPTCHA before their entry is accepted. I
might use CAPTCHAs to protect...
|
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 give me some link where I can read this ??
Thanks in advance.
//HH
|
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 the
same six color names differently, but each such
css file assigns red to one and only
one of those same six color names, and then store
the six somewhere in the document_root.
|
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 button"?
Sorry for asking some foolish questions.. I don't this is maybe not
related to asp.net but since its forms part of the web!
Thank you!
| |
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 access that code in session from my c# windows application. I have a form in my application for registering users. The application then calls to the webserver and uses regular .php page to submit user registration. It has captcha and thats why I need...
|
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. aspx code, etc... ?? I could not find
any..
|
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 with a provided background or it can make a random background for
you. It needs a truetype font to draw the letters, and outputs jpeg images.
|
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 >Verification Image:</span>
<span ><img src="captcha.php" id="captcha" />
<a href="#renew" onclick="javascript: document.getElementById('captcha').src = 'captcha.php?' + Math.random();">refresh</a> </span>
|
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...
|
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...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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...
| |