I have no skills with php nor mysql but i am really upset about comment spammers at my forum...
I was looking for a solution and found Bad Bevaiour for Joomla!:
http://extensions.joomla.org/component/ ... Itemid,35/It works pretty fine but its database is not up to date so a few spammers get my forums.
I did continue my search and found Project Honey Pot:
http://www.projecthoneypot.orgObviously, it looks like a final solution but i have not experiencie to code a bot for joomla.
Finally, totally freak with the spam, I decided to try including some lines to my INDEX.PHP and amazing it works.
I copy and paste the lines i put at the very top of my index.php in order to pray for help to get those lines into a proper structure for a mambot:
----------
// My http:BL key
$apikey = 'YOUshouldPUTyourOWNkeyHERE';
// IP to test : your visitor's
$ip = $_SERVER['REMOTE_ADDR'];
// build the lookup DNS query
// Example : for '127.9.1.2' you should query 'abcdefghijkl.2.1.9.127.dnsbl.httpbl.org'
$lookup = $apikey . '.' . implode('.', array_reverse(explode ('.', $ip ))) . '.dnsbl.httpbl.org';
// check query response
$result = explode( '.', gethostbyname($lookup));
if ($result[0] == 127) {
// query successful !
$activity = $result[1];
$threat = $result[2];
$type = $result[3];
if ($type & 0) $typemeaning .= 'Search Engine, ';
if ($type & 1) $typemeaning .= 'Suspicious, ';
if ($type & 2) {
$typemeaning .= 'Harvester, ';
$kurl="http://www.inosanchez.com/stopspam.php";
header("location:$kurl"); }
if ($type & 4) {
$typemeaning .= 'Comment Spammer, ';
$kurl="http://www.inosanchez.com/stopspam.php";
header("location:$kurl"); }
$typemeaning = trim($typemeaning,', ');
}
----------
The only thing you need is a Honey Pot Key, don't worry it is free, and you can get it from:
http://www.projecthoneypot.org/httpbl.phpThose lines are working great but i'm totally sure they should not be placed like i did nor where i did.
Any guides or help to make a bridge of Honey Pot with Joomla! will be really apreciatted.
Thanks in advance for your help.