Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
reCAPTCHA!vB - Stop spam. Read books. Details »
reCAPTCHA!vB - Stop spam. Read books.
Mod Version: 1.1.0, by magnus (Member) magnus is offline
Developer Last Online: Feb 2012 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.7 Rating: (24 votes - 4.88 average) Installs: 205
Released: 09 Jul 2007 Last Update: 27 Feb 2008 Downloads: 2197
Not Supported Uses Plugins Auto-Template Code Changes Additional Files External Content  

THIS MODIFICATION SHOULD NOT BE USED WITH VBULLETIN 3.7+ AS IT IS A DEFAULT FEATURE.

Keywords: reCAPTCHA, CAPTCHA, spam, register

Description:
This modification will replaced the default vBulletin registration CAPTCHA with the newer, more advanced reCAPTCHA.

What is CAPTCHA/reCAPTCHA?:
A CAPTCHA is a program that can tell whether its user is a human or a computer. You've probably seen them — colorful images with distorted text at the bottom of Web registration forms. CAPTCHAs are used by many websites to prevent abuse from "bots," or automated programs usually written to generate spam. No computer program can read distorted text as well as humans can, so bots cannot navigate sites protected by CAPTCHAs.

About 60 million CAPTCHAs are solved by humans around the world every day. In each case, roughly ten seconds of human time are being spent. Individually, that's not a lot of time, but in aggregate these little puzzles consume more than 150,000 hours of work each day. What if we could make positive use of this human effort? reCAPTCHA does exactly that by channeling the effort spent solving CAPTCHAs online into "reading" books.

To archive human knowledge and to make information more accessible to the world, multiple projects are currently digitizing physical books that were written before the computer age. The book pages are being photographically scanned, and then, to make them searchable, transformed into text using "Optical Character Recognition" (OCR). The transformation into text is useful because scanning a book produces images, which are difficult to store on small devices, expensive to download, and cannot be searched. The problem is that OCR is not perfect.



reCAPTCHA improves the process of digitizing books by sending words that cannot be read by computers to the Web in the form of CAPTCHAs for humans to decipher. More specifically, each word that cannot be read correctly by OCR is placed on an image and used as a CAPTCHA. This is possible because most OCR programs alert you when a word cannot be read correctly.

But if a computer can't read such a CAPTCHA, how does the system know the correct answer to the puzzle? Here's how: Each new word that cannot be read correctly by OCR is given to a user in conjunction with another word for which the answer is already known. The user is then asked to read both words. If they solve the one for which the answer is known, the system assumes their answer is correct for the new one. The system then gives the new image to a number of other people to determine, with higher confidence, whether the original answer was correct.

Currently, we are helping to digitize books from the Internet Archive.



Installation:
  1. Download and unzip the recaptcha101.zip archive.
  2. Upload the functions_recaptcha.php to your /includes/ directory.
  3. Import the product-recaptcha.xml via the Product Manager.
  4. Obtain a FREE public and private reCAPTCHA key here.
  5. Make any desired configuration changes via AdminCP > vBulletin Options > reCAPTCHA Options
  6. Make a backup of your register.php file, located in your forum root.
  7. Perform ONE (1) of the following methods:
    • Method A:
      • Download the register-patch.zip archive, extract, then upload the register.patch file to your forum root, then apply the patch:

        *Note: Please note that this method requires a basic understanding of UNIX shell commands and requires shell access to your host. If you do not have either of these or you are unsure how to use GNU patch, I highly suggest performing Method B instead)


        Block Disabled:      (Update License Status)  
        Suspended or Unlicensed Members Cannot View Code.

        This will perform the file edits automatically. Once finished, you may delete the register.patch file.
    • Method B:
      Perform the following simple file edits:
      • IN register.php:
        1. FIND:

          Block Disabled:      (Update License Status)  
          Suspended or Unlicensed Members Cannot View Code.

          REPLACE WITH:

          Block Disabled:      (Update License Status)  
          Suspended or Unlicensed Members Cannot View Code.

        2. FIND AND REMOVE:

          Block Disabled:      (Update License Status)  
          Suspended or Unlicensed Members Cannot View Code.

        3. FIND:

          Block Disabled:      (Update License Status)  
          Suspended or Unlicensed Members Cannot View Code.

          REPLACE WITH:

          Block Disabled:      (Update License Status)  
          Suspended or Unlicensed Members Cannot View Code.


