recaptcha modules

ilpleut

Joined: 2007-10-07
Posts: 11
Posted: Sun, 2007-10-07 17:26

I just wrote a Recaptcha G2 module.
first release v0.3, it's more a beta.

it works here, but i don't know for your gallery ;)

http://codex.gallery2.org/Gallery2:Modules:recaptcha

give me some feedback: bug, idea ;)
and hope it will help some of you.

 
unniwerz

Joined: 2006-02-01
Posts: 13
Posted: Sun, 2007-10-14 18:51

Thanks for this awsome module!
I have two domains (same gallery), and with recaptcha they need different keys;
is there any way to fix that?

Thanks again!

 
ilpleut

Joined: 2007-10-07
Posts: 11
Posted: Mon, 2007-10-15 21:02

this update can manage that ;)

delete the old version,
you install the new version (0.4)
and you have to configure recaptcha through all your domain name.
(it's also possible to activate recaptcha on a domain, and leave another one without protection)

I also wrote a bug fix,
if you copy you gallery (code & DB) on a new host, recaptcha will be desactivate.

thanks for your feedback !!

 
unniwerz

Joined: 2006-02-01
Posts: 13
Posted: Sun, 2007-10-21 19:10

Thanks for the quick update!
I'm a bit slow, but a big thanks :)

 
EeshEesh

Joined: 2007-11-19
Posts: 1
Posted: Mon, 2007-11-19 15:21

This is great! :)

Only one problem I noticed: in my guest add comment page, I get both the default captcha and the recaptcha. When I disable the normal captcha for guest comments, both captchas disappear. How can I leave only recaptcha on there?

 
ilpleut

Joined: 2007-10-07
Posts: 11
Posted: Mon, 2007-11-19 18:23

EeshEesh,

the problem is you have both recatcha & captcha plugins activated.

just keep the authentification for guest user
and desactivate (or uninstall) captcha module in your 'site admin' -> 'plugins'

thanks for your comment :)

 
campa

Joined: 2007-12-19
Posts: 14
Posted: Fri, 2008-01-18 23:45

Hello ilpleut,

I have been reading your posts and now I would like to install your module into my gallery.

Unfortunately I am not webmaster expert, in your post http://codex.gallery2.org/Gallery2:Modules:recaptcha
you mentioned "install it"

What I did was to create a directory called "recaptcha" in /gallery2/modules/
then put all the files from the zip file that I have downloaded from your homepage
http://ilpleut.be/recaptcha.zip

- I ran the Site Admin->Plugin (ReCaptcha module appeared)
- Install the ReCaptcha module
- Refresh the screen to make the ReCaptcha module also appear in the sidebar
- Select ReCaptcha in the sidebar to input the public and private keys
- Solve the ReCaptcha to prove that I am human
- Success, activated

Now, how do I say to Gallery to use the ReCaptcha module for the comments/login/etc?

In the ReCaptcha sidebar from Admin Options, there is only 3 things (public key, private key and save button)

A configuration as the one in the old Captcha to say when to use ReCaptcha is missing or I can not find it.

Can you help me?

Thank you very much for your support.

BTW, your ultima cena is great!, maybe you want to share with us how you did that?

Ca/\/\pa

**UPDATE**
I think I found my problem,
I have the server at home (internal ip address=x.y.z.20)
I have a computer at home (internal ip address=x.y.z.23)
I have my domain www.domain.com

The plugin installation was done from the server at accessing the gallery at the address http://www.domain.com (keys for www.domain.com)
The computer at home accessed the gallery server at the address x.y.z.20 (not www.domain.com)
Result-> ReCaptcha is not working (dont appears)

The plugin installation was done from the server at accessing the gallery at the address http://www.domain.com (keys for www.domain.com)
The computer at home accessed the gallery server at the address www.domain.com
Result-> ReCaptcha is working (appears)

Lesson learned....
Pay attention to use the same URL for the server name as the domain for the keys.

You request keys for www.domain.com, then you SHOULD access the server with www.domain.com, even if the server is the same computer you are using or if the server is located in your LAN, do not use x.y.z.W, 127.0.0.1, aliasnames, etc

Maybe this can be arrange in the next version of the ReCaptcha module? Also in the ReCaptcha Settings module, there is TYPO -> Your ReCaptach key for domain....
should be: Your ReCaptcha key for domain....

Regards

Ca/\/\pa

 
patrickthickey
patrickthickey's picture

Joined: 2004-08-22
Posts: 164
Posted: Tue, 2008-05-13 23:07

With the most recent release of Gallery, the ReCaptcha challenge is not needed to use the Contact module. In other words, you can simply ignore the challenge and send the mail.

This is resulting in quite a bit of SPAM via the Contact module.

