Spam on shoutbox

Creating and modifying plugins.
Post Reply
pano
Regular
Posts: 24
Joined: Tue Apr 05, 2005 11:15 am

Spam on shoutbox

Post by pano »

Hello,

is there any way to control the messages posted in the shoutbox plugin? I got several messages from onlinepoker and similar...

thanks!
pano
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Spam on shoutbox

Post by garvinhicking »

If you're loogge din to your blog via cookies, you can delete offending shoutbox texts.

However there is no automatic blocking like the serendipity spamblock comment does....yet. Maybe there are volunteers to introduce this. The contactform plugin hooks into the spamblock plugin for this, for example.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
pano
Regular
Posts: 24
Joined: Tue Apr 05, 2005 11:15 am

Post by pano »

At the moment, as i am logged as admin, i have no problems deleting "on-the-fly" ofending comments in that place, but it's better if the plugin had some system to autoblock certains messages with certains words... Maybe someday ;)
pano
wjlu
Posts: 1
Joined: Mon May 09, 2005 1:13 pm

Re: Spam on shoutbox

Post by wjlu »

This is what I have done on my shoutbox: find the first appearance of the following code:

Code: Select all

serendipity_db_query($sql);
Then replace it with the following:

Code: Select all

# The following codes were added by Wenjun Lu
# on the 6th of May, 2005. Purpose is to filter
# out messages that contain bad words.
if(!(
    ereg('poker', $sql) ||
    ereg('fuck', $sql)
))
{
# End of edit.
serendipity_db_query($sql);
# The following codes were added by Wenjun Lu
# on the 6th of May, 2005.
}
# End of edit.
Only need to replace the first "serendipity_db_query($sql);" not the second one. Hope this helps.

Regards,
Wenjun
giovanisp

Shoutbox Plugin Spam Prevention

Post by giovanisp »

I did something similar... but inserting "if"s is not that much elegant... Would be nice to have a very small captcha (maybe just 3 characters) so the sender has to enter the image code along with their comment.

My site has been flooded with shoutbox posts ina rate of 1 post every 3 minutes!!! Fake IP addresses... I can't prevent... :-(
wh1sper
Regular
Posts: 113
Joined: Sat Jan 15, 2005 6:26 pm
Location: Germany
Contact:

Post by wh1sper »

If you are courageous enough to try a simply modification by me and understand a little bit german then try my mod at http://zockertown.de/s9y/index.php?sere ... =7&file=17
and copy it over the existing file in your plugin directory plugins/serendipity_plugin_shoutbox
you should be adviced to make a copy of the original file before.
that might help, at least until something better exists ;)
the trick is, that the shouter must modify the word spam or delete it. I thought that spammers are automatic scripts that can not read the instruction
greetings --bed :twisted:
wh1sper
Regular
Posts: 113
Joined: Sat Jan 15, 2005 6:26 pm
Location: Germany
Contact:

Post by wh1sper »

I have updated the quick hacked antispam shoutbox modification.
Now with english installation and usage :) very very simple but not disarmed until jet.
please read further here zockertown.de ...
download the newest file from here http://zockertown.de/s9y/index.php?sere ... =7&file=18
Mapster
Regular
Posts: 10
Joined: Mon Jul 24, 2006 10:41 am

Post by Mapster »

wh1sper, great little mod. I had to change a few small things to do with layout.

Keep it updated!

Liking it :)
Mapster
Regular
Posts: 10
Joined: Mon Jul 24, 2006 10:41 am

Post by Mapster »

Wh1sper, can you do another one? I'm still getting spam! :)
infidelguy
Posts: 3
Joined: Sun Dec 03, 2006 4:25 pm
Location: Atlanta, Georgia
Contact:

Post by infidelguy »

Works great! Thanks alot!
In Reason,

The Infidel Guy
http://www.infidelguy.com
Post Reply