Advertisement:

Author Topic: notCaptcha  (Read 99311 times)

Offline fr3aker

  • Semi-Newbie
  • *
  • Posts: 63
notCaptcha
« on: February 11, 2011, 12:56:08 PM »
Link to Mod



About

notCaptcha is an unconventional captcha mod that requires human intelligence to be solved. Instead of entering some hardly readable text from some ugly picture, the user needs to spin pictures into the right position. It's easy for every human and nearly unsolvable by a computer.

Advantages:
  • easily solvable
  • funny pictures
  • ability to use your own pictures (highly recommended!)
  • currently not cracked by any spambot (if using custom pictures)

Disadvantages:
  • unsolvable by visually handicapped people
  • mobile users cannot register (e.g. IPhone)


Use your own pictures
Download the createOwnPics_INFO.zip file.
You will find a readme.txt and a template.psd.
See the readme.txt for information on how to create and name your pictures properly.

Using your own pictures instead of the included ones will significantly increase security of this captcha!

You can have a look at the notcaptcha/gallery directory of your SMF installation for examples.


Languages
    • Czech Thanks to sejrac!
    • Danish Thanks to schnipper!
    • English
    • French Thanks to Ar-S!
    • German
    • Italian Thanks to caribe1999!
    • Polish Thanks to becometa!
    • Portuguese Thanks to candidosa2!
    • Russian Thanks to AERUSUA!
    • Serbian (cyrillic) Thanks to ZakM!
    • Spanish Latin Thanks to nicofarina!
    • Turkish Thanks to Ilkharnos!

    If you like to provide other translations, feel free to post them in the forum thread!



Install
If you're using the default theme there is nothing to do other than installing the mod via the admin interface.
But you might want to have a look at notcaptcha/notcaptcha_config.php for some custom settings.


If you are using a custom theme you need to edit one to two files. (Register.template.php is not included in every template and so does not need to be changed manually)

index.template.php (for SMF 1.x and 2.x)
add
[/list]
Code: [Select]
';

// add notCaptcha code
if(function_exists('notCaptcha_AddCss'))
notCaptcha_AddCss();
echo '
right before
Code: [Select]
</head>

Register.template.php (for SMF 1.x)
add
Code: [Select]
// add notCaptcha
echo '<tr><td width="40%"><strong>'.$txt['notcaptcha_form1'].'</strong><br />
<div class="smalltext">'.$txt['notcaptcha_form2'].'<img src="'.$modSettings['notCaptcha']['url'].'vertical_sign.png" alt="^" border="0" /></div></td><td>
<div style="display:block;padding-bottom:5px;" id="captchaImgDiv">';
notCaptcha_AddToRegisterForm();
echo '
</div></td></tr>';
before
Code: [Select]
// Are there age restrictions in place?

Register.template.php (for SMF 2.x)
The mod should install fine for SMF 2.x as it supports modifying all installed themes. Else you need to parse the install_2.xml by yourself and figure out where to put the code.


That's it!

ChangeLog:

Quote
Version 1.0 - 03.02.2011
   * Initial release
Version 1.01 - 12.02.2011
   o Config is now dynamically generated on install, including a random salt for cookie encryption. This will make cracking much harder for spammers.
   + Portuguese translation Thanks to candidosa2!
   + Polish translation Thanks to becometa!
   ? there is no need to update if you have installed v1.0 already
Version 1.02 - 12.02.2011
   ! fixed session changes not handled properly
   ? backup your notcaptcha_config.php and newly added pictures, uninstall and install the new version
Version 1.03 - 13.02.2011
   ! cookie exception handling
   * some code cleanup
   ? completely reinstall notCaptcha (including your config), backup your custom pictures
Version 1.04 - 13.02.2011
   ! fixed no images showing when guests are not allowed to see the forum
   ? backup your notcaptcha_config.php and newly added pictures, uninstall and install the new version
Version 1.05 - 20.02.2011
   ! session error when standard SMF captcha was entered wrong first but notCaptcha was right
   * minor code cleanup
   ? backup your notcaptcha_config.php and newly added pictures, uninstall and install the new version
Version 1.06 - 23.02.2011
   ! session problems during registration when some data was entered wrongly
   * improved SMF2 compatibility
   ? backup your notcaptcha_config.php and newly added pictures, uninstall and install the new version
