Line: 1 to 1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
CaptchaPlugin | |||||||||
Changed: | |||||||||
< < | Plugin for visual confirmation of new user registration. | ||||||||
> > | 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. | ||||||||
Line: 13 to 13 | |||||||||
Examples | |||||||||
Changed: | |||||||||
< < |
| ||||||||
> > |
| ||||||||
Plugin Settings | |||||||||
Line: 25 to 25 | |||||||||
| |||||||||
Changed: | |||||||||
< < |
| ||||||||
> > |
| ||||||||
Plugin Installation Instructions | |||||||||
Line: 39 to 44 | |||||||||
| |||||||||
Changed: | |||||||||
< < |
| ||||||||
> > |
| ||||||||
| |||||||||
Added: | |||||||||
> > |
<Directory "/path/to/twiki/pub/visualconfirm/db"> deny from all </Directory>
| ||||||||
| |||||||||
Changed: | |||||||||
< < |
| ||||||||
> > |
<tr> <td valign="top" align="right"><IMG SRC="%VISUALCONFIRMURL%">: <br /> (..) </td> <td><input type="hidden" name="Twk1VisualConfirmHash" value="%VISUALCONFIRMHASH%"> <input type="text" name="Twk1VisualConfirm" size="5"></td> </tr>
Manually patching the register binaryFind the line inbin/register that says:
# everything OKInsert the code below directly BEFORE that line: # check valid visual confirmation for( $x = 0; $x < $formLen; $x++ ) { $vcHash=$formDataValue[$x] unless(not($formDataName[$x] eq "Visual Confirm Hash")); $vcTxt=$formDataValue[$x] unless(not($formDataName[$x] eq "Visual Confirm")); } open(LOCKFILE,">".&TWiki::getPubDir()."/visualconfirm/db/hashes.lock"); flock(LOCKFILE,2); dbmopen(%database, &TWiki::getPubDir()."/visualconfirm/db/hashes" ,0644); if(!defined($database{$vcHash})) { $url = &TWiki::getOopsUrl( $webName, $topic, "oopsregvisualconfirm", "The visual confirmation has expired."); TWiki::redirect( $query, $url ); return; } my ($time,$txt)=split(',',$database{$vcHash}); if(not(lc($txt) eq lc($vcTxt))) { $url = &TWiki::getOopsUrl( $webName, $topic, "oopsregvisualconfirm", "The character string you entered for visual confirmation is incorrect."); TWiki::redirect( $query, $url ); return; } dbmclose(%database); close(LOCKFILE); Further Development
| ||||||||
Plugin Info | |||||||||
Line: 64 to 149 | |||||||||
Related Topics: TWikiPreferences, TWikiPlugins | |||||||||
Changed: | |||||||||
< < | -- KoenMartens? - 07 Oct 2005 | ||||||||
> > | -- TWiki:Main.KoenMartens - 07 Oct 2005 | ||||||||