jqueryexample.com reCAPTCHA - CAPTCHA control for handling form SPAM - jqueryexample.com

reCAPTCHA – CAPTCHA control for handling form SPAM by jqueryuser


Recently I used a free utility reCAPTCHA in my website contact form. The commonly accepted approach of handling form SPAM is by using a CAPTCHA control on your forms. reCAPTCHA helps prevent automated abuse of your site

Below are step-by-step instructions for integrating reCAPTCHA in your CI app.

  • Create a reCAPTCHA account
  • Download the reCAPTCHA PHP library
  • Use the library in your project

To change the theme and other options, simply create a dictionary called RecaptchaOptions in a script-tag:

var RecaptchaOptions = {
   theme: 'clean'

<div id="recaptcha_container">
<label for="recaptcha_response_field">Enter the two words below:</label>
<input type="text" id="recaptcha_response_field" 
name="recaptcha_response_field" />
    <div id="recaptcha_image"></div>
<p>Choose captcha format:
<a href="javascript:Recaptcha.switch_type('image');">
or <a href="javascript:Recaptcha.switch_type('audio');">Audio</a> </p>
    <input type="button" id="recaptcha_reload_btn" value="Get new words"
onclick="Recaptcha.reload();" />

<script type="text/javascript"

<iframe src="http://api.recaptcha.net/noscript?k=INSERT_KEY_HERE">
width="500" frameborder="0"></iframe>
<textarea name="recaptcha_challenge_field" rows="3" cols="40">
<input type="hidden" name="recaptcha_response_field"
 value="manual_challenge" />

Absolutely, the reCAPTCHA website has detailed instructions for how to alter the look and feel of the reCAPTCHA form control.


Did you like this? Share it:


No comments yet, be the first.

Leave a Comment