This is an open-source free PHP CAPTCHA script for generating complex images and CAPTCHA codes to protect forms from spam and abuse. It can be easily added into existing forms on your website to provide protection from spam bots. It can run on most any webserver as long as you have PHP installed, and GD support within PHP. Securimage does everything from generate complicated CAPTCHA images to making sure the code the user entered was correct.
Features:
- Only 3 lines of code to show an image
- Validate entries within 6 lines of code
- Customizable code length
- Choose the character set
- TTF font support
- Use custom GD fonts when TTF is not available
- Easily add background images
- Multi colored, angled, and transparent text options
- Arched lines through text
- Generates audible CAPTCHA files in wav format
- Use a word list for creating CAPTCHA codes
Step 1 (place the captcha image in your form):
-
<img id="captcha" src="securimage/securimage_show.php" alt="CAPTCHA Image" />
Step 2 (insert text field into your form):
-
<input type="text" name="captcha_code" size="10" maxlength="6" />
Step 3 (optional: adds dynamic reload of captcha image):
-
<a href="#" onclick="document.getElementById('captcha').src = '/securimage/securimage_show.php?' + Math.random(); return false">Reload Image</a>
Step 4 (put into your form processing page):
-
<?
-
// include captcha class and create object
-
// http://thedevnet.com/php/classes/image-captcha-spam-prevention/
-
@ob_start();
-
@session_start();
-
include_once('securimage/securimage.php');
-
$securimage = new Securimage();
-
?>
Final Step (verify captcha in form processing page):
-
<?
-
if ($securimage->check($_POST['captcha_code']) == false) {
-
// put your code in here for failed captcha
-
}
-
?>
SecurImage Class. This will allow you to generate captcha for your forms.
| Platforms: |
Web Based |
| Category: |
classes |
| License: |
GNU General Public License |
| Date: |
October 19, 2009 |
These are the sound files used for creating audible CAPTCHA codes. Computerized female voice with random static background noise. Contains English letters A-Z and numbers 0-9.
These files must be downloaded in order for the audible CAPTCHA to function!
| Platforms: |
Web Based |
| Category: |
classes |
| License: |
GNU General Public License |
| Date: |
October 19, 2009 |
130 sample words all 5 letters in length for CAPTCHA codes. (It is recommend that you create your own for better security.)
| Platforms: |
Web Based |
| Category: |
classes |
| License: |
GNU General Public License |
| Date: |
October 19, 2009 |
GD Star Rating
loading...
Originally posted 2009-10-19 11:10:30.
Popularity: 9%
Posted by natster @ 19 August 2010