Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Pudding-1 on
Hi everyone
I have a lot of annoying spam in my guestbook. (guestbook.module)
How can I avoid this?
thanks
Casper
Comments
Bad Behavior
Hi,
i had the same problem and just installed the BadBedhavior module http://drupal.org/node/30501 .
Since then, almost no spam was added to the guestbook. I also installed the spam module, but it seemed that the guestbook module didnt work with it.
Nevertheless since some weeks my guestbook is just a node with comments turned on.
And in the logs, i still see many requests to /guestbook, which now go to 404. So another idea would also be to edit the guestbook module in oder to have a path not as disambiguated like 'guestbook'.
greetings
dersammy
Searching for spam words
Hi,
i wrote a function which is looking for spam-words in the message text.
new function in guestbook.module (drupal 4.7)
the function is called before inserting the new message in the function guestbook_form_entry_submit after line 390 in guestbook.module
old-code
insert new function call here after line 390
go ahead with old-code
i know it could be much user-friendly to insert/edit the spam-words. but its my first code in php and in drupal. and it protects my guestbook from spam very well.
ciao
jochen
Guestbook Spam
Jochen -
This looks like a good temporary solution. Thanks.
- matthew | nautis.com
used it too, seems to work
used it too, seems to work fine, thanks, nice idea.
Enhancement Reading Spam-Words from Taxonomie
I made an enhancement. Spam-Words can be added by taxonimie.
Create a vocabulary call it "spamwords" add the terms, that should be interpreted as spam-words.
Captcha
You can also use the Captcha module. Simply add a captcha point for guestbooks.
In function captcha_settings (line 25+)
Integration of spam-module in guestbook
I wrote a simple rudimentary integration of the spam-module 2.1.2 it's working fine for me with guestbook 4.7.0 on drupal 4.7.2.
There are just a few lines of code to insert in guestbook.module.
See: http://drupal.org/node/66348
drupal-5.1
hi,
for all users of drupal-5.1 which want to add captcha into the guestbook module:
file "captcha.module"
add in this command:
'guestbook_form_entry_form' => t('Write a guestbook entry'),
after:
'node_form' => t('Create a node'),
whole:
Thanks!
Thanks! My guestbook has been a disaster!
many thanks
i had problems in my guestbooks . hope this solves it..thanks for the solution
not working with captcha 5.x-2.1
hi,
does anybody know how to include captcha versoin 5.x-2.1 into the guestbook module?
my described solution only works with the previous versions!
thanks for your help!
The solution described only
The solution described only works if the 'captcha_points' variable hasn't been set (i.e. it is equal to NULL).
After making the changes to captcha.module, you need to reset 'captcha_points' in the database.
Insert in Database....
Execute this SQL-Code to have the Guestbook Point in your Captcha Settings