Stop Spam,
Read Books
This module is an alternative for the default Gallery2 captcha component.
ReCaptcha G2 module uses the reCAPTCHA API for Carnegie Mellon University.
the current v0.4 is a beta !
for more info, you can check:
Protect your gallery for spam comment and brute force attack on your login.
if your gallery has multiple domain names, activate the plugins through each of them.
an option to deactivate the reCaptcha validation on login page.
v0.4 Version 0.4 contains a couple of minor bugs which results in PHP notices filling the apache error log. The notices look like this :
[Sun Jun 01 17:04:40 2008] [error] [client 192.168.1.100] PHP Notice: Use of undefined constant recaptcha - assumed 'recaptcha' in /var/www/html/gallery/modules/recaptcha/classes/ReCaptchaValidationPlugin.inc on line 75 [Sun Jun 01 17:04:40 2008] [error] [client 192.168.1.100] PHP Notice: Undefined variable: error in /var/www/html/gallery/modules/recaptcha/classes/ReCaptchaValidationPlugin.inc on line 75
This is caused by an old array syntax which you can read about here : [http://us2.php.net/types.array] and an undefined “$error” array.
Here is a patch that fixes these bugs :
59c59 < #$form[recaptcha-error] = $resp-> error; --- > #$form['recaptcha-error'] = $resp-> error; 68a69 > $error = array(); 75c76 < $form[recaptcha]=recaptcha_get_html($publickey, $error); --- > $form['recaptcha']=recaptcha_get_html($publickey, $error);