WordPress Login ReCAPTCHA Plugin

This WordPress plugin will add reCAPTCHA to login page. Why use reCAPTCHA instead of other CAPTCHA? Because reCAPTCHA is a powerful CAPTCHA.

Screenshot :

Wordpress Login reCAPTCHA
WordPress Login reCAPTCHA

Installation :

  1. You should register on reCAPTCHA site first.
  2. Go to your wp-admin page, check under “Settings” menu.
    There is a “WP Login reCAPTCHA” menu.

    Menu (WordPress Login reCAPTCHA)
    Menu (WordPress Login reCAPTCHA)

    Click that link and set your reCAPTCHA public key and private key.

    Wordpress Login reCAPTCHA
    WordPress Login reCAPTCHA

    Do not enter wrong public and private keys.

To download the plugin, go to official WordPress.org plugin page, and click “Download” link there :
https://wordpress.org/plugins/wp-login-recaptcha/

Enjoy this plugin. ๐Ÿ˜€

Join the Conversation

66 Comments

  1. plugin must be installed first…
    After we’ve got the keys where we write them on plugin????
    I can’t find any instructions.
    Regards

  2. @VManu and Ze Povinho : you cand set the keys on your wp-admin after you have installed WP-reCAPTCHA plugin. I have put more instruction above ๐Ÿ™‚

  3. why do you need recatcha when trying to login into your site?
    is it recatcha more for user registration or password request?

  4. @mp : halo pak, lihat di API reCAPTCHA nya ๐Ÿ™‚

    @erwin : do you know there are bots (script / software) that can try to login to your website automatically? Without CAPTCHA, bots can try to login to your site. Do you want your admin page to be broken?

    Therefore IMHO you should put CAPTCHA in your login form.
    CAPTCHA defeats that kind of bots.

    Yes, on user registration and password request pages actually CAPTCHA is needed too ๐Ÿ™‚

    1. Hi there..

      My current blog runs on 3.0.1 and this plugin is working.

      Can you specify what did you mean with “not working”?

      Have you installed WP-reCAPTCHA plugin first? ๐Ÿ™‚
      Have you entered the correct reCAPTCHA Public & Private keys? ๐Ÿ™‚

      Let me know and i will help.

  5. 1st I want to thanks for this great addon.

    I’ve install the login reCAPCHA plugins,
    but somehow my website using classipress themes.
    it does have custom login page so the login reCAPCHA does not appear on the login page.
    How can I manually add the reCAPCHA to that custom login form?
    thanks.

    1. Hi Mega Sale.

      You should know the place of the custom login page, and open the wp-login-recaptcha.php file, next add a line after this line

      add_action(‘login_form’,’xrvel_login_recaptcha_form’);

      Example of added line :
      add_action(‘custom_login_form’,’xrvel_login_recaptcha_form’);

      So it will become

      add_action(‘login_form’,’xrvel_login_recaptcha_form’);
      add_action(‘custom_login_form’,’xrvel_login_recaptcha_form’);

    1. Pada umumnya kode verifikasi diperlukan untuk menghindari serangan bot / robot / orang “jahat”. ๐Ÿ™‚

      Nah salah satu bentuk kode verifikasi adalah dengan gambar, seperti yang ada di reCAPTCHA.

    1. Hello Rabby,

      Okay it happens because :
      1) you entered wrong captcha guess, or
      2) you have not entered (have not configured) reCAPTCHA API key / Secret
      3) you entered wrong reCAPTCHA API key / Secret

      You should reconfigure your reCAPTCHA option from admin page.

      To disable the login reCAPTCHA plugin, from your file manager, open wp-login-recaptcha.php file in your plugin directory.
      Next, find this line.

      define('XRVEL_LOGIN_RECAPTCHA_ENABLED', true);

      Change it into

      define('XRVEL_LOGIN_RECAPTCHA_ENABLED', false);

      Save it. Now the reCAPTCHA is disabled on login page.

  6. Genuinely great plugin. I have been looking for a way to add Recaptcha to my login page for a while to increase security.

    I experienced a glitch however – an incompatibility or poor interaction between this plugin, WP ReCaptcha and Dagon Design Form Mailer ( http://tinyurl.com/errsu ). The result is that the form generated by the form-mailer is not visible. This means I cannot run both together. Given I rely on the form mailer I have had to disable WP Recaptcha and Login Recaptcha for now, which has fixed the problem. Perhaps both this and the form-mailer calling ReCaptcha is generating the problem? Any suggestions welcome.

  7. Hi Xrvel,
    why not make this plugin to work with comment form and registration? All-in-one captcha plugin can save server resources. There would be no need to seek other plugins.

  8. Xrvel, bro nice plugin, tapi kok setelah wa install, terus wa aktifin , gk ada menu baru buat setting plugin recapta, di menu setting or menu yang laen? ok thx

  9. I love you man, handling the 200 article submitssions daily was hard, and spammers happly added the recaptcha while they registered, hopefully recaptcha on login form will reduce the spam even more. If you should develop a recaptcha for publish that’d be even more awesome!

  10. Is therer any way to “resize” the width of the captcha box for the login page? As you can see on my site it extends far beyond the default width of the login form.
    Any assistance is appreciated. Great work on the plugin.

  11. Any way to make this work with buddypress? The sidebar login form does not show the CAPTCHA form nor does the user registration. Any ideas on how to make this work? Thanks.

  12. First, this plugin is great and I appreciate the hard work and contribution.
    I’ve been using it and it has been working great.

    However, just today I noticed I can’t login w/ Chrome simply because Chrome is choosing NOT to render the captcha login box. It doesn’t want to render the captcha comment boxes either (so the issue is not only w/ Login Recaptcha but w/ WP-Recaptcha plugin too). The captcha code is there when I do a view-source but the box is NOT rendered in Chrome. Firefox on the other hand doesn’t have a problem.
    Wondering if anyone has ever seen this before.

    Same issue as these guys here: http://wordpress.org/support/topic/plugin-wp-recaptcha-recaptcha-does-not-work-on-google-chrome?replies=2#post-1962945

    WP 3.1
    Latest Captcha plugins
    Chrome 10 beta

    Thanks!

    1. Hi there,

      Thanks for the report. I just tried that on this blog, i can see reCAPTCHA on comment box (i have just installed wp-reCAPTCHA again).
      I am using WP 3.1, latest wp-reCAPTCHA plugin, and chrome 7.

      Thanks.

      1. yeah – i’m going to have to try another version of Chrome. It’s def. NOT a problem w/ the plugins – but something is up w/ Chrome.
        Even the captcha on this site below is NOT showing up in my Chrome. Take a look at this screenshot. Chrome window has no Captcha above ‘Post Comment’ even though the ‘view-source’ window has Captcha in the code. Firefox window on right is perfect.
        http://img69.imageshack.us/img69/4746/sscaptcha.png

        Also, Have cleared out all browsing history on my Chrome and the usual stuff – didn’t help. Weird.

        Thanks.

  13. Just plugged it into my WP site and worked right off. Amazing what can be done if one just reads the directions!

    None the less, I searched around a little but can’t seem to locate how to change the color of the captcha after installation. So maybe I’m not so smart after all ๐Ÿ˜€ As you can see from my blog here http://www.ExcelREI.com, the colors just don’t seem to work.

    Any help you can offer would be great. Thanks for helping to eliminate at least one headache for me. Don

    1. Hi Don.

      Thanks for dropping by. I just added an option to change the reCAPTCHA color. Please update your plugin to the latest version ๐Ÿ™‚

      Kurniawan.

  14. Hi,
    I’m also using Classipress and tried to add the code suggested by you to Mega Sale

    add_action(โ€˜login_formโ€™,’xrvel_login_recaptcha_formโ€™);
    add_action(โ€˜custom_login_formโ€™,’xrvel_login_recaptcha_formโ€™);

    I could’nt understand the location of the custom login page to replace with custom_login_form. The custom Login page location is
    themes/classi/includes/theme-login.php
    So please tell me how the add_action(โ€˜custom_login_formโ€™,’xrvel_login_recaptcha_formโ€™); should look like.

    Thank you.

  15. I was testing recaptcha on my local host and applied for my API codes from there. Are these codes the same or do I need to reapply for new ones although I used the same 2bretired.com when I applied for them.

    Thanks Bob

  16. mas gambar captcha saya tidak mau muncul ada pesan error kaya gini
    [25-Nov-2011 04:46:46] PHP Warning: imagefontheight() expects parameter 1 to be long, string given in /home/hidecom/public_html/includes/libs/animatedcaptcha.class.php on line 236
    [25-Nov-2011 04:46:46] PHP Warning: imagefontwidth() expects parameter 1 to be long, string given in /home/hidecom/public_html/includes/libs/animatedcaptcha.class.php on line 272
    [25-Nov-2011 04:46:46] PHP Warning: imagefontwidth() expects parameter 1 to be long, string given in /home/hidecom/public_html/includes/libs/animatedcaptcha.class.php on line 274

    tolong mas bantuanx

  17. Very nice plugin my friend! I wish it were integrated into WP-reCAPTCHA so we could stop more annoying hack attempts & spam together. =)

  18. Seem to be a great plugging so well done. My problem is the log gin page takes 30-40 second to load. The username and password field appear immediately but the reCAPTCHA take, what feels like, forever.

    Any suggestions?

    Many thanks

    John

  19. Excellent WordPress plug-in, if you start making consistent updates and more security bugs reportable with fixed logs of bugs previous reported, being included within the plug-in’s package, I will start DONATING as often as you make considerable advances in the program. Possibly one of the best WordPress plugin available out the, especially for free-ninety free.

  20. Hi, I installed the plugin and it seems to be working fine – thank you for it!
    Although when I tested it severel times, it still let me log in to the site if I only missed 1 character. It only rejects the login attempt with at least 2 faild characters. Is this on purpuse?
    Thanks!

  21. Hi,
    After the latest update from WP-reCAPTCHA, your wonderful Login reCAPTCHA plugin had ceased to work.

    Pls help !

    tks.

  22. Hello,

    I can confirm that the latest version stopped working. From what I see in your options, saved as xrvel_login_recaptcha_options, I only had the theme but you are relying on the fact that the keys are there also.

    You also have the recaptcha options above, in the variable $ropt but you are not using them in any way.

    I got the captcha to appear again by adding something like

    if (empty($opt['secret']) && !empty($ropt['secret'])) {
    $opt = array_merge($opt, $ropt);
    $opt['secret_key'] = $opt['secret'];
    }

    but now I am getting the error message “Please pass reCAPTCHA verification” even if it’s this new type of captcha, that simulates a checkbox.

  23. Hi,
    I’m using jarida wordpress theme. I want to add reCaptcha to login widget in sidebar. Right now i am using Captcha plugin but this plugin not full fill my requirement.

  24. Sadly, after the update to WordPress 4.x.x every login attempt using this plugin fails. I have deactivated most other plugins to no avail (except Jetpack, Akismet).

    I’m sorry I can’t provide you with more info and maybe this is just a solitary case. Maybe not and you can find a way to fix it.

  25. Hi Xrvel
    Please include the feature of adding recaptcha for registration page as well , to make plugin complete.

Leave a comment

Your email address will not be published. Required fields are marked *