We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

reCAPTCHA for EE2

Development and Programming

Brandon Jones's avatar
Brandon Jones
5,500 posts
15 years ago
Brandon Jones's avatar Brandon Jones

Edit: This information is out of date, please see the project on GitHub for the up-to-date version of the add-on.

reCAPTCHA is an ExpressionEngine 2 extension that replaces the built-in captcha with the reCAPTCHA system on member registration and comment forms. If you don’t already have reCAPTCHA keys, you can sign up and get them here. Note that this is not an officially supported first-party plugin, though I’ll do my best to help.

Features

  • Accessible to visually impaired visitors
  • Works with Javascript disabled
  • Supports English, Dutch, French, German, Portuguese, Russian, Spanish and Turkish
  • Supports the standard reCAPTCHA themes (Red, White, Blackglass and Clean)

Installation

  1. Unzip and place the ‘recaptcha’ folder in /system/expressionengine/third_party

  2. From the control panel, click Add-Ons > Extensions and enable the reCAPTCHA extension

  3. Click the Settings link and enter your domain’s Public and Private reCAPTCHA keys.

  4. Remove the hard-coded captcha input field from your member registration template (/themes/profile_themes/[theme_name]/registration_form.html) and any comment submission form templates so that the captcha {if} looks something like:

{if captcha}
    {captcha}
{/if}

F.A.Q.

Q: Can I use reCAPTCHA with the Contact or Tell-a-Friend form? A: Currently the Email module uses its own functions for creating the captcha, so only member registration and comment forms are supported at this time.

Q: Can I use this with the MSM? A: It should work fine as long as you use a Global key by checking the ‘Enable this key on all domains (global key)’ box when you create your reCAPTCHA key. This has not specifically been tested yet; feedback welcome. Q: I’m testing the comment submission form, and I keep getting ‘Unable to receive your comment at this time.’ A: If you’re testing with the same comment text, EE is likely enforcing spam protection and/or throttling your post. I recommend always testing with a unique comment, but if necessary the relevant settings are here:

Admin > Security and Session Preferences > Deny Duplicate Data Admin > Channel Administration > Channels > Comment Posting Preferences > Comment Re-submission Time Interval

Q: Any plans for an EE 1.x version? A: Not at this time.

Download and Screenshots

Download on GitHub

       
leeaston's avatar
leeaston
634 posts
15 years ago
leeaston's avatar leeaston

Much needed - well done and many thanks.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
15 years ago
Mark Bowen's avatar Mark Bowen

Thanks Brandon. Looks great.

Just one teensy weensy feature request if I may though?

Don’t suppose you’d consider making a 1.6.9 version would you 😉

There was one made a while back but it only ever worked on comment forms as far as I can remember and never worked on the main registration page which is where I really needed it to work so having something like this working for 1.6.9 would be Christmas come early for me.

Thanks again for releasing this though, very much appreciated.

Best wishes,

Mark

       
Brandon Jones's avatar
Brandon Jones
5,500 posts
15 years ago
Brandon Jones's avatar Brandon Jones

Mark, I likely won’t be doing any 1.x development simply because I started with 2.x and my brain is at capacity right now. However, I didn’t have to do anything special for the member_member_register_start and insert_comment_start hooks, and that’s probably also the case on 1.x.

If anything, the real “magic” with this extension is the Javascript that unobtrusively works around caching issues with Webkit-based browsers. Without it, if you submit an invalid form the first time, you’ll never be able to make a successful subsequent submission because the browser will send an outdated reCAPTCHA challenge key and cause the captcha to always fail. Feel free to pick it apart.

Thanks for the feedback, guys!

       
Omkar N.'s avatar
Omkar N.
177 posts
15 years ago
Omkar N.'s avatar Omkar N.

Thank you for creating this Brandon!

       
code72's avatar
code72
104 posts
15 years ago
code72's avatar code72

Yea, I can’t wait to give it a try. I’ve been wanting to use re-Captcha. Thanks!

       
andru's avatar
andru
5 posts
15 years ago
andru's avatar andru

Hi Brandon

Really keen to have a look at this - big supporter of reCAPTCHA 😊

Once you get it going on the Contact Form, I’d love to know.

Andrew

       
andru's avatar
andru
5 posts
15 years ago
andru's avatar andru

Hi Brandon

Just wondering if you were planning to pull this reCAPTCHA plugin over to the Contact Form.

Thanks

Andrew

       
leeaston's avatar
leeaston
634 posts
15 years ago
leeaston's avatar leeaston

Freeform 3 is now release http://www.solspace.com/blog/entry/freeform_3.0_released_-_the_best_thing_since_freeform_2/

Thought you may be interested.

Best wishes Lee

       
Brandon Jones's avatar
Brandon Jones
5,500 posts
15 years ago
Brandon Jones's avatar Brandon Jones
Just wondering if you were planning to pull this reCAPTCHA plugin over to the Contact Form.

Hi Andrew,

The Email module (which supplies the Contact and Tell-a-Friend forms) doesn’t currently ‘see’ any captcha-related extensions, so the module itself would require some changes. I would like to see it happen, but I can’t comment on when or if those changes will be made.

       
Ryan M.'s avatar
Ryan M.
1,511 posts
15 years ago
Ryan M.'s avatar Ryan M.

I may consider trying to back-port this for 1.6 because I need some help with member registration spam, and was looking at using reCaptcha for registrations.

       
Macrike's avatar
Macrike
137 posts
15 years ago
Macrike's avatar Macrike
I may consider trying to back-port this for 1.6 because I need some help with member registration spam, and was looking at using reCaptcha for registrations.

That would be great, Ryan. I’m also getting various spam registrations on a daily basis, and I won’t be updating to EE2 until it’s a stable release.

       
Scotta's avatar
Scotta
136 posts
9 years ago
Scotta's avatar Scotta

Does this work with Freemember ?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.