Closed (fixed)
Project:
reCAPTCHA
Component:
reCAPTCHA Service
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
30 May 2007 at 18:56 UTC
Updated:
6 Sep 2007 at 18:12 UTC
My only concern with reCAPTCHA is that users will not be able to access areas with a captcha if recaptcha.net is unavailable ("Could not open socket"). In this case, it would be smart for recaptcha.module to be able to roll back to a different captcha that has no dependency on an external site.
This is the idea:
// verify recaptcha.net exists
$connect = @fsockopen($recaptcha_api_server, 80);
if (!$connect) continue;
} else {
watchdog('recaptcha', "Could not connect to recaptcha.net.");
return;
}
}
if (! $connect)
// roll back to default captcha setting
Comments
Comment #1
robloachI like the idea, any clue how to "roll back" to a different captcha setting?
Comment #2
robloachI'll try out some stuff tonight and see what I can come up with.
Comment #3
moshe weitzman commentedmaybe roll back to a math test
Comment #4
Christefano-oldaccount commentedrecaptcha.net is down at the moment which is bad for my captcha-enabled forms. I'm not marking this bug as critical since recaptcha.module can only work as well as the service it depends on.
Comment #5
Christefano-oldaccount commentedPerhaps this will be possible with the new
captcha_pointstable that soxofaan proposes in his captcha rewrite at http://drupal.org/node/153395Comment #6
robloachGot it working! Commit 78315 checks if the server is up before displaying. If it isn't, it rolls back to Math.
Comment #7
robloachComment #8
Christefano-oldaccount commentedThanks, Rob!
Comment #9
kthagen commentedCommitted to 4.7
Comment #10
(not verified) commented