dear all,
I am trying to put a captcha on my site. I already have public key and
secret key from google. I already put the public key on my html and
secret key on the server respond site. But when I ran it, I got an
error, For security reasons, you must pass the remote ip to reCAPTCHA at
respond.pl line 66.
the CPAN library used is
Captcha::reCAPTCHA;
the line 66 (respond.pl) is
my $result = $c->check_answer(
"xxx123", $ENV{'REMOTE_ADDR'},
\$challenge, $response
);
if ( $result->{is_valid} ) {
print "Yes!";
} else {
# Error
print "No";
}
please help.
thx.