Hi...

Originally Posted by
jaswinder_rana
now if the question i am going to ask is not dumb then can you please answer.
i know what BLOG is what i don't know what wiki is REST ASIDE spam filtering.
Then just do the blog part. The code will be the same. Here are some possible classes that I would like to have...
PHP Code:
interface SpamRecorder { // DataMapper for different storage types.
function recordAttack(Attack $attack);
function importAttackList($list);
function findAll();
function findInLastFewDays($number_of_days);
function isBanned($number_of_days, $ip);
}
class Attack {
function __construct($time, $ip) { }
function getIp() { }
function getTime() { }
}
class EngineReporter {
function reportSpamPromotedSite($text) { }
}
class GoogleReporter extends EngineReporter { }
class SpamDisemminator {
function asRss($recorder, $number_of_days) { }
function importRss($url, $recorder) { }
}
class IspReporter {
function findDomain($ip) { }
function sendAbuseMailToIsp($domain, $attack, $template) { }
function reportNewAbuse($recorder, $number_of_days, $template) { }
}
class ApacheConfigurationEditor {
function addDenyListToHtAccess($htaccess, $recorder) { }
function addDenyListToConfiguration($configuration, $recorder) { }
}
class SpamServiceBuilder {
function createXmlRpcServer($recorder) { }
function createXmlRpcClient($url, $recorder) { }
}
interface SpamDetector {
function isSpam($text, $threshold);
}
class BayesianSpamDetector implements SpamDetector {
function isSpam($text, $threshold) { }
function processSpam($sample) { }
function processLegitimate($sample) { }
}
class KeyphraseSpamDetector implements SpamDetector {
function isSpam($text, $threshold) { }
function addKeyphrase($phrase, $score) { }
}
Suggestions only of course.
yours, Marcus
Bookmarks