Forum Moderators: martinibuster

Message Too Old, No Replies

attacks of idiots with click scripts?

         

Noel

3:52 pm on Aug 30, 2004 (gmt 0)

10+ Year Member



Today I got hit again (3rd time this month) by some idiot(s) running some kind of click script/tools!

I get over 100 clicks of the same IP on the same ad within one minute!

Thank god that I'm running a logging script, and that I can take immediate action like blocking the IP and emailing AdSense about this!

Anyone else here who get this kind of "attacks"?

Noel

funandgames

3:56 pm on Aug 30, 2004 (gmt 0)

10+ Year Member



Well the good part of this is that Google isn't suspending your account over something you cannot control!

Jon_King

3:59 pm on Aug 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Noel,
How do you track the ip's hitting your adsense ads?

Noel

4:12 pm on Aug 30, 2004 (gmt 0)

10+ Year Member



Well the good part of this is that Google isn't suspending your account over something you cannot control!

Yeah.. But still I've email google about this everytime, and they thanked me for reporting it :-)

Noel,
How do you track the ip's hitting your adsense ads?

Some time ago there was a nice script posted here to do things like this.

I can't find the post about this anymore.

Noel

ogletree

4:16 pm on Aug 30, 2004 (gmt 0)

DingoNY

4:34 pm on Aug 30, 2004 (gmt 0)

10+ Year Member



I highly reccommend asRep. When I bought it a couple months ago it was (is?) only $25... And it gives a LOT of great information. I only wish that as with all scripts - it cannot catch every AS click.

Noel

4:35 pm on Aug 30, 2004 (gmt 0)

10+ Year Member



http://www.webmasterworld.com/forum89/1585.htm

I guess that will work, but it's not the one I'm using.

Noel

brianng

5:13 pm on Aug 30, 2004 (gmt 0)

10+ Year Member



here's the one I'm using. Put this javascript in your page

<script>
function hit(){
window.focus();
if (window.status){
img = new Image();
img.src = 'tracking.php?ref=' + escape(document.location) + ' ¦ ' + escape(window.status);

};
};
document.getElementById("google_ads_frame").onfocus = hit;
</script>

And here's the code for the php file. It will save the log to a text file

<?
if($ref) {
if (getenv(HTTP_CLIENT_IP)){
$ip=getenv(HTTP_CLIENT_IP);
}
else {
$ip=getenv(REMOTE_ADDR);
}

$time = date("F-d ¦ h:i:s A");
$log= "$time ¦ $ip ¦ $ref\n";
$data=file("track.txt");
$num=count($data);
$fp=fopen("track.txt","w");
flock($fp,LOCK_EX);
fputs($fp,$log);
for ($i=0;$i<$num;$i++){
fputs($fp,$data[$i]);
}
fclose($fp);
}
?>