![]() |
reCAPTCHA!vB
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. https://vborg.vbsupport.ru/ 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. [hr]-[/hr] Installation:
NOTE: YOU MAY ALSO REPLACE THE CAPTCHA DISPLAYED TO GUESTS WHEN USING THE "CONTACT US" FORM BY FOLLOWING THE INSTRUCTIONS HERE. [hr]-[/hr] Tips, tricks and modifications:
[hr]-[/hr] 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:
Currently Known Bugs:
* 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! |
amazingly brilliant, as usual Magnus !!!
[high]* nexialys send some love ![/high] (my wife will kill me if she knows!) edit: ah, now it is good, the file !!! remember to tell to register to get a API key: http://recaptcha.net FREE |
Woops! Forgot to include an aesthetic template edit. Not having it won't cause any functionality issues, you simply won't be able to change themes.
In order to upgrade, simply re-download and import the latest XML, overwriting your existing one. That's it! |
This is great!!!
|
Glad you like. :)
I read about this in the latest Wired magazine, and I just had to put it into vBulletin. :D |
very creative putting something like this to good use :)
|
Suggest this as a default mod built-in to vb v4.0 =]
|
vb4? LOL :)
nice hack! |
Excellent! Thanks a bunch! :D
|
I've gone ahead and uploaded a register.patch file, which will allow you to utilize the unix patch system to make the necessary file edits automatically. Simply follow the instructions in the original post if you haven't already made manual file edits.
Be sure to backup your original register.php! If you ever wish to return to the original CAPTCHA, all you need to do is simply overwrite register.php with the backup you made then uninstall the product. That's it! |
Quote:
|
Quote:
If the 3.6.5 register.php has a different offset, then the patch file will fail, so you'll need to make the file edits manually in that case. Either way, none of the changes are irreversable. If something goes awry, you simply overwrite register.php with your backup and you're off and running again. As long as you have a backup of register.php, there's no risk. |
One more question. How would this mod be different/better than say a few of the others posted here such as the no spam which has a set of alternating questions a user must answer correctly to register on your site?
|
Quote:
The benefit to reCAPTCHA is it's something any human can answer. Questions, regardless of how easy they are, may be interpreted wrong due to language barriers or possibly even mental capacity. The goal of a CAPTCHA isn't to test the users knowledge, it's to simply confirm they are human. One of the added benefits of reCAPTCHA is the fact it takes something as trivial as registering on a forum and uses those "human processes" to do something productive. Helping to translate words that even the best OCR software in the world cannot translate is helping to advance the digitizing of books printed before the digital age. Not to mention, reCAPTCHA uses 2 words to authenticate humans. One of the words is one that has been proven to be previously untranslated by bots. That's a pretty good security measure, if you ask me. :) |
@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? |
Quote:
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! |
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
|
Quote:
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? |
Quote:
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. |
Quote:
|
Quote:
|
@magnus
Anyway maybe in your next release you could include the recaptcha to show up when sending mail via clicking "contact us"? |
Quote:
Actually, I have this done already. I'll put up a post with the required file edits. |
al-righty then, gonna give this a whirl. :)
|
Quote:
|
Looks like a great addition.
Will it work alongside Ajax Registration ? |
Quote:
|
Quote:
|
Quote:
|
Perform the following file edits in order to replace the default CAPTCHA displayed to guests when using "Contact Us" with a reCAPTCHA
[hr]-[/hr] In sendmessage.php - BE SURE TO MAKE A BACKUP BEFORE EDITING!
|
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. :p |
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:
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! |
@magnus
Thank you for posting instructions here on how to make captcha work for guest using "Contact Us" form. Works great and thanks again. :) |
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.
|
Why would you want registered users to be subjected to CAPTCHA's?
|
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 = ''; } |
Quote:
Code:
// Check Reg Image |
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.
|
Love this method, love this hack, works flawlessly so far, and much more in keeping with my board ^^
Go you! |
Quote:
|
All times are GMT. The time now is 08:16 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|