CAPTCHA is incorrect every time?

468 views
Skip to first unread message

0gb.us

unread,
Mar 30, 2012, 5:55:59 AM3/30/12
to reCAPTCHA
<!-- Beginning of reCaptcha -->
<script type="text/javascript" src="http://www.google.com/recaptcha/
api/challenge?k=6Lep98kSAAAAAKcpeIXz-4TwxVCktIQufZ5YWMyK"></script>
<script type="text/javascript" src="http://www.google.com/recaptcha/
api/js/recaptcha.js"></script>
<div id="recaptcha_widget_div" style="display:none"></div>
<script type="text/javascript">Recaptcha.widget = Recaptcha.$
("recaptcha_widget_div"); Recaptcha.challenge_callback();</script>
<noscript>
<div><object data="http://www.google.com/recaptcha/api/noscript?
k=6Lep98kSAAAAAKcpeIXz-4TwxVCktIQufZ5YWMyK" height="300" width="500"></
object><br/>
<textarea name="recaptcha_challenge_field" rows="3" cols="40"></
textarea>
<input type="hidden" name="recaptcha_response_field"
value="manual_challenge"/>
</div></noscript>
<!-- End of reCaptcha -->

Using the code above, the CAPTCH always says the answer is false, when
JavaScript is enabled. But the JavaScript-free version works. Any
ideas?

PJH

unread,
Mar 30, 2012, 6:11:08 AM3/30/12
to reca...@googlegroups.com
That's the code that displays the captcha - the bit that's (ultimately) telling you it's wrong is the verification code, which you haven't posted.


--
You received this message because you are subscribed to the Google Groups "reCAPTCHA" group.
To post to this group, send email to reca...@googlegroups.com.
To unsubscribe from this group, send email to recaptcha+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/recaptcha?hl=en.




--
PJH


0gb.us

unread,
Mar 30, 2012, 5:42:14 PM3/30/12
to reCAPTCHA
The verification code should be fine, as it validates the non-
JavaScript version just fine. However, I have nothing to hide, so here
it is:

require '/Volumes/WebServer/Library/recaptchalib.php';
$privatekey = 'I removed the private key before posting, for
security reasons, but I checked it for accuracy three times.';
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);

if(!$resp->is_valid):
header('Location:
http://0gb.us/web/url-shortener.php?error=captcha&long='.urlencode($_POST['long']).'&short='.urlencode($_POST['short']));
die;
endif;


On Mar 30, 3:11 am, PJH <pauljherr...@gmail.com> wrote:
> That's the code that displays the captcha - the bit that's (ultimately)
> telling you it's wrong is the verification code, which you haven't posted.
>
>
>
>
>
>
>
>
>
> On Fri, Mar 30, 2012 at 10:55 AM, 0gb.us <0gb...@0gb.us> wrote:
> > <!-- Beginning of reCaptcha -->
> > <script type="text/javascript" src="http://www.google.com/recaptcha/
> > api/challenge?k=6Lep98kSAAAAAKcpeIXz-4TwxVCktIQufZ5YWMyK<http://www.google.com/recaptcha/%0Aapi/challenge?k=6Lep98kSAAAAAKcpeI...>
> > "></script>
> > <script type="text/javascript" src="http://www.google.com/recaptcha/
> > api/js/recaptcha.js<http://www.google.com/recaptcha/%0Aapi/js/recaptcha.js>
> > "></script>
> > <div id="recaptcha_widget_div" style="display:none"></div>
> > <script type="text/javascript">Recaptcha.widget = Recaptcha.$
> > ("recaptcha_widget_div"); Recaptcha.challenge_callback();</script>
> >        <noscript>
> >                <div><object data="
> >http://www.google.com/recaptcha/api/noscript?
> > k=6Lep98kSAAAAAKcpeIXz-4TwxVCktIQufZ5YWMyK<http://www.google.com/recaptcha/api/noscript?%0Ak=6Lep98kSAAAAAKcpeIX...>"

PJH

unread,
Mar 31, 2012, 5:26:47 AM3/31/12
to reca...@googlegroups.com
On Fri, Mar 30, 2012 at 9:42 PM, 0gb.us <0gb...@0gb.us> wrote:
> The verification code should be fine, as it validates the non-
> JavaScript version just fine. However, I have nothing to hide, so here
> it is:
>
>  require '/Volumes/WebServer/Library/recaptchalib.php';
>  $privatekey = 'I removed the private key before posting, for
> security reasons, but I checked it for accuracy three times.';
>  $resp = recaptcha_check_answer ($privatekey,
>                                $_SERVER["REMOTE_ADDR"],
>                                $_POST["recaptcha_challenge_field"],
>                                $_POST["recaptcha_response_field"]);

http://code.google.com/p/recaptcha/wiki/FAQ#I_keep_getting_%22incorrect-captcha-sol%22_even_though_I&#

--
PJH

Valpo Creative

unread,
Mar 31, 2012, 1:40:10 PM3/31/12
to reCAPTCHA
Actually chances are your response is correct, in addition the
unresolved/ignored issue regarding this alien-ware being impossible to
read for the human eye (I really do think recaptcha would be excellent
for aliens to lock out humans from the web), the latest issue, with
recaptcha is this message"Could not open socket"?? Now i cannot login
to my own account, i really can not wait until the world stops using
recaptcha, the web will be a much better user friendly place..

fyi: i assure everyone that i am not a robot, i am human.
Reply all
Reply to author
Forward
0 new messages