Version 1.06.1 - 23.02.2011
   * updated license information
Version 1.06.2 - 11.03.2011
   + Russian translation Thanks to AERUSUA!
   + Spanish Latin translation Thanks to nicofarina!
Version 1.06.3 - 17.03.2011
   + Italian translation Thanks to caribe1999!
Version 1.06.4 - 03.04.2011
   + French translation Thanks to Ar-S!
Version 1.06.5 - 05.07.2011
   + Czech translation Thanks to sejrac!
   + Serbian (cyrillic) translation Thanks to ZakM!
   + Turkish translation Thanks to Ilkharnos!
   + Danish translation Thanks to schnipper!
   o verified compatibility with SMF 1.1.14 and SMF 2.0
Quote
Legend
oFeature
*Change
+Added
-Eliminated
!Bug Fixed
?How to Update



Author/License
This mod was originally published as a Wordpress plugin by WebJema and published under the GPL license.
The SMF mod you are seeing right now is published under the LGPL v3 license (with permission of WebJema) and has been ported to SMF by fr3aker.
« Last Edit: July 27, 2011, 03:29:02 PM by fr3aker »

Offline Masterd

  • SMF Hero
  • ******
  • Posts: 3,921
  • Gender: Male
Re: notCaptcha
« Reply #1 on: February 11, 2011, 01:09:03 PM »
Nice mod! :D

Offline TheCodfather

  • Semi-Newbie
  • *
  • Posts: 82
Re: notCaptcha
« Reply #2 on: February 11, 2011, 03:45:59 PM »
loooks very interesting thanks for your work  ill give it a try

Offline Joomlamz

  • SMF Hero
  • ******
  • Posts: 2,631
  • Gender: Male
  • Suporte SmfPT
    • apllicmz on Facebook
    • apllicmz on GitHub
    • https://www.linkedin.com/in/aplic on LinkedIn
    • @aplichosting on Twitter
    • Webdesign
Re: notCaptcha
« Reply #3 on: February 12, 2011, 02:05:33 AM »
Thank you
portuguese_pt
tranalste

Code: [Select]
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
           
// begin notCaptcha strings translate by candidosa2
$txt['notcaptcha_gd_not_enabled'] = '<p style="color:maroon">ERRO: Captcha sem o plugin: GD n&atilde;o suporta a imagemm ou n&atilde;o &eacute; detectado no PHP!</p>';
$txt['notcaptcha_jpegpnggif'] = '<p style="color:maroon">ERRO: Captcha esta sem plugin: nenhuma imagem para criar fun&ccedil;&atilde;o (imagepng/imagejpeg/imagegif) A func&atilde;o n&atilde;o foi detectado em PHP!</p>';

$txt['notcaptcha_form1'] = 'Captcha Completo:';
$txt['notcaptcha_form2'] = 'Coloque esses &iacute;cones<b>vertical</b>';
$txt['notcaptcha_reload'] = 'Actualizar imagens';
$txt['notcaptcha_move_em'] = 'Mova os slides para mudar o &acirc;ngulo das imagens';
$txt['notcaptcha_nojs'] = '<b>ERRO:</b> Voc&ecirc; precisa activar o JavaScript e permitir que tempor&aacute;ria cookies!';

$txt['notcaptcha_error_notdone'] = '<strong>ERRO</strong>: Por favor, complete o Captcha.';
$txt['notcaptcha_error_toomuch'] = '<strong>ERRO</strong>: Voc&ecirc; fez tamb&eacute;m muitas tentativas de introduzir Captcha. Pressione o bot&atilde;o BACK do seu browser, <b>reload images</b> e tente novamente.';
$txt['notcaptcha_error_session'] = '<strong>ERRO</strong>: Sess&atilde;o incorreta Por favor, recarregar a p&aacute;gina  web.';
$txt['notcaptcha_error_fail'] = '<strong>ERRO</strong>: Isso n&atilde;o e captcha esta incorreto.';
]]></add>
        </operation>
    </file>



Offline fr3aker

  • Semi-Newbie
  • *
  • Posts: 63
Re: notCaptcha
« Reply #4 on: February 12, 2011, 04:24:30 AM »
Thanks for the translation!

