Simple Captcha Code In Php Free Download
Securimage PHP Captcha. Browse source, contribute, or download on GitHub. Enjoying Securimage? Contribution is $3 USD but any amount is appreciated. Donation is not required as Securimage is, and always will be free & open-source. Thank you for your support. I have been looking for good “Captcha”-related programming for a. Jan 20, 2016 Dismiss Join GitHub today. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Simple Captcha Code In Php Free Download Free
Mar 12, 2013 There are basically 3 types of captcha first one and widely used is image captcha, second is mathematical captcha and last one is vice captcha. In this tutorial you will learn how to generate and use image captcha using php. First generate captcha image. Here is php code to generate image with random code. Save it as captcha.php. Internet Captcha is designed to protect your html forms where users send information to others users or databases. With this captcha only human can complete the security code and only a human will be able to use your web page. The Internet Captcha is free to put in your web, it have a configurator to define the view and a lot of visual effects.
Description
Really Simple CAPTCHA does not work alone and is intended to work with other plugins. It is originally created for Contact Form 7, however, you can use it with your own plugin.
Note: This product is “really simple” as its name suggests, i.e., it is not strongly secure. If you need perfect security, you should try other solutions.
How does it work?
Really Simple CAPTCHA does not use PHP “Sessions” for storing states, unlike many other PHP CAPTCHA solutions, but stores them as temporary files. This allows you to embed it into WordPress without worrying about conflicts.
When you generate a CAPTCHA, Really Simple CAPTCHA creates two files for it; one is an image file of CAPTCHA, and the other is a text file which stores the correct answer to the CAPTCHA.
The two files have the same (random) prefix in their file names, for example, “a7hk3ux8p.png” and “a7hk3ux8p.txt.” In this case, for example, when the respondent answers “K5GF” as an answer to the “a7hk3ux8p.png” image, then Really Simple CAPTCHA calculates hash of “K5GF” and tests it against the hash stored in the “a7hk3ux8p.txt” file. If the two match, the answer is confirmed as correct.
How to use with your plugin
Note: Below are instructions for plugin developers.
First, create an instance of ReallySimpleCaptcha class:
You can change the instance variables as you wish.
See really-simple-captcha.php if you are interested in other variables.
Generate a random word for CAPTCHA.
Att promo codes free activation. Generate an image file and a corresponding text file in the temporary directory.
Then, show the image and get an answer from respondent.
Check the correctness of the answer.
Simple Captcha Example
If the $correct is true, go ahead. Otherwise, block the respondent — as it would appear not to be human.
And last, remove the temporary image and text files, as they are no longer in use.
That’s all.
If you wish to see a live sample of this, you can try Contact Form 7.
Installation
In most cases you can install automatically from WordPress.
However, if you install this manually, follow these steps:
- Upload the entire
really-simple-captcha
folder to the/wp-content/plugins/
directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
FYI: There is no “control panel” for this plugin.
Real Simple Captcha
FAQ
Really Simple CAPTCHA needs GD and FreeType library installed on your server. Ask your server administrator if they are installed.
Also, make the temporary file folder writable. The location of the temporary file folder is managed by the instance variable tmp_dir
of ReallySimpleCaptcha class. Note that the setting varies depending on the calling plugin. For example, Contact Form 7 uses wp-contents/uploads/wpcf7_captcha
as the temporary folder basically, but it can use different folder depending on your settings.
If you have any further questions, please submit them to the support forum.
Reviews
This is the official GitHub project from code.google.com/p/cool-php-captcha
This project generates friendly captcha images. This project provides the SimpleCaptcha class.Some fetures are: Background and foreground colors, dictionary words, non-dictionary random words, blur, shadows, JPEG and PNG support.
Basic example
.. will output an image, for example:
You can validate the php captcha with: (case-insensitive version)
You can see a live example here: http://joserodriguez.cl/cool-php-captcha
More examples
Background and foreground colors, dictionary words, non-dictionary random words, blur, shadows, JPEG and PNG support: