$spamTolerance
$spamTolerance : integer
A number between 0 - 100 indicating how much the confidence meter from StopFormSpam must be above.
Lesser value means lesser tolerance.
Stop Forum Spam
By sending GET request to: http://www.stopforumspam.com/api?email=g2fsehis5e@mail.ru&username=MariFoogwoogy&f=json you get the return i.e.:
{
"success":true,
"email":
{
"lastseen":"2009-06-25 00:24:29",
"frequency":2,
"appears":true
},
"username":
{
"frequency":0,
"appears":false
}
}
In order to use:
1. Require this file using i.e.: use TriTan\StopForumSpam;
2. Set spamTolerance by directly accessing the property i.e.: TriTan\StopForumSpam::spamTolerance = 10;
3. Verify if a user is classified as spam with the is-functions i.e.:
if (!TriTan\StopForumSpam::isSpamBotByIpOrEmailOrUsername($ip, $email, $alias) {
//do something.
}