Recaptcha Help
luster Offline
Junior Member
**
Posts: 1
Joined: Sep 2014
Post: #1
Recaptcha Help
for anti brute force protection

I am lost I can not integrate recaptcha into index_login page ?

1) in login_form ?

PHP Code:
1
2
3
4
5
6
7
<?php
require_once('recaptchalib.php');

$publickey = "public_key"; // you got this from the signup page

$recaptcha_code = recaptcha_get_html($publickey); 
?>

2) in member.php ?

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
<?php
  require_once('recaptchalib.php');
  $privatekey = "private_key";
  $resp = recaptcha_check_answer ($privatekey,
                                get_ip(),
                                $_POST["recaptcha_challenge_field"],
                                $_POST["recaptcha_response_field"]);

  if (!$resp->is_valid) {
    // What happens when the CAPTCHA was entered incorrectly
    error('Die bots!!!!');
  }


thx in advance

(This post was last modified: 11-17-2014 04:06 AM by luster.)
11-17-2014 03:55 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Recaptcha Help
Doesn't MyBB already support this feature?

I'm not sure what you're trying to do with that code anyway.

My Blog
11-17-2014 04:26 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: