1 bernard_zimmermann May 18, 2007 07:34
3 edb May 18, 2007 08:13
As the guy who maintains the antispam keyword list, I agree with John 100%. You can ban/delete/report offensive keywords by using your antispam tab, though b2evolution will NOT make "cr*p" an official keyword.
Oh and keep in mind that your local antispam list does not have the ability to decide that * means any character. Therefore you should add "crap" to your list unless you want to explicitly ban the exact text string of "cr*p".
I'm not sure when the option happened, but in 1.9.3 you can set the default status of comments to 'draft'. That will let you see them before they are available to the public. So let's say someone uses language you find unacceptable, but overall the comment isn't "bad". YOU get to edit the comment before publishing. You also get to simply delete the comment - of course. For example an otherwise reasonable comment says that some people are jackasses. You edit the comment to say "some people are EXPLETIVE" prior to publishing the moderated comment.
4 bernard_zimmermann May 18, 2007 08:14
John wrote:
In the Admin area of B2 you will find the tab "AntiSpam"
Click that and you will be presented with "Add a banned keyword: " and a form to put the keywords into.
So, add a the offensive keywords you can think of and you should be fine.
I tried that earlier and what I get is
The keyword «crap» is too short, it has to be a minimum of 5 characters!
As always, I recommend you upgrade your site to the latest available version[/quote]
I am too scared to update. I tried it before with an earlier version and I almost my blog.
5 edb May 18, 2007 08:30
oh yeah: keywords need to have five characters. Way back when I knew how to get around that, but not anymore.
Hey can you work with phpmyadmin? If so you can ban something like "banningawordissilly", then use phpmyadmin to edit that keyword in your antispam table to be simply crap.
6 john May 18, 2007 08:30
Re "crap"
I suggest you put in some common uses..
what crap
thats crap
what a load of crap
full of crap
etc etc etc a few of those should catch most
Also, why don't you make all POSTS and COMMENT subject to approval before being published... It only takes a minute and is a sure fire way to prevent anything getting through.
7 yabba May 18, 2007 09:49
EdB wrote:
oh yeah: keywords need to have five characters. Way back when I knew how to get around that, but not anymore.
inc/control/antispam/antispam.php ( approx line 74 ) ;)
// Check if the string is too short,
// it has to be a minimum of 5 characters to avoid being too generic
if( strlen($keyword) < 5 )
Somewhere I've got a word filter lying around, it was written for 1.8.1 or summat ancient but it should still work. If I find it I'll link it here.
¥
8 yabba May 18, 2007 11:07
Here yah go, try this. It should work in most version ( just tested it in 2.0 and it worked with that as well :D )
Very basic instructions wrote:
This plugin was wriiten after a [url=http://forums.b2evolution.net/viewtopic.php?t=9111]forum request[/url] from [url=http://forums.b2evolution.net/profile.php?mode=viewprofile&u=3647]MrDav[/url].
This plugin filters posts and comments and blocks any that contain words that have been selected as "undesirable" by the admins. The list of words is maintainable from the plugin settings screen in admin.
The plugin works by checking the post or comment against each word in the filter list, if any are found it rejects the post (or comment) with a list off all the offending words. The list is case insensitive and works on whole words only, just in case you run a dog site and want to be able to post about Shitzu's ;)
At the moment it doesn't filter edited comments (will need to request a new hook), although this could probably be worked around.
Future enhancements : allow the choice to block the post or just replace the words with *'s (or a character of admin choice)
¥
In the Admin area of B2 you will find the tab "AntiSpam"
Click that and you will be presented with "Add a banned keyword: " and a form to put the keywords into.
So, add a the offensive keywords you can think of and you should be fine.
As always, I recommend you upgrade your site to the latest available version