Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[BetoPho] reCaptcha v3 Login Integration Details »»
[BetoPho] reCaptcha v3 Login Integration
Version: 1.1.0, by BetoPho BetoPho is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Anti-Spam Options - Version: 4.2.5 Rating:
Released: 07-03-2019 Last Update: 07-05-2019 Installs: 33
Supported Uses Plugins Template Edits Auto-Templates
 

There are several requests to make this around the forum, so I guess I would contribute one.

Product Information
Provide reCaptcha intergration for vBulletin 4's login process that can check for bots or unsafe traffics using Google's famous reCaptcha engine.

Main Features
  • Ultilizing reCaptcha v3 advantages: invisible checks that can determine how safe a user/traffic is, from very likely human to very likely bot, using reCaptcha's 'score' system.
  • Performing specific actions to unsafe users/traffics, reject the login or redirect to another URL.
  • Bad traffic users captured by the product will just be displayed with an invalid login screen.
  • Ability to exclude users that won't be checked by reCaptcha.
  • Lightweight and easy to configure.
  • Simple installation: Install - Get reCaptcha keys - Configure the action - Done.

Future Versions Planning
  • Expanding integration with other forum sections, like thread/post posting, PM, album, etc.
  • Expanding integration with other activities, like register, search, page viewing, etc.
  • Combining suport with reCaptcha v2, adding additional layer of human verification, for example, only when reCaptcha v3 detected likely unsafe traffic, verification form from v2 will show for the user to verify.
  • Admincp Dashboard to view all failed login attemps captured by reCaptcha.
  • Support for vBulletin 3 & 5.
  • You name it.

Details
  • Files upload: none
  • Plugins: 6
  • Templates: 3 (2 templates, 1 CSS template)
  • Phrases: 2

Instructions
  1. (Preparation) Have your reCaptcha v3 keys ready first. reCaptcha homepage.
  2. Import the product XML file using Product section.
  3. Go to Options > [BetoPho] reCaptcha Integration.
  4. Insert the keys first (this product won't work without the keys).
  5. Configure and start using.

Additional Instructions
  1. To check if automatic template works, after putting the keys and configuring everything, view the homepage source (with the login form) as a Guest user and search for this code:
    HTML Code:
    <input type="hidden" name="btp_rcaptcha_response" id="btp_rcaptcha_input">
    If found, it's good. If not found, it means you are using modified templates/style.
  2. In case it's not found, modify the template with the login form (usually 'header' template, might be other one depends on your style), search for the login form:
    HTML Code:
    action="login.php?do=login"
    When found, insert the product code in the #1 section into anywhere inside of the form. For example, it will look like this:
    Code:
    <form id="navbar_loginform" action="login.php?do=login" method="post" (other codes...)>
    ...
    <input type="hidden" name="btp_rcaptcha_response" id="btp_rcaptcha_input">
    ...
    </form>
    Then it will work.

Let me know if you have any questions or suggestions.
Thank you

Changelog
1.0.0 - Jul 05 2019
  • Initial Release
1.1.0 - Jul 07 2019
  • Fix Admincp/Modcp locked out issue
  • Cleaning up codes and preparation for additional features

Download Now

File Type: xml product-btp_rcaptcha_v1.1.0.xml (14.0 KB, 255 views)

Screenshots

File Type: jpg btp_rcaptcha_screenshot_options.jpg (122.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
Hostboard, TAIFUN_T, z3r0

Comments
  #22  
Old 08-08-2019, 02:29 AM
CvP's Avatar
CvP CvP is offline
 
Join Date: Aug 2006
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the login_failure/login_verify_success hook, you should use these variables instead of hardcoded admincp/modcp:

$config['Misc']['admincpdir']
$config['Misc']['modcpdir']
Reply With Quote
Благодарность от:
BetoPho
  #23  
Old 08-08-2019, 04:07 AM
BetoPho BetoPho is offline
 
Join Date: Nov 2014
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CvP View Post
In the login_failure/login_verify_success hook, you should use these variables instead of hardcoded admincp/modcp:

$config['Misc']['admincpdir']
$config['Misc']['modcpdir']
Thank you. I actually modified that already and will be included in the upcoming release
Reply With Quote
  #24  
Old 08-16-2019, 10:43 PM
deadlyruler deadlyruler is offline
 
Join Date: Jul 2013
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The latest version 1.1.0 locked me out of my administration panel with the error Parse error: syntax error, unexpected T_BOOLEAN_AND, expecting ')' in public_html/forum/includes/functions_login.php(203) : eval()'d code on line 1
Unable to add cookies, header already sent.
File: public_html/forum/includes/functions_login.php(203) : eval()'d code
Line: 1
Reply With Quote
  #25  
Old 08-31-2019, 08:47 PM
cm826 cm826 is offline
 
Join Date: Jul 2015
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you modify this plugin and make it to verify Private Message action instead of login? I understand the new functionality will become available in future iterations but I desperately need a captcha method to counter Private Message Spam
Reply With Quote
  #26  
Old 09-22-2019, 03:37 PM
dknelson dknelson is offline
 
Join Date: Oct 2004
Posts: 412
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had to remove this. It created a problem where people couldn't login to the site except at the upper right corner, nabber. Anytime there was as login page such as somebody trying to reset their password or whatever, it gave a username/passeword not recognized error.
Reply With Quote
  #27  
Old 09-25-2019, 12:17 PM
JnGirard JnGirard is offline
 
Join Date: Dec 2017
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Betopho,
- do you plan to release an upgrade version to get us replace the deprecated reCaptcha v1 of vbulletin4 ?
- if yes, will there be an option to just use it on, let say, register only, and not enable your native login protection feature ?
Reply With Quote
  #28  
Old 10-01-2019, 01:00 PM
dennisuello dennisuello is offline
 
Join Date: Mar 2005
Location: Reno, Nevada
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get an error

'input is null'

in

<script>
grecaptcha.ready(function() {
grecaptcha.execute("6Len8bMUAAAAAHw9MGP3IRwSY5xeWq b76uxjAiTi", {action: "login"}).then(function(token) {
let input = document.getElementById("btp_rcaptcha_input");
input.value = token;
});
});
</script>
Reply With Quote
  #29  
Old 10-24-2019, 01:17 AM
Hostboard's Avatar
Hostboard Hostboard is offline
 
Join Date: May 2002
Location: CT
Posts: 843
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very very interested in this being able to replace the now depreciated v1 across the board in VB.
Can you also add a protected user group option?
Reply With Quote
  #30  
Old 11-02-2019, 05:20 PM
Grouper Grouper is offline
 
Join Date: Sep 2013
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there an update to this plugin?
Reply With Quote
  #31  
Old 11-09-2019, 02:06 PM
Hostboard's Avatar
Hostboard Hostboard is offline
 
Join Date: May 2002
Location: CT
Posts: 843
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Been getting hammered with registrations of late. Went ahead and installed. Locked out of ACP. Had to disable plugins, and disable this... To nandthis had promise... Willing to pay someone to fully develop it to where it replaces the entire now defunct captchya system
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:55 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04930 seconds
  • Memory Usage 2,344KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (4)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete