News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

notCaptcha

Started by fr3aker, February 11, 2011, 12:56:08 PM

Previous topic - Next topic

fr3aker

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]';

// add notCaptcha code
if(function_exists('notCaptcha_AddCss'))
notCaptcha_AddCss();
echo '

right before
</head>


Register.template.php (for SMF 1.x)
add

// 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
// 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:




QuoteVersion 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

QuoteLegend

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.

Masterd


TheCodfather

loooks very interesting thanks for your work  ill give it a try

Apllicmz

Thank you
portuguese_pt
tranalste

<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>



fr3aker

Thanks for the translation!

becometa

There's something wrong in the download section, there's no package file?
Or i'm wrong  ???

Soon I will translate it to Polish.

fr3aker

#6
I was just updating the package :)

QuoteChangelog:
  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

NanoSector

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."

becometa

Here comes the Polish(UTF8) translation of mod.

// 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.';

fr3aker

it wasnt the image sharing service's fault but mine^^


thanks for the translation, becometa :)

aw06

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

aw06

Hmm, mod was working .. closed browser .. now the images not loading ....

Error in log..

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


Line 713
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

fr3aker

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 :)

aw06

Quote from: fr3aker 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 :)

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

fr3aker

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)

aw06

Quote from: fr3aker 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)

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

aw06

O yeah., also .. i have changed this ..

# 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

fr3aker

#17
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.

aw06

Quote from: fr3aker 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.

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

aw06

What does this error mean ??

QuoteIncorrect 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

Advertisement: