PHP Tutorial: Protect your Website with CAPTCHA: Create your own: Part 1

5 months ago
7 Views



Learn how to protect your website from crawlers and SPAM robots. Create your own CAPTCHA using the PHP GD library. The Font used in this tutorial is called Anonymous Clippings and was obtained at dafont.com

http://www.dafont.com/anonymous-clippings.font

In this part we create the captcha class and declare all the static methods that we will be using. Also the font file was base64 encoded and was assigned to a variable in order to embed the font into the PHP file. This will make the captcha class portable.

GitHub Respository: https://github.com/DigitalPhantom/PHP-Captcha