bbAntiSpam: Discuss how to stop web spam

The forum is retired.

bbAntiSpam Forum Index - Links Rejector - IP addresses

Author Message
DickS



Joined: 08 Aug 2006
Posts: 13

Posted: Sat Dec 30, 2006 8:28 am    Post subject: IP addresses  

Hi,

Our guests should be able to post our software version numbers which are like 3.0.0.59.

Links rejector denies these as IP addresses. How can we change that to allow postings?

Bye

DickS
admin
Site Admin


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

Posted: Sun Dec 31, 2006 8:12 am    Post subject:  

Hi!

An easy way: in "functions_bbas.php" comment out this code fragment:
Code:

// or IP format)
$host     = "(?:(?:".$host.")|(?:[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.([0-9]{1,3})))";


The right, but harder, way: define a callback function "bbas_filter_contacts". Let this function remove version numbers from an array of contacts.

Happy New Year!

Ok.