Offline becometa

  • Jr. Member
  • **
  • Posts: 113
Re: notCaptcha
« Reply #5 on: February 12, 2011, 05:51:03 AM »
There's something wrong in the download section, there's no package file?
Or i'm wrong  ???

Soon I will translate it to Polish.

Offline fr3aker

  • Semi-Newbie
  • *
  • Posts: 63
Re: notCaptcha
« Reply #6 on: February 12, 2011, 05:54:08 AM »
I was just updating the package :)

Quote
Changelog:
  o Config is now dynamically generated on install, including a random salt for cookie encryption. This will make cracking much harder for spammers.
  + Portuguese translation Thanks to candidosa2!


There is no need for updating if you have already installed the initial release.


greez fr3aker
« Last Edit: February 12, 2011, 06:01:49 AM by fr3aker »

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,500
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: notCaptcha
« Reply #7 on: February 12, 2011, 06:05:18 AM »
Allright what is that for stupid image sharing service...can you upload to ImageShack please?

Looks like a nice mod though.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline becometa

  • Jr. Member
  • **
  • Posts: 113
Re: notCaptcha
« Reply #8 on: February 12, 2011, 06:07:04 AM »
Here comes the Polish(UTF8) translation of mod.

Code: [Select]
// begin notCaptcha strings
$txt['notcaptcha_gd_not_enabled'] = '<p style="color:maroon">BŁĄD: plugin notCaptcha: nie wykryto biblioteki GD image w PHP!</p>';
$txt['notcaptcha_jpegpnggif'] = '<p style="color:maroon">BŁĄD: plugin notCaptcha: brak funkcji tworzenia obrazków (imagepng/imagejpeg/imagegif) w PHP!</p>';

$txt['notcaptcha_form1'] = 'Przejdź przez proces CAPTCHA:';
$txt['notcaptcha_form2'] = 'Ułóż obrazki w <b>pionie</b>';
$txt['notcaptcha_reload'] = 'Przeładuj obrazki';
$txt['notcaptcha_move_em'] = 'Przesuń suwak aby zmienić kąt ustawienia obrazków';
$txt['notcaptcha_nojs'] = '<b>BŁĄD:</b> Musisz włączyć obsługę JavaScript oraz zezwolić na tymczasowe ciasteczka!';

$txt['notcaptcha_error_notdone'] = '<strong>BŁĄD</strong>: Proszę dokończyć dokończyć proces CAPTCHA.';
$txt['notcaptcha_error_toomuch'] = '<strong>BŁĄD</strong>: Wykryto za dużo błędnych prób przejścia przez proces CAPTCHA. Wciśnij przycisk wróć w swojej przeglądarce, a następnie naciśnij przycisk "przeładuj obrazki" i spróbuj ponownie.';
$txt['notcaptcha_error_session'] = '<strong>BŁĄD</strong>: Nieprawidłowa sesja. Proszę odśwież stronę.';
$txt['notcaptcha_error_fail'] = '<strong>BŁĄD</strong>: Błędna CAPTCHA.';

Offline fr3aker

  • Semi-Newbie
  • *
  • Posts: 63
Re: notCaptcha
« Reply #9 on: February 12, 2011, 06:43:49 AM »
it wasnt the image sharing service's fault but mine^^


thanks for the translation, becometa :)

Offline aw06

  • SMF Hero
  • ******
  • Posts: 2,763
  • Gender: Male
  • Make The Link
    • shopinja.classifieds on Facebook
    • @shopinja on Twitter
    • ShopinJA.com
Re: notCaptcha
« Reply #10 on: February 12, 2011, 08:13:11 AM »
Nice mod .. love it .. thanks much 8)

No to see if it wards away bots..
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Offline aw06

  • SMF Hero
  • ******
  • Posts: 2,763
  • Gender: Male
  • Make The Link
    • shopinja.classifieds on Facebook
    • @shopinja on Twitter
    • ShopinJA.com
Re: notCaptcha
« Reply #11 on: February 12, 2011, 08:20:30 AM »
Hmm, mod was working .. closed browser .. now the images not loading ....

Error in log..

Code: [Select]
8: Undefined index: nc_session
File: /home/xxx/public_html/forum/Sources/Register.php
Line: 713

Line 713
Code: [Select]
if ($_SESSION['nc_session'] != session_id()) {
Any Ideas ?? I installed on 1.1.13
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Offline fr3aker

  • Semi-Newbie
  • *
  • Posts: 63
Re: notCaptcha
« Reply #12 on: February 12, 2011, 08:28:31 AM »
deleting temporary cookies and reloading the page will do it. Else, wait for 15 minutes and reload the page then.

I will add an exception handler in the next version for this, thanks for reporting :)

Offline aw06

  • SMF Hero
  • ******
  • Posts: 2,763
  • Gender: Male
  • Make The Link
    • shopinja.classifieds on Facebook
    • @shopinja on Twitter
    • ShopinJA.com
Re: notCaptcha
« Reply #13 on: February 12, 2011, 08:31:03 AM »
deleting temporary cookies and reloading the page will do it. Else, wait for 15 minutes and reload the page then.

I will add an exception handler in the next version for this, thanks for reporting :)

Reloading does not work, will wait 15mins and see...

So does this only happen to the individual user ?? and what causes this to happen ? ... If possible can you tell me how to add the exception to fix ?? really don't want the same happening to users trying to register, i see where the error logs will be overloaded..
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Offline fr3aker

  • Semi-Newbie
  • *
  • Posts: 63
Re: notCaptcha
« Reply #14 on: February 12, 2011, 08:39:33 AM »
it only happens when you get a new session (eg closing the browser) and visited the register form without registering within 15 minutes.

the bugfix is near to ready (ill just have to test it)

Offline aw06

  • SMF Hero
  • ******
  • Posts: 2,763
  • Gender: Male
  • Make The Link
    • shopinja.classifieds on Facebook
    • @shopinja on Twitter
    • ShopinJA.com
Re: notCaptcha
« Reply #15 on: February 12, 2011, 08:43:21 AM »
it only happens when you get a new session (eg closing the browser) and visited the register form without registering within 15 minutes.

the bugfix is near to ready (ill just have to test it)

Ok kool, i eagerly await the fix .. :)
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Offline aw06

  • SMF Hero
  • ******
  • Posts: 2,763
  • Gender: Male
  • Make The Link
    • shopinja.classifieds on Facebook
    • @shopinja on Twitter
    • ShopinJA.com
Re: notCaptcha
« Reply #16 on: February 12, 2011, 09:03:09 AM »
O yeah., also .. i have changed this ..

Code: [Select]
# JPEG quality of NOTCAPTCHA image (bigger is better quality, but larger file (image) size)
$modSettings['notCaptcha']['notcaptcha_jpeg_quality'] = 100;

Is 100 max ?? if i put 200 would quality get any better ??

Also, if possible can you put an admin panel option to disable to mod if needs be .. instead of a full uninstall ...
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Offline fr3aker

  • Semi-Newbie
  • *
  • Posts: 63
Re: notCaptcha
« Reply #17 on: February 12, 2011, 09:10:40 AM »
The bug has been fixed and version 1.02 is available to download!


100 is max, php might throw an error if you enter a value above 100. But 70-80 should be fine.

I have currently not planed to implement admin panel options, maybe in some future version.
« Last Edit: February 12, 2011, 09:14:01 AM by fr3aker »

Offline aw06

  • SMF Hero
  • ******
  • Posts: 2,763
  • Gender: Male
  • Make The Link
    • shopinja.classifieds on Facebook
    • @shopinja on Twitter
    • ShopinJA.com
Re: notCaptcha
« Reply #18 on: February 12, 2011, 09:25:28 AM »
The bug has been fixed and version 1.02 is available to download!


100 is max, php might throw an error if you enter a value above 100. But 70-80 should be fine.

I have currently not planed to implement admin panel options, maybe in some future version.

Thanks much, installed and error logs now clean ... :) Will report back if other issue should arise
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Offline aw06

  • SMF Hero
  • ******
  • Posts: 2,763
  • Gender: Male
  • Make The Link
    • shopinja.classifieds on Facebook
    • @shopinja on Twitter
    • ShopinJA.com
Re: notCaptcha
« Reply #19 on: February 12, 2011, 02:50:35 PM »
What does this error mean ??

Quote
Incorrect session. Please, reload web-page

Got it after i tried to register,, figuring it has something to do with me being logged into smf via another browser..
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth