Page 1 of 1

anti-spam

Posted: Fri Apr 02, 2010 8:11 am
by winky
Version of script: Gbook 1.7
Hosting company: Godaddy

Write your message below:

I just have a personal website, and i am using Gbook 1.7
Eventhough i use all anti-spam tools that included in the lastest ver. 1.7, my Gbook is full of Spam.
There are about 5 spam messages per day.
Any suggestion?
thanks!

Posted: Fri Apr 02, 2010 2:02 pm
by Klemen
What's the URL of your script, where can we test it?

Posted: Sun Apr 04, 2010 7:55 am
by winky
here is my URL
http://viet4us.net/12a9/gbook/gbook.php

sorry , my page is in Vietnamese :D

Posted: Sun Apr 04, 2010 9:49 am
by Henrie
It seems you have disabled the JunkMark(tm) SPAM filter
Please enable it by setting

Code: Select all

$settings['junkmark_use']=1;
inside the settings.php file.

Also you seem to have a codepage error (which can be seen when you open the guestbook in Firefox, there are characters  shown at the start of the page). Try changing inside your language file (language.inc.php) $lang['enc']='windows-1250'; to $lang['enc']='utf-8';

Greetings,
Henrie

Posted: Sun Apr 04, 2010 4:08 pm
by Klemen
You definitely need to enable Junkmark like Henrie suggested.

I also recommend changing the anti-SPAM question "Please type 12a9 into the box below" into something completely different (and without making the code bold).

Posted: Mon Apr 05, 2010 8:55 am
by winky
Thank you for your suggestions.

Now, i have 2 more issues here.

-- when i change "windows-1250" to "utf-8"
some characters show like question marks � (in FireFox) and some little squares (in IE)
http://viet4us.net/12a9/gbook/gbook.php?page=5


--when i able the JunkMark(tm) SPAM filter

Code: Select all

$settings['junkmark_use']=1;
then, it doesn't let me post something like
error message
Error
You cannot sign this guestbook at this time!

Posted: Mon Apr 05, 2010 9:31 am
by Klemen
#1: that's because the old chars are still written in the old charset (coded in windows-1250 but displayed as utf-8). Do you get the question marks with new posts as well?

#2: true, the Junkmark filter doesn't allow posting URLs because allowing URLs in comments is the main reason websites get guestbook (forum, comments, ...) spam.

You can enable posting URLs in a separate field by enabling $settings['use_url'] , but posts with URLs in comments will still be blocked.


If you want to have JunkMark disabled changing the anti-spam question to a something completely unique with no bold text is your best bet.

Posted: Mon Apr 05, 2010 2:31 pm
by Henrie
winky wrote:Now, i have 2 more issues here.

-- when i change "windows-1250" to "utf-8"
some characters show like question marks � (in FireFox) and some little squares (in IE)
http://viet4us.net/12a9/gbook/gbook.php?page=5
Ah, better to change it back the way it was then. The few characters on top will only be seen by Firefox users, and it will not make the older posts of the guestbook unreadable as it is now.

The right codepage should be chosen when making the website and not be changed afterwards. You could try converting the entries.txt (or whatever you have called it) by opening it in a suitable editor, changing the codepage and saving it as utf-8.

Greetings,
Henrie

Posted: Tue Apr 06, 2010 2:33 am
by winky
it's great !
no more spam.
and the characters are fixed.
thank you so much guys :wink:
----
however, i think it will be really helpful if GBOOK has a feature that let its ADMIN deletes multi comments at a time.
:D
For example, since i have a lot of spam messages.
Let see 10 of them.
i need to click on the delete button 10 times and enter the password ten times. Do you think its kinda too much work? ( iam a lazy guy)
hahaha.....lol ;))

Posted: Tue Apr 06, 2010 4:37 am
by Henrie
winky wrote:however, i think it will be really helpful if GBOOK has a feature that let its ADMIN deletes multi comments at a time.
I have thought of that myself too one time when I had very many spam messages. But I thought it would be to much hassle for the few times I need it to ask Klemen this feature (and certainly to much hassle for me to attempt to code it myself).
So when I had that many spam messages. I downloaded the guestbook entries file and opened it in a text editor, deleted the spam messages and uploaded the guestbook again.

Greetings,
Henrie