bbAntiSpam: Discuss how to stop web spam

The forum is retired.

bbAntiSpam Forum Index - Links Rejector - Is it possible to list exceptions in LinkRejector?

Author Message
Guest






Posted: Fri Feb 29, 2008 1:45 pm    Post subject: Is it possible to list exceptions in LinkRejector?  

Hi, ive recently got LR and it works a treat, however, is it possible to set up an "Allow" list for links to the World of Warcraft Armory, as many applicants to the site wish to post that. something like 1http://eu.wowarmory.com/*" with a wildcard to allow different character sheets?

All the best, Ali
Guest






Posted: Fri Feb 29, 2008 1:46 pm    Post subject: Re: Is it possible to list exceptions in LinkRejector?  

Anonymous wrote:
Hi, ive recently got LR and it works a treat, however, is it possible to set up an "Allow" list for links to the World of Warcraft Armory, as many applicants to the site wish to post that. something like 1http://eu.wowarmory.com/*" with a wildcard to allow different character sheets?

All the best, Ali


Edit, i made a type.. should be "http://eu.wowarmory.com/*"
admin
Site Admin


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

Posted: Sat Mar 01, 2008 2:57 am    Post subject:  

No and yes.

No, because there is no direct support of exceptions. However, you can edit the file "includes/functions_bbas.php". After
Code:

if ( !defined('IN_PHPBB') )
{
  die("Hacking attempt");
}

add:
Code:

function bbas_filter_contacts($contacts) {
  global $board_config;
  $x = $board_config['server_name'];
  $board_config['server_name'] = 'wowarmory.com';
  $contacts = array_filter($contacts, 'bbas_not_self_reference');
  $board_config['server_name'] = $x;
  return $contacts;
}

I haven't tested the code, but hopefully it works.
_________________
Oleg Parashchenko, bbAntiSpam
Do you love our tools? Please sponsor further development!

Ok.