• Welcome to Simple Machines Community Forum. Please login or sign up.

CAPTCHA (Code Verification)

Started by Daniel15, February 11, 2006, 03:57:53 PM

Previous topic - Next topic

Daniel15

Link to Mod

This MOD enables CAPTCHA-based code verification for SMF. Basically, this means that when a guest tries to register or sign-up, they need to enter in a code displayed in an image. This prevents bots from signing up, and also prevents bots posting in topics (if you have guest posting enabled).

Screenshots: (click to see a larger version)

Forum Registration page:


Replying to a post as a guest:



Configuration screen:


Please tell me what you think. As this is only a beta version (it's the first release), there may still be bugs in it. Please report all bugs, so I can improve it.

Version: 0.1 (Build 1)
(c) 2006 DanSoft Australia: http://www.dansoftaustralia.net/
Tested on SMF 1.0.5, 1.0.6 and 1.1 RC2

Based on HN Captcha (c) 2004 Horst Nogajski (http://hn273.users.phpclasses.org/browse/package/1569.html)
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

Bigguy

When I try to install this it says package is corrupt ??? I am using smf 1.1 RC2. Is this package not for that version ??? it says it is.

Daniel15

February 11, 2006, 07:16:19 PM #2 Last Edit: February 11, 2006, 07:21:49 PM by daniel15
Quote from: Bigguy on February 11, 2006, 07:12:51 PM
When I try to install this it says package is corrupt ??? I am using smf 1.1 RC2. Is this package not for that version ??? it says it is.
Weird... It should work fine...


EDIT: Something weird is happening: If you download it via the SMF admin panel, it doesn't download properly (a bug in it, maybe?). If you download it via my site (http://www.dansoftaustralia.net/ ) or via the SMF MOD page (http://mods.simplemachines.org/index.php?mod=277 ), and then install it, it should work fine.
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

Bigguy

I will try once more to upload it.

Bigguy

It wont upload through the package manager but if you upload manually it does. Nice mod works good so far.

Daniel15

Quote from: Bigguy on February 11, 2006, 07:22:53 PM
It wont upload through the package manager but if you upload manually it does. Nice mod works good so far.
Glad to hear you got it working.

That appears to be a bug with either SMF, or the SMF website. Bug reported :D
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

Bigguy

February 11, 2006, 07:34:31 PM #6 Last Edit: February 12, 2006, 12:40:20 AM by Bigguy
Also I have an empty field in the admin panel above "Number of characters to use for code" Theres nothing beside it at all to tell me what its for.


Daniel15

Quote from: Bigguy on February 11, 2006, 07:34:31 PM
Also I have an empty field in the admin panel above "Number of characters to use for code" Theres nothing beside it at all to tell me what its for.


That was a slight error with the CAPTCHA MOD on SMF 1.1 RC2. It's fixed now, I just uploaded a fixed package.
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

houston

Thank you. I was surprised that SMF did not come with this option to begin with.

Bigguy

Should I use the new one ??? This one is not causing any errors.

Quote from: daniel15 on February 11, 2006, 11:04:38 PM
Quote from: Bigguy on February 11, 2006, 07:34:31 PM
Also I have an empty field in the admin panel above "Number of characters to use for code" Theres nothing beside it at all to tell me what its for.


That was a slight error with the CAPTCHA MOD on SMF 1.1 RC2. It's fixed now, I just uploaded a fixed package.

Daniel15

Quote from: Bigguy on February 12, 2006, 12:40:52 AM
Should I use the new one ??? This one is not causing any errors.

Quote from: daniel15 on February 11, 2006, 11:04:38 PM
Quote from: Bigguy on February 11, 2006, 07:34:31 PM
Also I have an empty field in the admin panel above "Number of characters to use for code" Theres nothing beside it at all to tell me what its for.


That was a slight error with the CAPTCHA MOD on SMF 1.1 RC2. It's fixed now, I just uploaded a fixed package.

It doesn't really matter. The box will do no harm.
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

Bigguy

February 12, 2006, 01:21:18 AM #11 Last Edit: February 12, 2006, 12:51:34 PM by Bigguy
k, cool. This is a very nice mod. Thanks for this. :)

Teknomancer

This mod works wonderfully well ... I'm using SMF 1.1 RC2 absolutely no problems. Works like a charm.

Ofcourse, I haven't tried actually registering an account but the display part the various options etc work fine.

Good Job.
My SMF Forum:

Prasad007

February 12, 2006, 08:22:01 AM #13 Last Edit: February 12, 2006, 08:38:36 AM by Prasad007
It installed cleanly.
But THIS MOD MAKES FORUM REGISTRATION MALFUNCTION. THE REGISTRATION PAGE GOES BLANK.
so i uninstalled it and deleted it.
really hope it worked tho...  ::)

Bigguy

I used a test account and registered and it works great. I also have a "Guest posting" forum and it works great there to for non registered ppl.

Quote from: Teknomancer on February 12, 2006, 06:33:02 AM
This mod works wonderfully well ... I'm using SMF 1.1 RC2 absolutely no problems. Works like a charm.

Ofcourse, I haven't tried actually registering an account but the display part the various options etc work fine.

Good Job.


Harzem

The mod seems to function properly for now.

HOWEVER!!! The colors are not secure. I myself work on captchas, here is my example work: www.harzem.com/captcha.php

The color range for main chars are in 0...127 and the colors for grid or noise chars are in 160...224. There is no overlap, so a computer program can very very easily differenciate it.

if(color(x,y)<=127)
      $mainchar = true;

if(color(x,y)>=160)
      $mainchar = false;

that's it. I'm waiting from the author to make it 0...160 for chars and 100...224 for noise. I did and it seems fine for me.

Daniel15

Quote from: HarzeM on February 13, 2006, 02:59:59 PM
The mod seems to function properly for now.

HOWEVER!!! The colors are not secure. I myself work on captchas, here is my example work: www.harzem.com/captcha.php

The color range for main chars are in 0...127 and the colors for grid or noise chars are in 160...224. There is no overlap, so a computer program can very very easily differenciate it.
[.......]
that's it. I'm waiting from the author to make it 0...160 for chars and 100...224 for noise. I did and it seems fine for me.
Well, the CAPTCHA algorithm is made by someone else... It's called 'HN CAPTCHA', available at http://hn273.users.phpclasses.org/browse/package/1569.html . It was the best one I could find, basically all other CAPTCHA scripts are just writing letters onto a blank canvas, or onto a simple grid. The idea of having 'noise' is excellent.

Your CAPTCHA looks great though! Only problem is the relatively large page size...

QuoteIt installed cleanly.
But THIS MOD MAKES FORUM REGISTRATION MALFUNCTION. THE REGISTRATION PAGE GOES BLANK.
so i uninstalled it and deleted it.
really hope it worked tho...
I'll try to see what the problem is... Does your server have the GD Library and FreeType installed?
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

Harzem

Quote from: daniel15 on February 15, 2006, 12:09:48 AM
Your CAPTCHA looks great though! Only problem is the relatively large page size...

It doesn't use GD or images, so it is large, around 60 k. But this is because my way of producing, it is html code. If you know how to convert it to GD images, I will be more than happy to do this with you ;)

BTW, I suggest you to change the colors as I said before. 0..160 for chars and 100..224 for noise.

Razerst

it works fine for me. But, can I change it to all numbers? because the words are hard to look well

H

Nice. This is the best mod I have ever seen for SMF. Nice integration as well.
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

Advertisement: