Captcha for new Moodle sign-ups

Captcha for new Moodle sign-ups

par Bill Best,
Nombre de réponses : 12
Hi

Our Moodle installation is being hammered by spammers trying to sign up for accounts.

They never follow through the step of account confirmation but we still have to go in and delete the accounts one by one. We've had a look at Admin ->users-> authentication but can't see any step to use to implement a captcha test to stop machines from signing up.

Is there anything available or in development at all?

With best regards

Bill
--
Sheffield, UK
http://www.communityradiotoolkit.net/
Moyenne des évaluations  -
En réponse à Bill Best

Re: Captcha for new Moodle sign-ups

par Iñaki Arenaza,
Avatar Core developers Avatar Documentation writers Avatar Peer reviewers Avatar Plugin developers

Is there anything available or in development at all?

Nothing that I'm aware of triste

Saludos. Iñaki.

En réponse à Iñaki Arenaza

Re: Captcha for new Moodle sign-ups

par Anthony Borrow,
Avatar Core developers Avatar Plugin developers Avatar Testers
There was a CAPTCHA question type in the feedback module. I'm not sure how much of that code might be useful. There are also other FOSS projects - like PHPbb that as I remember were using CAPTCHA with registration. Hopefully it will not be too difficulty to put something together. It sounds like a reasonable feature request so if it is not already in the tracker please feel free to add it. Peace - Anthony
En réponse à Bill Best

Re: Captcha for new Moodle sign-ups

par Steve Hyndman,

I use the script at the link below in some other web applications, but not in Moodle...I did test it a few months ago on an old Moodle site that I no longer use...see it here by clicking on the "Create new account" button...if it's working correctly, then you shouldn't be able to get to the account creation page.

If I were going to use it on an active Moodle site, I would simply add the username and password to the sign-up page so "real people" would know what to enter...then I may even periodically change the username and password. Not exactly Captcha, but accomplishes the same result.

http://www.phpsecurepages.com/

Steve

En réponse à Bill Best

Re: Captcha for new Moodle sign-ups

par Martín Langhoff,
I haven't heard of anything either. Not too hard to do though clin d’œil

OTOH, an easier fix would be to add a cron task to purge those stale never confirmed accounts after 48hs.
En réponse à Martín Langhoff

Re: Captcha for new Moodle sign-ups

par Bill Best,
Hi

Martin said:
> I haven't heard of anything either. Not too hard to do though
wink

Ok, got any clues?

There are a few free captcha scripts available but I have no idea as to how to integrate with ../login/signup_form.php

> OTOH, an easier fix would be to add a cron task to purge those stale never
> confirmed accounts after 48hs.


Sounds good to me. Any clues as to where the unconfirmed account data is held. I've checked various tables but no joy so far.

Many thanks in advance and best regards

Bill
--
Sheffield, UK
En réponse à Bill Best

Re: Captcha for new Moodle sign-ups

par Chardelle Busch,
Avatar Core developers
Or, you could set the cleanup (Admin>Server>Cleanup) to less than 7 days (the default time when unconfirmed accounts are automatically deleted).
En réponse à Bill Best

Re: Captcha for new Moodle sign-ups

par Stephen Bourget,
Avatar Core developers Avatar Plugin developers Avatar Testers
You may want to look at tracker issue number MDL-7407. It looks like someone wrote one and posted a patch there
En réponse à Stephen Bourget

Re: Captcha for new Moodle sign-ups

par Garfield Lucas,
I just discovered that spambots have hit our site with sqillions of spammy requests for membership. Whilst none are approved and none of our students can actually see them, it is still a damned nuisance getting rid of them all.

Just wanted to say that I applied the patch detailed in the previous post. It only took a few minutes to do and it seems to work very well indeed. Only thing is, I suggest you you use the later freecap_patch2.zip patch c/w language file.

Also if you overwrite the existing signup_form.php with the one contained in the patch the you do NOT need to execute...
patch -p < signup_form.php.diff

But you MUST edit your moodle/config.php adding this line...
$CFG->usecaptcha = true

I really hope that this (or something similar) will be built in to future releases of Moodle as standard because spambots are really becoming a nightmare for site admins.

Best wishes, Garf.
En réponse à Garfield Lucas

Re: Captcha for new Moodle sign-ups

par Tony Hursh,
Whilst none are approved and none of our students can actually see them, it is still a damned nuisance getting rid of them all.

Set "Delete unconfirmed users after" to "1 hour" in Administration/Server/Cleanup and they should go away without having to do a manual delete.



En réponse à Tony Hursh

Re: Captcha for new Moodle sign-ups

par Garfield Lucas,
Thanks Tony. I did that too - albeit only until all the bogus users had disappeared off our system.

Strangely enough, the bogus users didn't disappear after the first cron - which worried me a little. But they did after the second. Certainly simpler (and safer) than running an update query on the "Users" table in PHPMyAdmin!

Thing is I really wanted to stop it happening in the first place. It is hogging bandwidth, generating email traffic that bounces back to me and most importantly, I want to allow legitimate users plenty of time to pick up their mail. The "Captcha" patch certainly seems to do the trick.

One up for the Moodle community methinks! Thanks to everyone who helped in resolving this.

Best wishes, G.
En réponse à Garfield Lucas

Re: Captcha for new Moodle sign-ups

par Dan Romanchik,
I am running an old version (1.4.2) of Moodle on www.flxclasses.com. I tried applying this patch to install Captcha, but it doesn't seem to be working. I did overwrite the existing signup_form.php and did edit the config.php file. I did not run the patch program.

Fortunately, the signup form still seems to work, but I'm not seeing and Captchas.

Dan
En réponse à Dan Romanchik

Re: Captcha for new Moodle sign-ups

par David Mudrák,
Avatar Core developers Avatar Documentation writers Avatar Moodle HQ Avatar Particularly helpful Moodlers Avatar Peer reviewers Avatar Plugin developers Avatar Plugins guardians Avatar Testers Avatar Translators
Dan,

IIRC, the patch was written for 1.8. I recommend you to upgrade to a more recent version of Moodle - 1.4 is so old you can't expect backporting new features.