I have sent mail to the developer but not heard back.

regards,

patrick

www.idyll.com

-----------------

Gallery version = 2.2.4 core 1.2.0.6
PHP version = 5.2.5 cgi
Webserver = Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited
Database = mysqlt 5.0.45-community, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, Thumbnail, ImageMagick, NetPBM, Dcraw
Acceleration = none/86400, none/86400
Operating system = Linux 2.6.18-53.1.13.el5PAE #1 SMP Tue Feb 12 13:33:01 EST 2008 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12
Rows in GalleryAccessMap table = 46
Rows in GalleryAccessSubscriberMap table = 2398
Rows in GalleryUser table = 3
Rows in GalleryItem table = 2386
Rows in GalleryAlbumItem table = 143
Rows in GalleryCacheMap table = 0

 
ilpleut

Joined: 2007-10-07
Posts: 11
Posted: Wed, 2008-05-28 20:43

Campa, yes right, your ReCaptcha keys must be created with your gallery2 domain name,
for example, if you put gallery on gallery.ilpleut.be and create your key on ilpleut.be, it won't work, must be the same !!

patrickthickey, I just installed the last version of Gallery2, no problem,
then I searched for a "Contact" module or plugins, but I didn't find anything.

I checked your gallery and you are using ReCaptcha, did you find a solution ?
or could you be more precise ?

thanks

Aurélien

 
gene_wood

Joined: 2003-02-17
Posts: 8
Posted: Mon, 2008-06-02 00:30

I've added a bugfix patch for ReCaptcha v0.4 to ilpleut's ReCaptcha wiki page here : http://ilpleut.be/doku.php/code:recaptcha#bugs. Applying this patch to your v0.4 installation will stop the PHP Notices from filling your apache error logs.

 
ilpleut

Joined: 2007-10-07
Posts: 11
Posted: Mon, 2008-06-02 17:10

thanks Gene_wood !!
I'll put your correction in the next version.

 
psygarden

Joined: 2003-03-25
Posts: 128
Posted: Tue, 2008-07-08 09:38

I'm having an issue with the recaptcha plugin for the contact form on my website http://www.psygarden.be

The recaptcha module displays the visual code, but the form can be submitted without entering the code... does anyone here have a solution for this issue ?

Kind regards,
Rik

 
ilpleut

Joined: 2007-10-07
Posts: 11
Posted: Tue, 2008-07-08 16:59

Hi,

contact form is a gallery plugins, not gallery itself,
that's why it doesn't work (and the fact I don't use it ;)

As it's not the first time I received a complaint about it, I'll try to find a solution.

best regards

Aurélien

 
psygarden

Joined: 2003-03-25
Posts: 128
Posted: Wed, 2008-07-09 13:56

Thanks a lot, i'm looking forward to hearing from you!

I understand this is not a gallery component but a third party addon, i do have a wild hunch that possibly other third party addons that implement the captcha protection could suffer from simular issues?

ps. is there any chance a future version could include:

- some minor settings to enable/disable it seperatly for guest comments, registration and login ? the login is barely ever attacked so it's quite a hassle for my users...
- support for multiple keys if your website runs multiple domains ? (i have psygarden.be psygarden.eu and others, and needed to stop working this way now)

Kind regards,
Rik

 
ilpleut

Joined: 2007-10-07
Posts: 11
Posted: Wed, 2008-07-09 17:44
Quote:
I understand this is not a gallery component but a third party addon, i do have a wild hunch that possibly other third party addons that implement the captcha protection could suffer from simular issues?

yes I hope so :)

Quote:
some minor settings to enable/disable it separately for guest comments, registration and login ? the login is barely ever attacked so it's quite a hassle for my users...

in the current test version (not yet available but activate on my site), it's possible to deactivate recaptcha from the login page.

