Advertisement:

Author Topic: CAPTCHA (Code Verification)  (Read 107113 times)

Offline Daniel15

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,221
  • Gender: Male
  • http://dan.cx/
    • daaniel on Facebook
    • Daniel15 on GitHub
    • daniel15 on LinkedIn
    • @Daniel15 on Twitter
    • Daniel15
CAPTCHA (Code Verification)
« on: February 11, 2006, 03:57:53 PM »
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!

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,307
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • SMF Helper
Re: CAPTCHA (Code Verification)
« Reply #1 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.
Tell us....Whats Ur Beef

Offline Daniel15

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,221
  • Gender: Male
  • http://dan.cx/
    • daaniel on Facebook
    • Daniel15 on GitHub
    • daniel15 on LinkedIn
    • @Daniel15 on Twitter
    • Daniel15
Re: CAPTCHA (Code Verification)
« Reply #2 on: February 11, 2006, 07:16:19 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.
« Last Edit: February 11, 2006, 07:21:49 PM by daniel15 »
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!

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,307
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • SMF Helper
Re: CAPTCHA (Code Verification)
« Reply #3 on: February 11, 2006, 07:18:51 PM »
I will try once more to upload it.
Tell us....Whats Ur Beef

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,307
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • SMF Helper
Re: CAPTCHA (Code Verification)
« Reply #4 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.
Tell us....Whats Ur Beef

Offline Daniel15

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,221
  • Gender: Male
  • http://dan.cx/
    • daaniel on Facebook
    • Daniel15 on GitHub
    • daniel15 on LinkedIn
    • @Daniel15 on Twitter
    • Daniel15
Re: CAPTCHA (Code Verification)
« Reply #5 on: February 11, 2006, 07:33:05 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!

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,307
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • SMF Helper
Re: CAPTCHA (Code Verification)
« Reply #6 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.

« Last Edit: February 12, 2006, 12:40:20 AM by Bigguy »
Tell us....Whats Ur Beef

Offline Daniel15

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,221
  • Gender: Male
  • http://dan.cx/
    • daaniel on Facebook
    • Daniel15 on GitHub
    • daniel15 on LinkedIn
    • @Daniel15 on Twitter
    • Daniel15
Re: CAPTCHA (Code Verification)
« Reply #7 on: February 11, 2006, 11:04:38 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!

Offline houston

  • Jr. Member
  • **
  • Posts: 149
Re: CAPTCHA (Code Verification)
« Reply #8 on: February 11, 2006, 11:27:28 PM »
Thank you. I was surprised that SMF did not come with this option to begin with.

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,307
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • SMF Helper
Re: CAPTCHA (Code Verification)
« Reply #9 on: February 12, 2006, 12:40:52 AM »
Should I use the new one ??? This one is not causing any errors.

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.
Tell us....Whats Ur Beef

Offline Daniel15

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,221
  • Gender: Male
  • http://dan.cx/
    • daaniel on Facebook
    • Daniel15 on GitHub
    • daniel15 on LinkedIn
    • @Daniel15 on Twitter
    • Daniel15
Re: CAPTCHA (Code Verification)
« Reply #10 on: February 12, 2006, 01:19:30 AM »
Should I use the new one ??? This one is not causing any errors.

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!

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,307
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • SMF Helper
Re: CAPTCHA (Code Verification)
« Reply #11 on: February 12, 2006, 01:21:18 AM »
k, cool. This is a very nice mod. Thanks for this. :)
« Last Edit: February 12, 2006, 12:51:34 PM by Bigguy »
Tell us....Whats Ur Beef

Offline Teknomancer

  • Jr. Member
  • **
  • Posts: 117
  • Gender: Male
    • Toons & Comics
Re: CAPTCHA (Code Verification)
« Reply #12 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.
My SMF Forum:

Offline Prasad007

  • SMF Hero
  • ******
  • Posts: 1,557
  • Gender: Male
  • JOOMLA AND SMF FAN!!
Re: CAPTCHA (Code Verification)
« Reply #13 on: February 12, 2006, 08:22:01 AM »
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...  ::)
« Last Edit: February 12, 2006, 08:38:36 AM by Prasad007 »

Offline Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,307
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • SMF Helper
Re: CAPTCHA (Code Verification)
« Reply #14 on: February 12, 2006, 12:53:07 PM »
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.

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.

Tell us....Whats Ur Beef

Offline Harzem

  • SMF Hero
  • ******
  • Posts: 5,384
  • Gender: Male
  • I know, my avatar is nerve-wracking!
Re: CAPTCHA (Code Verification)
« Reply #15 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.

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.

Offline Daniel15

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,221
  • Gender: Male
  • http://dan.cx/
    • daaniel on Facebook
    • Daniel15 on GitHub
    • daniel15 on LinkedIn
    • @Daniel15 on Twitter
    • Daniel15
Re: CAPTCHA (Code Verification)
« Reply #16 on: February 15, 2006, 12:09:48 AM »
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...

Quote
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...
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!

Offline Harzem

  • SMF Hero
  • ******
  • Posts: 5,384
  • Gender: Male
  • I know, my avatar is nerve-wracking!
Re: CAPTCHA (Code Verification)
« Reply #17 on: February 15, 2006, 09:33:31 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.

Offline Razerst

  • Semi-Newbie
  • *
  • Posts: 12
  • The Great Don
Re: CAPTCHA (Code Verification)
« Reply #18 on: February 16, 2006, 02:16:53 AM »
it works fine for me. But, can I change it to all numbers? because the words are hard to look well

Offline H

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,660
  • Gender: Male
Re: CAPTCHA (Code Verification)
« Reply #19 on: February 16, 2006, 01:04:08 PM »
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)