bbAntiSpam: Discuss how to stop web spam

The forum is retired.

bbAntiSpam Forum Index - Links Rejector - License

Author Message
rajaram



Joined: 21 Aug 2006
Posts: 6

Posted: Mon Aug 21, 2006 5:40 am    Post subject: License  

Can i make any changes with the unregistered version. Will you give the details about the license. Just eager to know.

ps: The MOD rocks
admin
Site Admin


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

Posted: Tue Aug 22, 2006 1:47 am    Post subject:  

Hi rajaram, yes, you can make any changes in code.
rajaram



Joined: 21 Aug 2006
Posts: 6

Posted: Thu Aug 24, 2006 5:25 am    Post subject:  

Thanks for response.

Kindly help me in this regard:

Currently no url is allowed to post.
But in my case, a guest should not post more than 2 urls. help me to handle this.

Thanks in advance.
admin
Site Admin


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

Posted: Fri Aug 25, 2006 1:49 am    Post subject:  

In "includes/funcions_bbas.php", find the following fragment:
Code:

   // No contact information -- no more work
   //
   if (! count($contacts)) {
      return;
   }

and change it to:
Code:

   // Not more than 2 links -- no more work
   //
   if (count($contacts) <= 2) {
      return;
   }

I haven't tested this change, but I think it should work. Drop me a note on results.
rajaram



Joined: 21 Aug 2006
Posts: 6

Posted: Fri Aug 25, 2006 11:42 am    Post subject:  

That works fine. Thanks for your help.

But it fails in a situation:

when i submit http://abc.com, http://dec.com, http://sdsd.com, this works very fine.

But when i give http://abc.com, http://abc.com, http://abc.com, it fails. The mod considers it as single count. Kindly look into it.

This is the best mod, i 've found.
admin
Site Admin


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

Posted: Sat Aug 26, 2006 2:18 am    Post subject:  

Hi!
Quote:
But when i give http://abc.com, http://abc.com, http://abc.com, it fails. The mod considers it as single count.

Yes, it is so, it's made intentionally, and I think it's the right way. If you prefer calculate it as 3 links, edit ""includes/funcions_bbas.php" again, replacing
Code:
return array_unique($ret);

by just
Code:
return $ret;
Guest






Posted: Tue Aug 29, 2006 6:14 am    Post subject:  

How'd I do?
http://www.anyurl.com
rajaram



Joined: 21 Aug 2006
Posts: 6

Posted: Tue Aug 29, 2006 9:22 am    Post subject:  

Hi!

when i made the changes (mentioned above) , even if i enter a url http://abc.com & try preview, it says that you are not allowed. since the single entry imade is considered as 3 entry. I even tried by giving 5 different links, it showed me 15 links to be removed.

Similar issue:
when i give a ? or & after my url, a single entry (http://abc.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=1) is changed to 3 url entries.

http://abc.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=1"
http://abc.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=1</a>
http://abc.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=1

and i'm prevented from posting. Is there problem with special characters?
rajaram



Joined: 21 Aug 2006
Posts: 6

Posted: Tue Aug 29, 2006 1:40 pm    Post subject:  

HI!

ONE MORE.

when a guest posts a reply by quotting the previous post(posted by registered user) which contains three links, the mod prevents him from posting, as it considers those links into count. This shouldn't happen. links inside quote tag has to be ignored.(this could be added as a feature with the mod....just my thought....ignore if i'm wrong)..

kindly help in this regard.
admin
Site Admin


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

Posted: Wed Aug 30, 2006 4:11 am    Post subject:  

bbAntiSpam tries to find links as aggressively as possible using several methods, therefore the same link can be calculated as several links. In additional to the previous changes, find in the "includes/funcions_bbas.php"
Code:

$str = bbencode_second_pass($str, 0);
$str = make_clickable($str);

and comment it out:
Code:

//$str = bbencode_second_pass($str, 0);
//$str = make_clickable($str);

I hope it works. If not, then the feature "not more than N urls" can't be implemented with the current version of bbAntiSpam.

Quote:
Links inside quote tag has to be ignored

I thought about it, but decided it's not good. If it were implemented, spammers would put spam links inside the "QUOTE" tag.
rajaram



Joined: 21 Aug 2006
Posts: 6

Posted: Wed Aug 30, 2006 4:58 am    Post subject:  

Thank you. That works fine.

Ok.