about the multiple keys, it's already possible.
you have to create a recaptcha key for each of your domain name (a key is directly link to a domain name)
then you have to log in through each of your domains and activate the correspondent key in the recaptcha plugins admin.
(the documentation is not really clear about this ... hope it's now)

best regards

Aurélien

 
ilpleut

Joined: 2007-10-07
Posts: 11
Posted: Sat, 2008-07-12 14:38

Psygarden,

could you tell me where I can find the plugins "contact" ?
I found a version (contact owner) but it's obviously not the same version as you
this one doesn't work with captcha nor recaptcha.

thanks

Aurélien

 
nightfishmaster

Joined: 2008-07-24
Posts: 1
Posted: Thu, 2008-07-24 00:18

hi

i have troubles fully activating the recapture module:
after installing, deactivating old captcha, activating recaptcha, entering public and private key, and solving the recaptcha, i get after 5 seconds a "Could not open socket" on a blank white screen.

any ideas why and how to get recaptcha fully activated?

best regards
nightfishmaster
http://www.thedarkcrusade.info
---
Gallery-Version = 2.2.5 Kern 1.2.0.7
PHP-Version = 4.4.4-8+etch4 apache
Webserver = Apache
Datenbank = mysql 5.0.32-Debian_7etch1-log, lock.system=flock
Werkzeuge = Exif, NetPBM, ArchiveUpload, Thumbnail, Gd, ImageMagick, LinkItemToolkit, jpegtran
Beschleunigung = none/86400, none/86400
Betriebssystem = Linux svielxwww 2.6.18-5-686 #1 SMP Wed Oct 3 00:12:50 UTC 2007 i686
Standard-Motiv = carbonize
gettext = Aktiviert
Sprache = de_DE
Browser = Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Zeilen in der GalleryAccessMap Tabelle = 1331
Zeilen in der GalleryAccessSubscriberMap Tabelle = 6843
Zeilen in der GalleryUser Tabelle = 23
Zeilen in der GalleryItem Tabelle = 6835
Zeilen in der GalleryAlbumItem Tabelle = 96
Zeilen in der GalleryCacheMap Tabelle = 0

 
ilpleut

Joined: 2007-10-07
Posts: 11
Posted: Sat, 2008-07-26 19:08

nightfishmaster,

it seems to be a problem with reCaptcha server.
the reCaptcha's library can't make the connection to the ReCaptcha server to validate the result.

maybe your server is behind a FW preventing it to connect Recaptcha server ?
or a temporary network failure ?

here's some points you can check:
1. you need the mcrypt php module
(I don't see it in your module list: Werkzeuge = Exif, NetPBM, ArchiveUpload, Thumbnail, Gd, ImageMagick, LinkItemToolkit, jpegtran)

2. your server must have the right to make connection to:
http://api.recaptcha.net
& api-verify.recaptcha.net

hope it will help

I looked at your site, great photos & music !! :)

Aurélien

 
mr.anthony337

Joined: 2008-07-12
Posts: 4
Posted: Sun, 2008-08-24 07:54

I installed the recaptcha module (0.4.0), and it went fine. Have public and private keys. But now I can't get it to show up when people put in comments. I have also tried re-enabling captcha, and it will not show up now either. I have both installed and activated, but NEITHER will show up, and all comments can be entered and saved. I'm getting hit with about 200 spam comments a night right now.

my site: www.imnotawhippet.com
my email: mr.anthony337 at gmail.com

Anyhelp would be greatly appreciated.

 
ilpleut

Joined: 2007-10-07
Posts: 11
Posted: Mon, 2008-08-25 18:40

Hi,

After you encoded your public & private keys, did you solve the recaptcha on the configuration panel to activate it ?

I check your site, I don't see any problem.
Recaptcha seems ok to me.

did you solve your problem ?
or can you more precise ?

Aurélien

 
XCOM

Joined: 2002-12-30
Posts: 474
Posted: Sat, 2009-08-29 14:58

Hello,

Nice module! Why i haven't see this months before ...

I have installed it right now. In my case recaptcha was shown only on login and register page, not on the comment page
Captcha was deactivated. After i realized that i have deactivated captcha for comments in the modul, i activated it and set the
high level on comments in the settings. After that, i deactivated the captcha again and recaptcha is know showing
also on the comment page.

Hope the modul is stable :-)

[G2] http://mypics.at

 
XCOM

Joined: 2002-12-30
Posts: 474
Posted: Sat, 2009-08-29 17:31

Hint to set another language and style for recaptcha:

To use eg. german language in the recaptcha script, insert following line into theme.tpl after the body tag.
(You can find the parameters on the recaptcha site)

<script type="text/javascript">var RecaptchaOptions = {ldelim}theme: 'white', tabindex : 2, lang : 'de'{rdelim};</script>

Greetings.

[G2] http://mypics.at

 
longint

Joined: 2008-03-21
Posts: 34
Posted: Sun, 2010-02-28 17:31

In order to get the recaptcha module produce valid XHTML one should change modules/recaptcha/classes/recaptchalib.php:

125c125
< <iframe src="'. $server . '/noscript?k=' . $pubkey . $errorpart . '" height="300" width="500" frameborder="0"></iframe><br/>
---
> <iframe src="'. $server . '/noscript?k=' . $pubkey . $errorpart . '" height="300" width="500" frameborder="0"></iframe><br>
127c127
< <input type="hidden" name="recaptcha_response_field" value="manual_challenge"/>
---
> <input type="hidden" name="recaptcha_response_field" value="manual_challenge">

HTH

http://tei.ch