bbAntiSpam: Discuss how to stop web spam

The forum is retired.

bbAntiSpam Forum Index - Links Rejector - how to block "www"?

Author Message
vi
Guest





Posted: Sun Jul 16, 2006 6:18 pm    Post subject: how to block "www"?  

how to block "www"?
admin
Site Admin


Joined: 18 Apr 2006
Posts: 805
Location: Saint-Petersburg, Russia

Posted: Mon Jul 17, 2006 1:53 am    Post subject:  

Do you mean how to forbid the text "www" in user's messages? Here is the recipe: http://bbantispam.com/howto/words.html.
Guest






Posted: Mon Jul 17, 2006 6:03 pm    Post subject:  

I would like to block "www" only for guests.
Guest






Posted: Mon Jul 17, 2006 6:05 pm    Post subject:  

I would like to block the text "www" only for guests.
admin
Site Admin


Joined: 18 Apr 2006
Posts: 805
Location: Saint-Petersburg, Russia

Posted: Tue Jul 18, 2006 2:02 am    Post subject:  

At the moment, the only way to do it is to modify source code. At the end of the file "includes/functions_bbas.php", find
Code:

   return array_unique($ret);

and add before it:
Code:

   if (! (FALSE === strpos(strtolower($text), 'www'))) {
      $ret[] = 'http://www/';
   }
Guest






Posted: Wed Jul 19, 2006 5:43 pm    Post subject:  

OK, thanks.

It works fine. Wink

Ok.