ReCaptcha multiple times on one page

9,592 views
Skip to first unread message

sportlogics.com

unread,
Aug 7, 2011, 7:12:32 PM8/7/11
to reCAPTCHA
ReCaptcha fails to display more than once on the same page.

I am able to successfully use ReCaptcha in my jsp/Java/Struts app.
However, when the generated script is used more than once (as in login
+ registration), the second one does not appear.

A generated script looks like this:

<script type="text/javascript" src="http://api.recaptcha.net/
challenge?k=my-public-key"></script>

Does anyone have a solution for this?

Regards,
Ben

Dom Sekotill

unread,
Aug 7, 2011, 8:55:38 PM8/7/11
to reca...@googlegroups.com
Put the login and registration on one form and use one recaptcha. But why do
you need a captcha on a login form?

--
On 08/08/2011, sportlogics.com wrote;

dagasonhackason

unread,
Oct 8, 2012, 9:49:47 PM10/8/12
to reca...@googlegroups.com, b...@sportlogics.com
Some hackers use brut force attack to hack logins by programming a bot by them selfs to try passwords from the combinations of a, a*, a**, a***... a# thus starting form one character then two then three trying all possible characters till the password of that user is made up by the computer changing its ip after setting number of times then it will login into that users account.So u see captcha some what prevents the hackers from using this dealy unpreventable technique from hacking your site since the capture must also be answered correctly b4 the bot can by pass the login page correctly at every instance of the bot trying a made up password.So U MUST USE CAPTCHA ON YOUR LOGIN PAGES OR HACKERS WILL EASILY BREAK INTO UR SITE, who knows what could be compromised? may the users of your site credit card details.

dagasonhackason

unread,
Oct 8, 2012, 10:08:35 PM10/8/12
to reca...@googlegroups.com, b...@sportlogics.com
as for the reCAPTCHA i tried using jquery to duplicate the innerhtml of the div containing the reCAPTCHA and it work perfectly:

<!-- FIRST OR MAIN reCAPTCHA -->
<div id="myrecap">
   
<?php
        require_once
('recaptchalib.php');
        $publickey
= "XXXXXXXXXXX-XXXXXXXXXXX";
        echo recaptcha_get_html
($publickey);
   
?>

</div>

<!-- SECOND POINT WERE RECAPTURE IS NEED -->
<div id="myraterecap"></div>

<!-- THIS IS THE JQUERY SCRIPT -->
<script type="text/javascript">

/*remember to include jquery before adding this code*/

$
(document).ready(function() {
   
// Duplicate our reCapcha
    $
('#myraterecap').html($('#myrecap').clone(true,true));
});

</script>

Dom Sekotill

unread,
Oct 9, 2012, 4:32:28 AM10/9/12
to reca...@googlegroups.com
There are far better ways of stopping brute force attacks, even if they come from different IP addresses. It would take far too long for a bot to try every combination of characters so they try just a few common passwords. A much better way of stopping these attacks is to enforce a good password policy on your users.

A user account should be validation of humanity in itself, a captcha should be validation for anonymous submissions. You will drive your users away if you over-use captchas of any kind.

Dom


On 09/10/12 02:49, dagasonhackason wrote:
Some hackers use brut force attack to hack logins by programming a bot by them selfs to try passwords from the combinations of a, a*, a**, a***... a# thus starting form one character then two then three trying all possible characters till the password of that user is made up by the computer changing its ip after setting number of times then it will login into that users account.So u see captcha some what prevents the hackers from using this dealy unpreventable technique from hacking your site since the capture must also be answered correctly b4 the bot can by pass the login page correctly at every instance of the bot trying a made up password.So U MUST USE CAPTCHA ON YOUR LOGIN PAGES OR HACKERS WILL EASILY BREAK INTO UR SITE, who knows what could be compromised? may the users of your site credit card details.
--
You received this message because you are subscribed to the Google Groups "reCAPTCHA" group.
To view this discussion on the web visit https://groups.google.com/d/msg/recaptcha/-/WJ9EgDP_oxoJ.
To post to this group, send email to reca...@googlegroups.com.
To unsubscribe from this group, send email to recaptcha+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/recaptcha?hl=en.

Reply all
Reply to author
Forward
0 new messages