Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane */ $pathtofonts = "/captcha/fonts/"; //path from the root of the website /* //How to use this Captcha //Option1: add this to the html form
Please type the code you see from the image into the text box below.
//Option2: or add this to the html form
Please enter the text you see from the image below...
Click for a new image.

Can't read the image text? Click the image for a new one.

//add this to the top of the page where the form is submitted to //--- begin captcha verification --------------------- //ini_set("session.cookie_httponly", True); session_start(); //make sure sessions are started if (strtolower($_SESSION["captcha"]) != strtolower($_REQUEST["captcha"]) || empty($_SESSION["captcha"])) { echo " Sorry!\n"; //echo "

\n"; //echo "\n"; //echo " Your e-mail was NOT sent.\n"; echo "

\n"; echo " Error: Captcha Image Verification Failed
\n"; echo " \n"; echo "

\n"; echo " Try Again?"; exit; } else { //echo "verified"; } //--- end captcha verification ----------------------- //notes A diverse collection of unique fonts can improve the captcha. If bots get past the captcha try changing fonts. Ideas that may be implemented in the future... 1. randomize the background with texture, color and/or gradient 2. distort the image 3. rotate the characters with different rotations. 4. use audio, svg, or flash //additional fonts can be obtained from http://simplythebest.net/fonts/ http://www.1001freefonts.com/afonts.htm //Usefull Links http://sam.zoy.org/pwntcha/ http://en.wikipedia.org/wiki/Captcha */ ?>