Please or Register to create posts and topics.

Swear words and links filter for the forum

Page 1 of 2Next

Nobody likes CAPTCHA. If you have anti-spam protection in WordPress, you will not have messages from the robots on the forum. But there is a problem. A person can write anything manually: insults, links to porn sites, etc. I have an educational site and this is unacceptable. Is it possible to put a filter of certain words into the Asgaros Forum?

Standard Wordpress protection allows you to control only comments, but not a forum.

The content filtering feature has a Forums Censure plugin for bbPress forum. But this forum is not suitable for my theme. And in general I do not like it. But if I do not solve the problem with a words filter, I’ll install a bbPress with additional protection and design plug-ins.

Does anyone have any ideas on how I can protect my Asgars Forum from obscene expressions?

Hi Alexander Fomin

https://asgaros.com/support/?view=thread&id=194

Hi, Yworld

Do I need to write all these obscene expressions manually into the code? These will be thousands of words because my site is multilingual. And I don’t really want to stuck my nose into the codes. Site can be slower, theme will be updated and I am just a phililogist. I don’t understand anything in computer codes.

Quote from Alexander Fomin on February 15, 2018, 8:31 am

Hi, Yworld

Do I need to write all these obscene expressions manually into the code? These will be thousands of words because my site is multilingual. And I don’t really want to stuck my nose into the codes. Site can be slower, theme will be updated and I am just a phililogist. I don’t understand anything in computer codes.

In any case, you need a list of forbidden words

In any case, you need a list of forbidden words

Well… Yes, you are right 🙂 Can I insert that piece of code just into the end of functions.php? Or it is importent to find the right place?

Quote from Alexander Fomin on February 15, 2018, 8:45 am

In any case, you need a list of forbidden words

Can I insert that piece of code just into the end of functions.php?

Yes

Alexander Fomin has reacted to this post.
Alexander Fomin
Quote from Yworld on February 15, 2018, 8:46 am

 

Yes

Ok, thanks for the help. I’m trying to do everything I can.

Yworld has reacted to this post.
Yworld

Everything is fine. Thank you very much. That’s really the best forum.

PS. I have used this code:

function customforumcontent($content) {
$censored = array( 
    'word 1',
    'word 2',
    'word 3',
);
$replace = '<b>[censored]</b>';
$content = str_replace($censored, $replace, $content);
  return $content;
}
add_filter('asgarosforum_filter_post_content', 'customforumcontent');

 

Yworld has reacted to this post.
Yworld

Hello again. I have used the code to avoid swear words. But it is very hard to write there all of possible varians of using every swear word.

How can I set for some bad words to be exceptions?

Also I need to write in the code, so that a bad word is identified even if it’s written like this ‘bAd W_o@r\D’

I would like to have exceptions, to be able to ignore the case and the signs between the letters of a bad word.

Asgaros is very simple for beginners [like me] to use.  I am terrified with the idea of inserting bits of code, IF I knew where and how to do it.  It is possible that if I mess around in the code [again, if I knew where that was] and I made a mistake it could bring down my forum.  There are many users, both registered and guests, who would be very unhappy if I brought the forum down [again].

If the code exists, couldn’t it be included in the Settings?  In our old forum software, there was a option available to admins that when opened, presented a blank list that they could populate with words they wanted banned.  It also banned words that were very similar to the banned words.  Not all unwanted words are curses or morally objectionable.  We banned the word “bump” because it was used to bring old posts up to unread status, something we do not allow.

Thanks for your work.  It makes Asgaros an ideal tool for beginners like me.

Al Olme
“Gespanne”
Minneapolis, Minnesota  USA

Page 1 of 2Next