Chi Kien Uong
Geranienstraße 30
71034 Böblingen
Deutschland / Germany
|
If you are not registered or logged in, you may still use these forums but with limited features.
Show recent topics
|
|
|
Author |
Message |
|
Hello,
I noticed version 2.4.1. supports captcha. This is a nice feature to fight spam. I personally hate to fill in captcha so I hacked in a different validation:
In templates/form.php I added a hidden input (did the same for the preview ):
And then at the end of the file:
Then in add.class.php I added a property $gb_jscheck just like $gb_captcha, and do the following:
Now a spambot has to interpret Javascript before posting the form. This example is still quite easy to parse of course, or if this would become the default it wouldn’t even have to parse it at all. But if instead of TRUE and FALSE a random token is generated per session, or if more clientside difficulty is added this would work fine.
The latter being some kind of crypt operation over the generated token before it will be accepted by the server. Or the function that flags the input box is hidden somewhere, or can be renamed/placed somewhere else by the user… This would make creating a spambot for Advanced Guestbook a bitch and will probably prevent a lot of people from doing so.
Anyways just wanted to share this alternative solution
Greetings,
Ray
|
|
|
|
|
|
Based on the open source JForum
|