develooper Front page | perl.beginners | Postings from March 2018

captcha

Thread Next
From:
Eko Budiharto
Date:
March 5, 2018 04:44
Subject:
captcha
Message ID:
2d808bb2-87b7-c5a2-ada9-02b698191109@gmail.com
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.



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About