Personal Daantje on 11 Oct 2006 10:40 pm
A small but usefull spam/flood form submit protection that uses CAPTCHA. This class can produce a image with a random string and a form input. When the form is submitted, the string from the form input can be matched against generated string in the image. When they match, the submition can proceed. The random generated image string will be matched against a session var or against a file on the server disk, depanding on the backend you’ve choosed. Default backend is the session backend.
- Did a small security bugfix with the session backend.
- Added a new example with seperate CAPTCHA input check.
- The new example 4 is better for newbe’s to implement.
Here are the features of the current version 0.2:
- One or more random colors.
- One or more random TTF fonts.
- Random rotation.
- Custom background color or image.
- Transparent background with anti-alias of string.
- Hardcoded or variable (liquid) dimentions of the image.
- Colors can be filled as HEX or as RGB values.
- String/code type can be only numbers, only letters or both.
- Backend by session or server disk space.
For a first version it can do a lot, at least I do think so! ;)
Please report any bugs to me at daantje dot nl
Please support this project by paypal donations, (my email is my paypal address)
Download and untar the file (tar -zxvf submitTroughImage.tgz), upload it and point your browser to one of the examples. Windows users can use WinRAR to decompress the file.
- Download file: submitTroughImage.tgz
- Last update: 21 Aug 2006 14:40:44
More examples are included in the package.
28 Responses to “submitThroughImage”
Leave a Reply
You must be logged in to post a comment.