Quantcast
Channel: Gudtricks
Viewing all articles
Browse latest Browse all 709

Php Script to Prevent Google Adsense Click bombing

$
0
0
"God my Adsense account is disabled.I don't know what the #### happened.!"This was the question that i was hearing for about a month now.Yes it's true.A lot of people are loosing adsense account due to invalid clicks and click bombing by adsense bots.It' s pretty disheartening to know that the hard put efforts are lost due to somebodies unacceptable wishes.So what to do.How to prevent click bombing? How to Stop invalid clicks by adsense bots.And finally i figured out an answer to this question.
how to prevent Google Adsense Click bombing

Adsense Click Bombing- What & How

Adsense click bombing arise when Google ads are clicked many time within a given time gap by either a human or a bot.Google adsense TOS is strictly against invalid clicks and Google have advanced infrastructure to identify any type of invalid click risen.It is almost impossible to evade the eyes of Google  According to Adsense TOS the publisher is responsible for preventing Invalids click and if any invalid clicks are generator,the whole fault is dumped into the shoulders of the helpless publishers.

Google is strict and they have explicitly told that invalid clicks could get your account banned.And if some ####ing people start to click bomb on your site ,there is nothing much you could do rather than to helplessly see the Hard earned Adsense account slipping away from your hands.
adsense click bombing script
There have been a lot of people who has lost their Adsense account due to this terrible vex.And when you know that they are the topmost bloggers,you will realise how hard the situation has become.
Some of them are..
Spencer Haw @nichepursuit.com
Zac Johnson @zacjohnson.com
Eric Gatti @my4hrworkweek.com
Gauher Chaudhry @gauherchaudhry.com
Theodore Nwangene @topbloggingcoach.com

How to Prevent Adsense Click Bombing using Php Script?

I was damn afraid of loosing my adsense account.It was a necessity to develop a script that could prevent Adsense click bombing. Hence i came up with the below php script to stop adsense invalid clciks.

Step 1:Register an Account at Statuscounter
Status counter will ensure that the ip of the visitors reaching your sites are notes.And you can check from which IP you are getting More frequent hits [ 25+ or so-be logical]
Note down the Ip.Now look at the script below.
Step 2:Add this at the top of your Wordpress with all the IPs you have taken from the stat counter.
 <?php
$ip = $_SERVER["REMOTE_ADDR"];
$ip_array = array("xxx.xxx.xxx.xx", "xxx.xxx.xxx.xx", "xxx.xxx.xxx.xx", "xxx.xxx.xxx.xx", "xxx.xxx.xxx.xx");
?>
Then on all the Adsense codes replace with the following:
 <?php
if (in_array($ip, $ip_array)) {
echo 'Blocked Adsense';
}
else {
echo '<Here comes the adsense code>';
}
?>

Viewing all articles
Browse latest Browse all 709

Trending Articles