NOTE: YOU MAY ALSO REPLACE THE CAPTCHA DISPLAYED TO GUESTS WHEN USING THE "CONTACT US" FORM BY FOLLOWING THE INSTRUCTIONS HERE.



Tips, tricks and modifications:


Comments:
As with all my hacks, this modification is provided free of charge. However, if you find this product useful and have money burning a hole in your pocket, feel free to make a small donation, I won't mind.. really.

Version History:
  • 1.0.0 - Initial release, here's to hoping...
  • 1.0.1 - Woops! Forgot to include a aesthetic template edit in the original release. All is well, simply redownload and overwrite the XML. That's it!
  • 1.1.0 - Added alternate language support. Now various reCAPTCHA tags and text will be displayed in your selected language. Also added a fieldset to the automatic template edits around the display block for a more uniform look (thanks DOCTOR DAN!).

Currently Known Bugs:
  • None

* Please note that this modification was developed on a forum with a userbase of 1 (myself). I've tested it for basic functionality but I cannot guarantee functionality or behavior on your forum. So, please -- make backups before installing this product!

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	captchaHomePage.gif
Views:	1203
Size:	8.3 KB
ID:	66750   Click image for larger version

Name:	recaptchaadmin.jpg
Views:	972
Size:	81.8 KB
ID:	66792   Click image for larger version

Name:	recaptchavb.jpg
Views:	835
Size:	52.1 KB
ID:	76450  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Miscellaneous Hacks reCAPTCHA!vB - MailHide : Tired of spam? Fight back. magnus vBulletin 3.6 Add-ons 7 20 Jul 2008 01:44

  #31  
Old 12 Jul 2007, 07:13
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Installed, not having much luck changing themes. Is that theme dropdown suppose to work?

Edit: Ok, I tried the 3 themes and the only that shows for me is that butt-ugly red one.

Last edited by Smoothie; 12 Jul 2007 at 07:25.
Reply With Quote
  #32  
Old 12 Jul 2007, 12:53
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
If you're having a problem with themes, chances are the automatic template edit isn't taking effect. Simply make the edit manually.

In the register template:
  • FIND:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    REPLACE WITH::

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.


And, just for good measure you might want to disable the automatic template edit plugin. In AdminCP > Plugins & Products > Plugin Manager look for Automatically modify register template (located under reCAPTCHA!vB) and uncheck the box, then click "Save Active Status".

That should do it!

Last edited by magnus; 12 Jul 2007 at 12:56.
Reply With Quote
  #33  
Old 12 Jul 2007, 18:35
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
@magnus

Thank you for posting instructions here on how to make captcha work for guest using "Contact Us" form.

Works great and thanks again.
__________________
Alibass
Reply With Quote
  #34  
Old 10 Aug 2007, 09:22
kayakbabe kayakbabe is offline
 
Join Date: Jun 2007
Would be absolutely great if this could also be used by registred users for things like replies, quick replies, new threads, etc. Even better if it could be used for registered users with less than x postings to their credit. So that it will help drive those manual spammers away.
Reply With Quote
  #35  
Old 10 Aug 2007, 14:36
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Why would you want registered users to be subjected to CAPTCHA's?
Reply With Quote
  #36  
Old 07 Sep 2007, 08:44
pitzerwm pitzerwm is offline
 
Join Date: Aug 2007
I think that I followed all of the instructions but when I click on "register" it does go to /register.php but its blank. I replace it with the original and its ok. I did the upload etc. and added the keys to the product in the appropriate spaces. I have double and triple checked my typing. Any suggestions?

Thanks

