#284 Stop Comment-Spam and Email-Harvesting

XOOPS_2.x
open
D.J.
Core (214)
5
2012-09-25
2008-06-10
No

See:
http://www.xoops.org/modules/newbb/viewtopic.php?post_id=290629#forumpost290629

I finally got tired of removing comment spam.
I registered for a free Account on http://www.projecthoneypot.org.

Then I downloaded this class:
http://projecthoneypot.org/board/read.php?f=10&i=179&t=179

and added this code to mainfile.php


include 'httpbl.php';
$h=new http_bl('***'); // No, i will not post my Key here.
$ip=$_SERVER['REMOTE_ADDR'];
$r=$h->query($ip);

    if($r>=2){
            echo ("This IP is reported as a known Spammer. Please refer to http://www.projecthoneypot.org to change your status.<br>");
            die ( "Found a " . $h->type_txt ." (".$h->type_num .") with a score of ". $h->score . ", last seen since ". $h->days . " days");
    }

}

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks