On Mon, 5 Mar 2018 11:43:48 +0700 Eko Budiharto <eko.budiha...@gmail.com> wrote:
> 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 > ); One would assume that $ENV{'REMOTE_ADDR'} is empty, but you haven't mentioned how you're actually running the code in question, so it's hard to tell you why / how to get it. So - how are you running this code? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/