// Check Reg Image
if ($vbulletin->options['regimagecheck'] AND $vbulletin->options['regimagetype'])
{
$resp = recaptcha_check_answer ($vbulletin->options['recaptcha_privatekey'],
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"];

if (!$resp->is_valid)
{
$userdata->error('register_imagecheck');
}
}


if ($vbulletin->options['regimagecheck'] AND $vbulletin->options['regimagetype'])
{
$imagereg = recaptcha_get_html
($vbulletin->options['recaptcha_publickey'],
$error);
}
else
{
$imagereg = '';
}
Reply With Quote
  #37  
Old 07 Sep 2007, 13:13
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by pitzerwm View Post
I think that I followed all of the instructions but when I click on "register" it does go to /register.php but its blank. I replace it with the original and its ok. I did the upload etc. and added the keys to the product in the appropriate spaces. I have double and triple checked my typing. Any suggestions?

Thanks
You're missing a close bracket ')' in the following block (highlighted in red):

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Also, why are you typing out the code changes manually? Just copy and paste them from the original post to make sure there are no typo's and to retain proper formatting.
Reply With Quote
  #38  
Old 07 Sep 2007, 18:01
pitzerwm pitzerwm is offline
 
Join Date: Aug 2007
Thanks for your help, I knew that it was something stupid. Works great now. I guess that it was midnight, that I didn't think to cut & paste.
Reply With Quote
  #39  
Old 08 Sep 2007, 16:17
Caerydd's Avatar
Caerydd Caerydd is offline
 
Join Date: Mar 2006
Location: UK
Love this method, love this hack, works flawlessly so far, and much more in keeping with my board ^^

Go you!
__________________

http://www.aelyria.com
Reply With Quote
  #40  
Old 09 Sep 2007, 15:52
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by Caerydd View Post
Love this method, love this hack, works flawlessly so far, and much more in keeping with my board ^^

Go you!
Glad you like it!
Reply With Quote
  #41  
Old 16 Sep 2007, 03:50
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
When replying to a message in my forum (http://mysite.com/forum/newreply.php?do=newreply&p=563) I got this error:

Warning: pack() [function.pack]: Type H: illegal hex digit L in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit n in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit X in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit g in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit k in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit z in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit S in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit y in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit y in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit x in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit o in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit V in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit q in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit u in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit m in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit O in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit S in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit U in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit h in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit w in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit i in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit L in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit n in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit X in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit g in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit k in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit z in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit S in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit y in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit y in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit x in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit o in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit V in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit q in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit u in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit m in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit O in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit S in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit U in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit h in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit w in /includes/functions_recaptcha.php on line 235

Warning: pack() [function.pack]: Type H: illegal hex digit i in /includes/functions_recaptcha.php on line 235
this is line 235 in /includes/functions_recaptcha.php:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #42  
Old 17 Sep 2007, 04:13
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Any idea what is causing that error? I would love to turn this back on in my forum, but can't with that message popping up all the time.
Reply With Quote
  #43  
Old 17 Sep 2007, 13:21
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by yoyoyoyo View Post
Any idea what is causing that error? I would love to turn this back on in my forum, but can't with that message popping up all the time.
It appears you do not have mcrypt(); support enabled within PHP.

To be sure, check AdminCP > Maintenance > View PHP Info. Now look for a section titled mcrypt. If it's not there, that's your answer.
Reply With Quote
  #44  
Old 17 Sep 2007, 14:02
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Originally Posted by magnus View Post
It appears you do not have mcrypt(); support enabled within PHP.

To be sure, check AdminCP > Maintenance > View PHP Info. Now look for a section titled mcrypt. If it's not there, that's your answer.
I have mcrypt enabled:



any other suggestions?
Reply With Quote
  #45  
Old 18 Sep 2007, 12:49
bazzup bazzup is offline
 
Join Date: Dec 2006
Real name: bazz
Installed works great had a mass of bots registering lately and not confirming their emails so hopefully should stop now


Originally Posted by yoyoyoyo View Post
Any idea what is causing that error? I would love to turn this back on in my forum, but can't with that message popping up all the time.
thats the second key your private one is'nt it?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 03:01.

Layout Options | Width: Wide Color: