[RC1] reCAPTCHA MOD

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
REAgentForeclosures
Registered User
Posts: 50
Joined: Tue May 01, 2007 9:14 pm
Contact:

[RC1] reCAPTCHA MOD

Post by REAgentForeclosures » Mon Oct 29, 2007 7:42 pm

MOD Title: reCAPTCHA MOD
MOD Description: This MOD replaces phpBB's CAPTCHA with the much stronger reCAPTCHA.
MOD Version: v1.0.1

I built this MOD based upon the patch files found here: http://recaptcha.net/plugins/phpbb/ (v1.8 used to make this MOD)

DIY Instructions

Code: Select all

***DO THIS PRIOR TO INSTALL***
You will need to obtain reCAPTCHA API keys (http://recaptcha.net/api/getkey)
and place the API keys in the required fields below on lines 94 & 95:
$recaptcha_public_key = '';  // You need to put your public key here
$recaptcha_private_key = ''; // You need to put your private key here
***DO THIS PRIOR TO INSTALL***
Screenshot:
Image (click to view larger)

Demonstration: http://recaptcha.net/learnmore.html

View/Download:
http://www.ChrisRutter.com/phpBB/reCAPTCHA.zip

Files Included: Revision History:

Code: Select all

## MOD History: 
##   2007-10-30 - Version 1.0.1
##              - Updated DIY INSTRUCTIONS
##              - Minor Tweaks to make the MOD smaller/efficient
##
##   2007-10-29 - Version 1.0.0
##
##   2007-10-29 - Version 0.0.2
##              - Security Fixes (reCAPTCHA.mod)
##              - Security and xHTML Fixes (recaptchalib.php)
##
##   2007-10-29 - Version 0.0.1
Comments:
I tested this in EasyMOD v0.3.0, and it worked flawlessly.
I must say however this is my first MOD creation, so take it easy on me if it doesn't work for you. :P

Getting Support for this MOD
  1. Ask any questions relating to this MOD directly in this topic; please don't PM me.
  2. If you receive an error, please post the error.
  3. If the error points to a specific line in a file, please post the code on that line with around 10 lines on either side of it (if the error is on line 30, post lines 20-40).
  4. If you post code, please use the

    Code: Select all

     bbcode tags.[/list]
Last edited by REAgentForeclosures on Wed Oct 31, 2007 3:28 pm, edited 7 times in total.
- reCAPTCHA MOD - Replace phpBB's CAPTCHA with the much better reCAPTCHA
- reCAPTCHA Guest Post MOD - Adds reCAPTCHA to guest posts, eliminating spam

SPAM Registrations and/or Posts since installation of the above mods: 0
How secure is reCAPTCHA? VERY ;)
reCAPTCHA = "Digitizing Books One Word at a Time"

REAgentForeclosures
Registered User
Posts: 50
Joined: Tue May 01, 2007 9:14 pm
Contact:

Re: reCAPTCHA

Post by REAgentForeclosures » Tue Oct 30, 2007 2:55 am

I believe this MOD will do wonders in stopping SPAM-BOT's right in their tracks. It uses the reCAPTCHA API to create a very difficult CAPTCHA verification for SPAM-BOT's to break. While at the same time helps the world by "Digitizing Books One Word at a Time".

Not only do you have image verification but reCAPTCHA also provides an audio challenge for the visually impaired.

Ok, it's ready for prime time... I've done my testing, and I've submitted it to the MOD-DB, and if all goes well, it should be "officially approved" soon.

Good-Luck getting by this one SPAM-BOTs :lol:

Let me know what you think: any/all feedback will be much appreciated
Last edited by REAgentForeclosures on Thu Nov 01, 2007 9:47 pm, edited 2 times in total.
- reCAPTCHA MOD - Replace phpBB's CAPTCHA with the much better reCAPTCHA
- reCAPTCHA Guest Post MOD - Adds reCAPTCHA to guest posts, eliminating spam

SPAM Registrations and/or Posts since installation of the above mods: 0
How secure is reCAPTCHA? VERY ;)
reCAPTCHA = "Digitizing Books One Word at a Time"

REAgentForeclosures
Registered User
Posts: 50
Joined: Tue May 01, 2007 9:14 pm
Contact:

Re: reCAPTCHA MOD

Post by REAgentForeclosures » Wed Oct 31, 2007 1:38 am

Now available for Guest Posts too :D : http://www.phpbb.com/community/viewtopi ... 6&t=588297
- reCAPTCHA MOD - Replace phpBB's CAPTCHA with the much better reCAPTCHA
- reCAPTCHA Guest Post MOD - Adds reCAPTCHA to guest posts, eliminating spam

SPAM Registrations and/or Posts since installation of the above mods: 0
How secure is reCAPTCHA? VERY ;)
reCAPTCHA = "Digitizing Books One Word at a Time"

User avatar
battye
Extension Customisations
Extension Customisations
Posts: 10937
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

Re: reCAPTCHA MOD

Post by battye » Wed Oct 31, 2007 8:24 am

Hello,

Please edit your topic title with a prefix as outlined in Modifications Development Forum Rules, section 3.a. This will allow people to see the development status of your modification at a glance.

Thank you,
The phpBB Modifications Team
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D

REAgentForeclosures
Registered User
Posts: 50
Joined: Tue May 01, 2007 9:14 pm
Contact:

Re: reCAPTCHA MOD

Post by REAgentForeclosures » Wed Oct 31, 2007 1:40 pm

battye wrote:Hello,

Please edit your topic title with a prefix as outlined in Modifications Development Forum Rules, section 3.a. This will allow people to see the development status of your modification at a glance.

Thank you,
The phpBB Modifications Team
Fixed ;)
- reCAPTCHA MOD - Replace phpBB's CAPTCHA with the much better reCAPTCHA
- reCAPTCHA Guest Post MOD - Adds reCAPTCHA to guest posts, eliminating spam

SPAM Registrations and/or Posts since installation of the above mods: 0
How secure is reCAPTCHA? VERY ;)
reCAPTCHA = "Digitizing Books One Word at a Time"

Riamus
Registered User
Posts: 886
Joined: Tue Jun 21, 2005 7:40 pm

Re: [RC1] reCAPTCHA MOD

Post by Riamus » Wed Oct 31, 2007 10:19 pm

Installation went smoothly. We'll see how well this works on a board that receives ~10 new bot registrations per day. I'm betting it will work better than the default catchpa. Good work.
Kakkoii Translation Team
格好いい 翻訳

REAgentForeclosures
Registered User
Posts: 50
Joined: Tue May 01, 2007 9:14 pm
Contact:

Re: [RC1] reCAPTCHA MOD

Post by REAgentForeclosures » Thu Nov 01, 2007 1:10 am

Thanks for the feedback Riamus,
Please keep us posted on your SPAM registrations (or lack thereof ;) ) since installation.
Thanks again,
-Chris
- reCAPTCHA MOD - Replace phpBB's CAPTCHA with the much better reCAPTCHA
- reCAPTCHA Guest Post MOD - Adds reCAPTCHA to guest posts, eliminating spam

SPAM Registrations and/or Posts since installation of the above mods: 0
How secure is reCAPTCHA? VERY ;)
reCAPTCHA = "Digitizing Books One Word at a Time"

cavallino
Registered User
Posts: 317
Joined: Thu Aug 04, 2005 7:06 am

Re: [RC1] reCAPTCHA MOD

Post by cavallino » Thu Nov 01, 2007 11:30 am

yes Riamus, please keep us up to date on how many spam registrations (if any :mrgreen: ) you're getting this week with your brand new reCAPTCHA installation........ :D

REAgentForeclosures
Registered User
Posts: 50
Joined: Tue May 01, 2007 9:14 pm
Contact:

Re: [RC1] reCAPTCHA MOD

Post by REAgentForeclosures » Fri Nov 09, 2007 1:55 pm

Riamus wrote:Installation went smoothly. We'll see how well this works on a board that receives ~10 new bot registrations per day. I'm betting it will work better than the default catchpa. Good work.
Hows it working out for you Riamus ?
Any updates?
- reCAPTCHA MOD - Replace phpBB's CAPTCHA with the much better reCAPTCHA
- reCAPTCHA Guest Post MOD - Adds reCAPTCHA to guest posts, eliminating spam

SPAM Registrations and/or Posts since installation of the above mods: 0
How secure is reCAPTCHA? VERY ;)
reCAPTCHA = "Digitizing Books One Word at a Time"

Hyenna
Registered User
Posts: 1
Joined: Mon Nov 12, 2007 1:03 pm

Re: [RC1] reCAPTCHA MOD

Post by Hyenna » Mon Nov 12, 2007 1:06 pm

I think you deserve an update from me. I have installed this mod on two different forums one that was receiving 2-3 bots per day and one that was receiving 11-12 bots per day. They have both been bot free for 4 days now so thank you very much!

David

libsyn
Registered User
Posts: 1
Joined: Fri Nov 09, 2007 9:11 pm

Re: [RC1] reCAPTCHA MOD

Post by libsyn » Mon Nov 12, 2007 3:14 pm

Hi, We're running phpbb v 2.0.22 with the chunkstyle theme. I've followed all the steps in the mod (ive also tried it from the recaptcha website) and both times i was unable to get the recaptcha to display in the registration form. the thing i can think of that's going wrong is in the templates folder. In our profile_add_body.tpl file we have the following
<!-- Visual Confirmation -->
<!-- BEGIN switch_confirm -->
<tr>
<td class="colour1" colspan="2" align="center">{L_CONFIRM_CODE_IMPAIRED}<br /><br />{CONFIRM_IMG}<br /><br /></td>
</tr>
<tr>
<td class="colour1">{L_CONFIRM_CODE}: * <br />{L_CONFIRM_CODE_EXPLAIN}</td>
<td class="colour2" style="border-left:1px solid #656B78;"><input type="text" class="singline" style="width: 200px" name="confirm_code" size="6" maxlength="6" value="" /></td>
</tr>
<!-- END switch_confirm -->
Which i replaced with the code in the patch, with no success. if anyone could help, thanks,


Kevin

REAgentForeclosures
Registered User
Posts: 50
Joined: Tue May 01, 2007 9:14 pm
Contact:

Re: [RC1] reCAPTCHA MOD

Post by REAgentForeclosures » Tue Nov 13, 2007 1:12 am

Hyenna wrote:I think you deserve an update from me. I have installed this mod on two different forums one that was receiving 2-3 bots per day and one that was receiving 11-12 bots per day. They have both been bot free for 4 days now so thank you very much!

David
Thanks for the update David, glad it worked for ya, keep us posted if/when you get a bot reg or post, I have had 0 so far :D

REAgentForeclosures
Registered User
Posts: 50
Joined: Tue May 01, 2007 9:14 pm
Contact:

Re: [RC1] reCAPTCHA MOD

Post by REAgentForeclosures » Tue Nov 13, 2007 1:21 am

libsyn wrote:Hi, We're running phpbb v 2.0.22 with the chunkstyle theme. I've followed all the steps in the mod (ive also tried it from the recaptcha website) and both times i was unable to get the recaptcha to display in the registration form. the thing i can think of that's going wrong is in the templates folder. In our profile_add_body.tpl file we have the following
[REMOVED]
Which i replaced with the code in the patch, with no success. if anyone could help, thanks,
Kevin
Hi Kevin,
Did you try using EasyMOD to install the mod? (it makes life easier ;))

My "profile_add_body.tpl" file looks like this:

Code: Select all

 	<!-- Visual Confirmation -->
 	<!-- BEGIN switch_confirm -->
 	<tr> 
	  <td class="row1"><span class="gen">{L_CONFIRM_CODE}: * </span></td>
	  <td class="row2">{RECAPTCHA_CODE}</td>
 	</tr>
 	<!-- END switch_confirm -->
To further diagnose the problem, Can you please post the full contents of the following files:
  • includes/usercp_register.php
  • templates/subSilver/profile_add_body.tp
Please remember to put

Code: Select all

 tags around the code and not [quote] tags
-Chris
- reCAPTCHA MOD - Replace phpBB's CAPTCHA with the much better reCAPTCHA
- reCAPTCHA Guest Post MOD - Adds reCAPTCHA to guest posts, eliminating spam

SPAM Registrations and/or Posts since installation of the above mods: 0
How secure is reCAPTCHA? VERY ;)
reCAPTCHA = "Digitizing Books One Word at a Time"

REAgentForeclosures
Registered User
Posts: 50
Joined: Tue May 01, 2007 9:14 pm
Contact:

Re: [RC1] reCAPTCHA MOD

Post by REAgentForeclosures » Mon Nov 19, 2007 4:55 am

This mod is now posted on the official reCAPTCHA website:
We recommend that you use the reCAPTCHA phpBB MOD to install reCAPTCHA. There are two mods available, one for registration and one for guest posts.
:D

_NARC_
Registered User
Posts: 1
Joined: Mon Nov 19, 2007 10:25 pm

Re: [RC1] reCAPTCHA MOD

Post by _NARC_ » Mon Nov 19, 2007 10:29 pm

I registered just so I could say thanks for this mod. It has reduced my Bot registrations from 5-6 per day, to ZERO. I've got a board created for my PTA, and it was very important that I clean up these bot registrations immediately, and I had to change my activation to Administrator registration, because if I didn't I would get horrible SPAM posts.

Now I have changed it back to email validation, and have cleaned up not 1 single false registration.

THANK YOU!

Post Reply

Return to “[2.0.x] MODs in Development”