CAPTCHA protection to your web site

How to add CAPTCHA protection to your web site

This article describes what CAPTCHA protection is, when you might use it, and some implementations for various programming languages that you can add to your own web site.


A CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) is a test that tries to determine if a user is a human or a computer. The most common type of CAPTCHA is an image of obscured letters or numbers displayed in a box. A user must type the letter or number sequence correctly before he or she can access web site content or submit data. Because automated bots usually cannot read these images, they are prevented from misusing a web site's resources.

The following image is an example of a common type of CAPTCHA:

Example CAPTCHA image


You should consider adding CAPTCHA protection to your web site if it has any of the following:

  • Forms that process user-submitted data, including e-mail forms, comment forms, and registration forms.
  • Surveys or polls.
  • Pages that accept file uploads or downloads by users.
  • Any other pages that accept user-submitted data.


There are several free and open source CAPTCHA implementations available, depending on the programming language that your web site uses.


These are some of the numerous CAPTCHA implementations available for PHP:


The service listed above for PHP also has a Python implementation. For more information, please visit

  • 727 Users Found This Useful
Was this answer helpful?

Related Articles


Definitions1.Content management systems (also called CMS) include Wordpres, joomla, Drupal...

 Non-HTTPS Sites Labeled “Not Secure”

Does your site have SSL??By January 31st 2017, version 56 of the Chrome web browser had been...

 Why you MUST update your website regularly

Your website is your virtual building on the cyberspace. It needs care and maintenance just like...


This is a very rampant attack today. This is the fraudulent practice of sending emails purporting...

 How to protect your website from hackers

Easy Steps that Protect Your Website From Hackers Keep platforms and scripts up-to-date One of...