reCAPTCHA

Protect your site from spam and abuse with a reCAPTCHA.

This is reCAPTCHA integration plugin for Cotonti -- another member of the happy family of CAPTCHA plugins serving security of your websites.

reCAPTCHA v2 is currently supported.

Authors: esclkm, Andrey Matsovkin, Kalnov Alexey

Github: https://github.com/Cotonti-Extensions/recaptcha

 

#1. Requirements

Version for Cotonti Siena:

Just download it here and install the plugin.

Version for Cotonti Genoa:

Download here.

This plugin is recommended for use with CAPTCHA Manager. However, it can be used as a single CAPTCHA solution for the website.

 

#2. Installation

  1. Unpack to your plugins folder
  2. Install the plugin in AdminCP
  3. Visit https://developers.google.com/recaptcha to obtain reCAPTCHA keys and get detailed info
  4. Configure the plugin (don't forget to add the keys!)
  5. Add tags to users.register.tpl: {USERS_REGISTER_VERIFYIMG}, to comments.tpl: {COMMENTS_FORM_VERIFY_IMG}, to contact.tpl: {CONTACT_FORM_VERIFY_IMG}

 

#3. Developers API

Use this function to generate CAPTCHA in your extensions:

$t->assign([
  'SOMETHING_CAPTCHA' => cot_captcha_generate(),
]);

Then check CAPTCHA on form processing:

$response = cot_import('g-recaptcha-response', 'P', 'TXT');
if (!cot_captcha_validate($response)) {
  cot_error('recaptcha_verification_failed', 'response');
}

 

Example:


1. Macik  7. Oktober 2009, 02:18
Is it a bug?

File "recaptcha.validate.php":
Line 24:
Code: require_once(sed_langfile('captcha'));

I think it must be like this: require_once(sed_langfile('recaptcha'));

PS: Thank you for a plugin.
2. Macik  29. November 2011, 16:30

Version fixed for Siena with Captcha Manager here:  http://www.cotonti.com/datas/users/recaptcha_siena_461.zip

 

Nur registrierte Benutzer können Kommentare schreiben