Ðóññêèé | English

ProfiCaptcha 0.5

Download CAPTCHA PHP-Script (v. 0.5.0.1) - ProfiCaptcha.zip
EXAMPLE - example/form.html

(c) Leontyev Valera (Profigroup Company), 2007—2008

Contents

  1. About script.
  2. Licence.
  3. Installation and use.
  4. Links.

About the script

CAPTCHA is an abbreviation of the English words "Completely Automatic Public Turing Test to Tell
Computers and Humans Apart" - fully automatic Ai to differentiate computers and people. In other
words, it is a task which can be easily solved by human and extremly hard to solve with the
computer methods.

CAPTCHA used to prevent automated registration and data sends. CAPTCHA used for spam protection,
flood protection and seizure of accounts.

Most CAPTCHAs looks like the picture of some numbers, words, legends with special image noise,
which user still can read and approve.

ProfiCaptcha is PHP script for a site inspection at the visitor "human face" to protect against
spam and robots. The format is inserted image generated script, which shows symbols. Picture
immune robots recognition. User reading figures in the picture and puts them in the field of the
form. Form processing script checks for a user code in the special session variable. If the code
is not found, error code returned and the proposal would appear again.

Developers: Alexander Sukach, Valery Leontiev (feedbee@gmail.com)
The 0.1 version was developed by Alexander Sukach. But it was rewiten at 90%.

Requirements: PHP5 with the GD and FreeType libraries and included support for standard sessions.

Licence: BSD

Copyright (c) 2007—2008, Leontyev Valera (Profigroup Company)
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted
provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Installation and use

You need to do the following steps to integrate script in your site:

  1. Unpack archive of the script.
  2. Open file ShowCaptcha.php in text or PHP editor. Make the changes you need in the "Settings" section.
  3. Load all the files on your server (recommended in a separate folder).
  4. Insert images and field to enter the code into your HTML form on the site (see example).
  5. In serving form script insert lines to test entered code. The code should present in the array $_SESSION[SESSION_KEY] where SESSION_KEY is constant (set in script setup (by default:"VeryficationNumber", i.e. array $_SESSION['VeryficationNumber'])).

The script can be customized. To do this, change options in file ShowCaptcha.php (all settings commented), and experiment with the results. In addition, you can change the background image and font files. The size of the resulting the image is the size of background picture. Script randomly selects a file images and the font file (for each symbol) from the directory specified in the settings. Background images must be in PNG, JPEG or GIF formats.

Links

Good luck!