anti-spam

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
winky
Posts: 4
Joined: Fri Apr 02, 2010 7:58 am

anti-spam

Post 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!
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

What's the URL of your script, where can we test it?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
winky
Posts: 4
Joined: Fri Apr 02, 2010 7:58 am

Post by winky »

here is my URL
http://viet4us.net/12a9/gbook/gbook.php

sorry , my page is in Vietnamese :D
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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).
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
winky
Posts: 4
Joined: Fri Apr 02, 2010 7:58 am

Post 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!
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
winky
Posts: 4
Joined: Fri Apr 02, 2010 7:58 am

Post 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 ;))
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Post Reply