So I have a custom built forum & blog system that as of late has been dealing with a lot of spam. If it was Wordpress I would use Akismet, if it was a different common platform I'm sure I'd find a plugin. Is there any kind of static class I can download to do this? I am using PHP.
Forum spam consists of posts on Internet forums that contains related or unrelated advertisements, links to malicious websites, trolling and abusive or otherwise unwanted information.
I'd still go with Akismet, if you like it. For uses outside of WordPress, you may have to pay a fee for it, depending on your use -- check the terms and conditions -- but it's definitely an option and easy to implement yourself in PHP using their API. You just use the API key from a wordpress.com account for the access.
Basically, you grab yourself whichever PHP client library takes your fancy -- I use Alex Potsides' PHP5 library -- plug in your key, and it's a handful of lines of code. Here's the bare bones of the validation straight from one of my live sites:
...
if ($akismet)
{
$akismet->setCommentAuthor($name);
$akismet->setCommentAuthorEmail($session->userinfo["email"]);
$akismet->setCommentAuthorURL("");
$akismet->setCommentContent($sentence);
$akismet->setPermalink("");
if($akismet->isCommentSpam())
{
// store the comment but mark it as spam (in case of a mis-diagnosis)
$spam = true;
// ...
}
...
You just shove in whichever fields you have, and Akismet does its best for you and returns you a yay or nay...
Akismet is not just for wordpress. They have an API.
Combine that with reCaptcha, and you should be much better off.
http://akismet.com/development/api/
http://code.google.com/apis/recaptcha/docs/php.html
There are many solutions to stop spammers in your sites
All these are php based which you can easily integrate to any CMS
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With