Login   Register  
PHP Classes
elePHPant
Icontem

HN CAPTCHA

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Horst Nogajski
Name: Horst Nogajski <e-mail contact>
Packages: 7 Browse all classes by Horst Nogajski Browse all classes by
Country: Germany Germany - PHP jobs in Germany
Age: 44
All time rank: 435 in Germany Germany
Week rank: 473 Down18 in Germany Germany Down
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download .zip .tar.gz  
This class generates a picture to use in forms that perform CAPTCHA test (Completely Automated Public Turing to tell Computers from Humans Apart). After the test form is submitted a key entered by the user in a text field is compared by the class to determine whether it matches the text in the picture.

The class is a fork of the original released also in this site by Julien Pachet with the name ocr_captcha.

The following enhancements were added:

- Support to make it work with GD library before version 2
- Hacking prevention
- Optional use of Web safe colors
- Limit the number of users attempts
- Display an optional refresh link to generate a new picture with a different key without counting to the user attempts limit verification
- Support the use of multiple random TrueType fonts
- Control the output image by only three parameters: number of text characters and minimum and maximum size preserving the size proportion
- Preserve all request parameters passed to the page via the GET method, so the CAPTCHA test can be added to existing scripts with minimal changes
- Added a debug option for testing the current configuration

All the configuration settings are passed to the class in an array when the object instance is initialized.

The class only needs two function calls to be used: display_form() and validate_submit().

Optional-Class-Extensions:
hn_captcha_X1: add a garbage collector (for 'lost' images) to main class.

Since 24 December 2007, there are different classfiles for PHP 4 and PHP 5, ( merry x-mass <<<-| )

  Classes of Horst Nogajski  >  HN CAPTCHA  >  Download .zip .tar.gz  >  Support forum Support forum (19)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: HN CAPTCHA
Base name: hn_captcha
Description: Generate a form or formpart with a CAPTCHA picture
Version: 1.5.0
PHP version: 4.1.0
License: GNU Lesser General Public License (LGPL)
All time users: 14529 users
All time rank: 51
Week users: 1 user
Week rank: 2151 Down
 
  Groups   Screenshots Screenshots   Freshmeat project   Rate classes User ratings  
  Trackback   Applications   Related links   Files Files  

  Groups  
Group folder image HTML HTML generation and processing View top rated classes
Group folder image Graphics Colors, images, charts and picture formats View top rated classes
Group folder image Validation Validation algorithms View top rated classes
Group folder image Security Security protection and attack detection View top rated classes

  Files folder image Screenshots  
File Role Description
Files folder imagehn_captcha (1 file)

  Screenshots  /  Files folder image hn_captcha  
some example images
File Role Description
  Accessible without login Image file example_images.jpg Screen some example images


  Freshmeat project  
HN CAPTCHA
Project record: hn_captcha
Popularity score: 41.47
Vitality score: 57.65

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (93.9%)
Good (91.8%)
-
Good (87.1%)
-
-
Sufficient (64.9%)
487
Month:
Not yet rated by the users

  Trackback links  
Link Description
14 Must Have Tools and Resources for Web Designers If you are just starting to shape up as a web designer this post may come in handy as this post has some really cool stuff which are “a must have” for young web designers/developers like you and me...
Adiós al Spam en wordpress.. cueste lo que cueste.. Harto me tenían ya con tanto spam, me pasaba al día más o menos unos 5-10 minutos eliminando comentarios de spam...
Bye bye, Captcha Captcha! was my 2nd plugin...
Captcha enabled! Now, you don’t have to register in order to be able to post comments. I managed to install Boriel’s plug-in, based on HN Captcha PHP class...
GeoAddress - WordPress Plugin 1.0 GeoAddress ist ein WordPress-Plugin zum Erstellen einer Kontakt-/Adressliste die in einer Google-Map mittels Markern dargestellt werden kann...
GeoAddress - WordPress Plugin 1.0 with Easy Google Map Class Firma Konrad Priemer had developed a Wordpress Plugin named GeoAddress w/ the integration of EasyGoogleMap and HN Captcha...
Synergos Design Right now, you have to fill out two forms in order to contact us which is quite annoying. If anybody knows how to integrate the hn_captcha class with forms, please let me know...
Wordpress Captcha (antispam) Akismet is cool, it really works great, but to really reduce comment spam you need Captcha !...
Wordpress Plugins/Spam Tools Various types of spam plugins exist...

  Applications that use this class  
Link Description
Nucleus CMS Nucleus is a Content Management System (CMS): a powerful set of PHP scripts that allow you to maintain one or more weblogs or online journals.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
Online Demo an online demo-script
Fonts.zip Put the files with subdir into the hn_captcha-folder, then the examples should work directly!
divide by zero | Tom 7 Tom 7 has created very nice TrueType-Fonts. They are not under (L)GPL, but also free. Please read his License. Thank you Tom!
freewareguide.de ... is a very good german Freeware List. Currently are 3 packages available each containing about 14 Fonts and there is also a Linklist to other Font-Sites.

  Files folder image Files  
File Role Description
Files folder imagehn_captcha (10 files)

  Files  /  Files folder image hn_captcha  
File Role Description
  Plain text file hn_captcha.class.php Class switch to main class PHP 4 / 5
  Plain text file hn_captcha.class.php4 Class Main Class for PHP 4
  Plain text file hn_captcha.class.php5 Class Main Class for PHP 5
  Plain text file hn_captcha.class.x1.php Class switch to extension class PHP 4 / 5
  Plain text file hn_captcha.class.x1.php4 Class class extension that add a garbage collector to main class
  Plain text file hn_captcha.class.x1.php5 Class class extension that add a garbage collector to main class
  Plain text file hn_captcha.example.php Example Example for the main class
  Plain text file hn_captcha.example_formpart.php Example an example how to use the captcha test with existing Forms.
  Plain text file hn_captcha.example_formpart2.php Example another example of usage with existing forms
  Plain text file hn_captcha.x1.example.php Example Example for the garbage collector extension

Download all files: hn_captcha.tar.gz hn_captcha.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.