Go Back   Pligg CMS Forum > Other > Off-topic

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-11-2007, 09:52 AM
Constant Pligger
 
Join Date: Mar 2006
Posts: 575
Thanks: 14
Thanked 126 Times in 61 Posts
Preventing Click Fraud

I'm half way through a link / click tracking script. I have put some basic features in place to prevent the logging of invalid clicks (ie. ones not from a real user, or ones from a user trying to get around the system):
  • only 1 click per IP per 24 hours logged - first general level of filtering
  • useragent check against spider list - to filter out logging from most bots
  • link targerts - only clicks from specified referer domains are logged
These are some general filters I'm happy with, but I'd also like to implement a scoring system based on RBL or something like that. So when a click is made, the IP is checked against a proxy list, and if matched, a warning is logged. If this happens too often, the offending clicks are struck off.

I found a simple php function that checks against SORBS.net (although the urls seem out dated now), as well as an article on PHPpot (honey trap for bots).

Code:
function check_rbl() {
    $rbls = array('http.dnsbl.sorbs.net', 'misc.dnsbl.sorbs.net');
    $remote = $_SERVER['REMOTE_ADDR'];
    if(preg_match("/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/", $remote, $matches)) {
        foreach ($rbls as $rbl) {
            $rblhost = $matches[4] . "." . $matches[3] . "." . $matches[2] . "." . $matches[1] . "." . $rbl;
            $resolved = gethostbyname($rblhost);
            if ($resolved != $rblhost) {
                return true;
            }
        }
    }
    return false;
}
Does anyone have any experience in this area; how best to approach a scoring system for invalid clicks, and the best methods to use?
__________________

Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
template name wrong or it does not exist. Click here to fix it. pagetronic General Help 22 02-14-2008 03:01 PM
chron mod for click throughs lumpen5 Modification Tutorials 2 07-24-2007 08:34 AM
click link issues need assistant? cooldudeny General Help 0 05-28-2007 08:28 PM
[Fixed] Click "read more" the category links screw up mlbier General Help 12 02-15-2007 01:32 PM
Click to Edit -buttons not working in some admin areas antha General Help 0 01-23-2007 06:26 AM


Search Engine Friendly URLs by vBSEO 3.2.0