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

  #16  
Old 11 Jul 2007, 18:00
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by Alibass View Post
@magnus

Very nice hack. One question, I am confused to where I put the
code: # patch -b register.php < register.patch

Does this go in the patch file, register.php or else where?

No, that line is a command that needs to be run from a shell prompt -- provided you have shell access (the '#' indicates a shell prompt, the remaining text is the actual command to be run). Otherwise, you'll need to perform the edits manually as noted in Method B.

Also, please remember that these methods are exclusive of each other. You need to perform either Method A or Method B. Not both!
Reply With Quote
  #17  
Old 11 Jul 2007, 18:29
TheBlackPoet's Avatar
TheBlackPoet TheBlackPoet is offline
 
Join Date: May 2006
Real name: Malik Ali Shabbazz
im not that bright, so i went ahead and manually edited the register page... and i am happy i took the time the stop.. this is very nice.. and replaces another hack i had in place... installed.... nominated
Reply With Quote
  #18  
Old 11 Jul 2007, 18:57
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
Originally Posted by magnus View Post
No, that line is a command that needs to be run from a shell prompt -- provided you have shell access (the '#' indicates a shell prompt, the remaining text is the actual command to be run). Otherwise, you'll need to perform the edits manually as noted in Method B.

Also, please remember that these methods are exclusive of each other. You need to perform either Method A or Method B. Not both!
I ran and got this error : An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'patch -b register.php < register.patch' at line 1

I still have No Spam! and AjaxReg hacks installed as I wanted to keep them also. Could one or both hacks of these hacks be causing a conflict or should I just try and edit the reg.php manually?
__________________
Alibass
Reply With Quote
  #19  
Old 11 Jul 2007, 19:04
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by Alibass View Post
I ran and got this error : An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'patch -b register.php < register.patch' at line 1

I still have No Spam! and AjaxReg hacks installed as I wanted to keep them also. Could one or both hacks of these hacks be causing a conflict or should I just try and edit the reg.php manually?
Wait, what? Why are you trying to execute the patch via SQL? Forget the patch. Remove any and all reference to it. Do not perform Method A, instead do what's listed in Method B. Perform the file edits manually.

Using the GNU patch method should be reserved for those with basic UNIX knowledge and shell access to their hosts. Everyone else should follow the instructions in Method B.
Reply With Quote
  #20  
Old 11 Jul 2007, 19:06
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by TheBlackPoet View Post
im not that bright, so i went ahead and manually edited the register page... and i am happy i took the time the stop.. this is very nice.. and replaces another hack i had in place... installed.... nominated
Glad to hear you go everything works. By the way, I love your forum's header image. It looks great.
Reply With Quote
  #21  
Old 11 Jul 2007, 20:03
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
Originally Posted by magnus View Post
Wait, what? Why are you trying to execute the patch via SQL? Forget the patch. Remove any and all reference to it. Do not perform Method A, instead do what's listed in Method B. Perform the file edits manually.

Using the GNU patch method should be reserved for those with basic UNIX knowledge and shell access to their hosts. Everyone else should follow the instructions in Method B.
Yep, I did Method B and it works fine. *Installed* works great and thanks!
__________________
Alibass
Reply With Quote
  #22  
Old 11 Jul 2007, 21:39
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
@magnus

Anyway maybe in your next release you could include the recaptcha to show up when sending mail via clicking "contact us"?
__________________
Alibass
Reply With Quote
  #23  
Old 11 Jul 2007, 21:50
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by Alibass View Post
@magnus

Anyway maybe in your next release you could include the recaptcha to show up when sending mail via clicking "contact us"?

Actually, I have this done already. I'll put up a post with the required file edits.
Reply With Quote
  #24  
Old 11 Jul 2007, 22:41
Smoothie Smoothie is offline
 
Join Date: Oct 2001
al-righty then, gonna give this a whirl.
Reply With Quote
  #25  
Old 11 Jul 2007, 23:22
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
Originally Posted by magnus View Post
Actually, I have this done already. I'll put up a post with the required file edits.
Thanks magnus, looking forward to your post.
__________________
Alibass
Reply With Quote
  #26  
Old 11 Jul 2007, 23:52
TTG's Avatar
TTG TTG is offline
 
Join Date: May 2004
Looks like a great addition.
Will it work alongside Ajax Registration ?
Reply With Quote
  #27  
Old 11 Jul 2007, 23:57
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Originally Posted by TTG View Post
Looks like a great addition.
Will it work alongside Ajax Registration ?
There's no reason for it not to. This simply replaces the default CAPTCHA.
Reply With Quote
  #28  
Old 12 Jul 2007, 00:00
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
Originally Posted by TTG View Post
Will it work alongside Ajax Registration ?
I can tell you I am using AjaxReg and No Spam! with this hack and it works with no problems.
__________________
Alibass
Reply With Quote
  #29  
Old 12 Jul 2007, 00:16
TTG's Avatar
TTG TTG is offline
 
Join Date: May 2004
Originally Posted by magnus View Post
There's no reason for it not to. This simply replaces the default CAPTCHA.
Installed and working well .. thanks magnus
Reply With Quote
  #30  
Old 12 Jul 2007, 01:04
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Perform the following file edits in order to replace the default CAPTCHA displayed to guests when using "Contact Us" with a reCAPTCHA


In sendmessage.php - BE SURE TO MAKE A BACKUP BEFORE EDITING!
  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.

  4. 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.

  5. 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.

  6. FIND AND REMOVE: THERE WILL BE TWO (2) OCCURANCES OF THIS STRING. REMOVE BOTH

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


Last edited by magnus; 04 Mar 2008 at 13:37.
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:37.

Layout Options | Width: Wide Color: