| CaptchaPlugin |
|
< < | Plugin for visual confirmation of new user registration, to prevent automated scripts to create users and spam your wiki with their url's to get a better google ranking. |
> > | A visual confirmation plugin, known as Captcha, for new user registration. This plugin prevents automated scripts in creating users and spam your wiki with their url's to get a better google ranking. |
| |
|
-
- Set SHORTDESCRIPTION = Plugin for Captcha verification / visual confirmation of new user registration.
- Debug plugin: (See output in
data/debug.txt )
|
|
< < | |
> > | |
|
- Custom settings (defaults shown):
|
|
< < |
-
- Characters to use in generated strings:
- Set CHARACTERS = ABCDEFGHKLMNPRSTVWXYZabcdeghpqsuvwxy@
- Truetype font to use (place the font in
$prefix/pub/TWiki/CaptchaPlugin , good source of apparently free fonts is http://www.webpagepublicity.com/free-fonts.html):
- Set FONT = TahomaBold? .ttf
- Number of random lines to add (use
none for 0):
- Number of random circles to add (use
none for 0):
- Noise, percentage of pixels to flip randomly after generating graphics (use
none for 0%):
|
> > |
-
- Number of characters for Captcha:
- The characters that you want to use in Captcha:
- Set CHARACTERS = abcdefghijklmnopqrstuvwxyz%&?@!1234567890
|
|
Plugin Installation Instructions |
|
File: |
Description: |
data/TWiki/CaptchaPlugin.txt |
Plugin topic |
data/TWiki/CaptchaPlugin.txt,v |
Plugin topic repository |
|
|
< < |
register.patch |
Patch for the register module |
|
> > |
register-4.1.2.patch |
Patch for the register module |
|
|
templates/oopscaptcha.tmpl |
Error template |
lib/TWiki/Plugins/CaptchaPlugin.pm |
Plugin Perl module |
|
|
< < |
pub/TWiki/CaptchaPlugin/TahomaBold.ttf |
Default font |
|
> > |
pub/TWiki/CaptchaPlugin/Fonts/ |
Fonts directory |
|
|
pub/TWiki/CaptchaPlugin/_db |
Hash database directory |
pub/TWiki/CaptchaPlugin/_img |
Image directory |
|
|
< < |
- Apply the patch
register.patch to lib/TWiki/UI/Register.pm (alternatively, patch Register.pm manually, see section below), be sure to make a backup so you can revert the patch if you want to disable the plugin:
|
> > |
- Apply the patch
register-4.1.2.patch to lib/TWiki/UI/Register.pm (alternatively, patch Register.pm manually, see section below), be sure to make a backup so you can revert the patch if you want to disable the plugin:
|
|
-
- cd /path/to/twiki
- cp lib/TWiki/UI/Register.pm lib/TWiki/UI/Register.pm.dist
- patch < ../register.patch
|
| deny from all
</Directory>
|
|
< < |
- Make sure the plugin has access to the preferred truetype font, by putting the
.ttf file in pub/TWiki/CaptchaPlugin/
|
> > |
- Install necessary TrueType fonts in to
pub/TWiki/CaptchaPlugin/Fonts/
- This allows the plugin to randomly choose the fonts to use
|
|
- Test if the installation was successful:
- Create a topic containing
<IMG SRC="%CAPTCHAURL%"> and %CAPTCHAHASH%
- When loading this topic you should see an obfuscated character string loaded as a png and a hexadecimal hash.
|
|
Manually patching the register binary |
|
> > | Refer to the patch file. |
| |
|
> > | Guide for TWiki 4.0.5 |
| Find these lines in lib/TWiki/UI/Register.pm :
}
|
|
Further Development |
|
< < |
- Make number of characters configurable
- Make font size configurable
- Find out how to safely delete images from the register binary
|
> > |
- Fix timer (expiry)
- Refactor to comply with TWiki's convention
- Remove created .png files
- Adjustable font size range
- Adjustable height and width
- Option of Black and White only
|
|
Plugin Info |
|
< < |
Plugin Author: |
TWiki:Main.KoenMartens |
Plugin Version: |
03 Aug 2006 (V1.2) |
Change History: |
<-- versions below in reverse order --> |
07 Oct 2005: |
Initial version |
10 Oct 2005: |
Strip hash and text from arguments to register binary, or they will end up in the newly created user topic. |
03 Jan 2006: |
Fixed some problems with expiry, also optimised according to TWiki:TWiki.TWikiPlugins#FastPluginHints. |
|
> > |
Plugin Author: |
TWiki:Main.KoenMartens, TWiki:Main.KwangErnLiew |
Plugin Version: |
06 Aug 2007 1.5-pre1 |
Change History: |
|
06 Aug 2007: |
Colourised fonts; Randomised font type, font size, background colour, and font positioning; Fixed hash display on user pages; Modified oopscaptcha.tmpl |
|
|
03 Aug 2006: |
Renamed to CaptchaPlugin, adapted to Dakar (TWiki 4.0.x). |
|
|
> > |
03 Jan 2006: |
Fixed some problems with expiry, also optimised according to TWiki:TWiki.TWikiPlugins#FastPluginHints. |
10 Oct 2005: |
Strip hash and text from arguments to register binary, or they will end up in the newly created user topic. |
07 Oct 2005: |
Initial version |
|
|
TWiki Dependency: |
$TWiki::Plugins::VERSION 1.1 |
CPAN Dependencies: |
GD, Digest::MD5 |
Other Dependencies: |
none |
|
|
-- TWiki:Main.KoenMartens - 03 Aug 2006 |
|
< < |
META FILEATTACHMENT |
attr="" autoattached="1" comment="" date="1154546219" name="luxisbi.ttf" path="luxisbi.ttf" size="65568" user="UnknownUser" version="" |
META FILEATTACHMENT |
attr="" autoattached="1" comment="" date="1154548091" name="TahomaBold.ttf" path="TahomaBold.ttf" size="195956" user="UnknownUser" version="" |
META FILEATTACHMENT |
attr="" autoattached="1" comment="" date="1154596686" name="f8d9367a6d41cf92619b89188aa7befa.png" path="f8d9367a6d41cf92619b89188aa7befa.png" size="1303" user="UnknownUser" version="" |
META FILEATTACHMENT |
attr="" autoattached="1" comment="" date="1154548358" name="05c156f95c6ef8ae9591caad2b6c6581.png" path="05c156f95c6ef8ae9591caad2b6c6581.png" size="1261" user="UnknownUser" version="" |
META FILEATTACHMENT |
attr="" autoattached="1" comment="" date="1154548349" name="fce0a41ec99a29ccbc48b89b699c3f16.png" path="fce0a41ec99a29ccbc48b89b699c3f16.png" size="1312" user="UnknownUser" version="" |
META FILEATTACHMENT |
attr="" autoattached="1" comment="" date="1154548271" name="cf15d69a13f0408cf48769ae28a9e81b.png" path="cf15d69a13f0408cf48769ae28a9e81b.png" size="1294" user="UnknownUser" version="" |
META FILEATTACHMENT |
attr="" autoattached="1" comment="" date="1154548371" name="b811fee8f0ca2c9e1916050e0673a4ed.png" path="b811fee8f0ca2c9e1916050e0673a4ed.png" size="1263" user="UnknownUser" version="" |
META FILEATTACHMENT |
attr="" autoattached="1" comment="" date="1154545942" name="54c87dd0ccd02046324ef17f55f9bf1c.png" path="54c87dd0ccd02046324ef17f55f9bf1c.png" size="773" user="UnknownUser" version="" |
META FILEATTACHMENT |
attr="" autoattached="1" comment="" date="1154548337" name="9d349e919dbe95f575b36e985d98f875.png" path="9d349e919dbe95f575b36e985d98f875.png" size="1277" user="UnknownUser" version="" |
META FILEATTACHMENT |
attr="" autoattached="1" comment="" date="1154546224" name="7d467cdaabfbc12019d16dd429d2be9e.png" path="7d467cdaabfbc12019d16dd429d2be9e.png" size="1227" user="UnknownUser" version="" |
META FILEATTACHMENT |
attr="" autoattached="1" comment="" date="1154598500" name="957688f290596a7f4aa4c09613ad0177.png" path="957688f290596a7f4aa4c09613ad0177.png" size="1282" user="UnknownUser" version="" |
META FILEATTACHMENT |
attr="" autoattached="1" comment="" date="1154548344" name="c8b94fc4649a3f7fbe811acc29257c3c.png" path="c8b94fc4649a3f7fbe811acc29257c3c.png" size="1214" user="UnknownUser" version="" |
META FILEATTACHMENT |
attr="" autoattached="1" comment="" date="1154548353" name="3426709e3fa5b47e46c096f42bd949a4.png" path="3426709e3fa5b47e46c096f42bd949a4.png" size="1225" user="UnknownUser" version="" |
META FILEATTACHMENT |
attr="" autoattached="1" comment="" date="1154539997" name="088f7acb964be1f25e5d01c5d23d3660.png" path="088f7acb964be1f25e5d01c5d23d3660.png" size="779" user="UnknownUser" version="" |
META FILEATTACHMENT |
attr="" autoattached="1" comment="" date="1154548219" name="87cf5aaa6b29f32476e11947e2b5531c.png" path="87cf5aaa6b29f32476e11947e2b5531c.png" size="1318" user="UnknownUser" version="" |
META FILEATTACHMENT |
attr="" autoattached="1" comment="" date="1154597978" name="f3ce477fa4d448916f97e514e47f3c16.png" path="f3ce477fa4d448916f97e514e47f3c16.png" size="1315" user="UnknownUser" version="" |
META FILEATTACHMENT |
attr="" autoattached="1" comment="" date="1154548363" name="b3afa94a6ebc0970fb701f57b802113a.png" path="b3afa94a6ebc0970fb701f57b802113a.png" size="1236" user="UnknownUser" version="" |
META FILEATTACHMENT |
attr="" autoattached="1" comment="" date="1154548210" name="0d5a4bd5b05cdc627f42673908d04970.png" path="0d5a4bd5b05cdc627f42673908d04970.png" size="1304" user="UnknownUser" version="" |
|