We are running some tests in our servers and the recaptcha it does
work, we are testing it with a simple html form:
<body>
<form method='post' action="
http://api-verify.recaptcha.net/verify">
privatekey<input name="privatekey" type="text" value="" size="250" />
remote ip<input name="remoteip" type="text" value="" size="250" />
challenge<input name="challenge" type="text" value="" size="250" />
response<input name="response" type="text" value="" size="250" />
<p><input type="submit" id="enviar"value="Send"></p>
</form>
</body>
So, with this we disscard the DNS problem, right? the recaptcha is not
working only with the Java library, any sugestion?
This is part of our Java code:
private boolean validcaptcha(HttpServletRequest
request,HttpServletResponse response){
String challenge =
request.getParameter("recaptcha_challenge_field");
String resp =
request.getParameter("recaptcha_response_field");
String remoteAddr = request.getRemoteAddr();
ReCaptchaImpl reCaptcha = new ReCaptchaImpl();
// *** YOU MUST PROVIDE YOUR PRIVATE KEY HERE ***
// Probably don't want to hardcode your private key here
but just to
// get it working is OK...
reCaptcha.setPrivateKey("OUR PRIVATE KEY");
ReCaptchaResponse reCaptchaResponse =
reCaptcha.checkAnswer(remoteAddr, challenge, resp);
boolean valid = reCaptchaResponse.isValid();
if (!valid){
Log lgCap = new Log();
Exception exmayo
= new Exception("Error del recaptcha: .." +
reCaptchaResponse.getErrorMessage() +
" challenge: '" +
challenge + "' " +
" response: '" +
resp + "' ip: '" +
remoteAddr + "'.. ");
lgCap.writeLog(exmayo);
}
return valid;
// String path = null;
// if (!valid) {
// path = "/PagosZ/registro";
// session.setAttribute("error","Error al verificar
imagen !!!!");
// }
// try {
// response.sendRedirect(path);
// } catch (IOException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// }
}
Cheers, Robert.
On May 7, 8:28 am, Roberto <
swino...@gmail.com> wrote:
> But, even if we logged in into the server and navigate to some servers
> of Google? by the way, we tested the recaptcha manually (javascript
> disabled) and it does work, the problem only affect only the normal
> way. So, the problem could be being the DNS?
>
> Cheers
>
> On May 6, 8:03 pm, reCAPTCHA Support <
supp...@recaptcha.net> wrote:
>
>
>
> > This means your DNS hasn't updated to the new servers. You are making a
> > request to the old verification servers, which is unable to parse the
> > updated cookies.
>
> > - Ben
>
> > On Thu, May 6, 2010 at 8:05 PM, Roberto <
swino...@gmail.com> wrote:
> > > Hi guys, recently the recaptcha service stop working in our site. Soon
> > > we discovered that the Recaptcha Team sent us a few emails warning us
> > > about the problem and advising us to change the old IPs for the new
> > > ones (
http://ws.arin.net/whois/?queryinput=google).
>
> > > After we discovered that the recaptcha stop working in our website, we
> > > updated the IPs in our firewall but now, the recaptcha still not
> > > working. We updated the old IPs (old recaptcha servers) for the new
> > > oneshttp://
ws.arin.net/whois/?queryinput=google(googleservers, yes,