Making Captcha in Codeigniter
Hello Web Developers .., on this holiday we will try to make a Captcha in Codeigniter, this method is the easiest way because it is very simple but very useful. Most captcha tutorials with codeigniter that I found on google, use complicated ways and are too complicated to use. Here we will try the easiest way.
First, let’s get acquainted a little with Captcha.
The term “CAPTCHA” (derived from the English word “capture”) was coined in 2000 by Luis von Ahn, Manuel Blum, Nicholas J. Hopper (all from Carnegie Mellon University), and John Langford (IBM). This term is an English acronym for “Completely Automated Public Turing test to tell Computers and Humans Apart”.
CAPTCHA or Captcha is a form of challenge-response test used in computing to ensure that answers are not generated by a computer.
Examples are as follows:
Captcha example, source: wikipedia
Its use is usually to prevent SPAM, so to ensure that the person filling out the form is a challenge in the form of a code (captcha) that must be typed by the user (not the machine).
Captcha on Codeigniter
Okay, let’s just apply it in codeigniter.
Please note that in this tutorial we are still using pure codeigniter that has not been set before.
First, create a captcha folder, its location is parallel to the system and application folders, setting CHMOD to 777 or 666.
After that create a controller named registration.php, and write the following script.
Leave a Reply