As we all know, clicking your own ads can be a problem. People start using other programs or tools to eliminate this, but here is another easy solution. Note: You can use whatever filenames you want, but my example will use the filenames I use. If using PHP: Start by creating a file called exclude.php. Place this in a folder in the root directory called 'includes'. The code in exclude.php should look like this: <? if (getenv(HTTP_X_FORWARDED_FOR)) { $ip = getenv(HTTP_X_FORWARDED_FOR); } else { $ip = getenv(REMOTE_ADDR); } $array[0] = "xxx.xxx.xxx.xxx"; $array[1] = "xxx.xxx.xxx.xxx"; $array[2] = "xxx.xxx.xxx.xxx"; $adexclude = "false"; foreach($array as $value) { if($value == $ip) { $adexclude = "true"; } } ?> Code (markup): The xxx.xxx.xxx.xxx will be replaced with the IP addresses that you commonly view your site from. Increase the number in the $array[X] for each IP. Add this code to each page, or your template page, right after the <HTML> tag: <? ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include('includes/exclude.php'); ?> Code (markup): Add this code around your AdSense code: <? if($adexclude == "true") { ?> Display this instead <? } else { ?> GOOGLE ADSENSE CODE <? } ?> Code (markup): Replace GOOGLE ADSENSE CODE with, surprise, surprise, your AdSense code. If your IPs are setup correctly, when you view your pages, your Ads will now display 'Display this instead' to you, not your code. To everyone else, the Ads will show. Now you never have to be careful on your sites again! I have the code for ASP as well... somewhere... if I find it I will post it.
Or you could install adBlock for firefox and add adsense to the filter, and you won't ever see those ads
Adblock Extension or any adblocker tool is much better than use scripts and tools to prevent clicking. But anyways nice script though.
the tip that you mention is good but adsense team has made an official blog post about this. accidental clicks may happen from time to time. if you are not cliking your own ads, accidental clicks is not a problem for this
Accidents happen, but theres software to prevent you from clicking on your own adsense links? Is that really necessary? I am not expert on this, but it would seem to me that you would just NOT click on the links. Maybe once by accident, but I fail to see the reason for a script or software for this problem....is it really that big of a widespread problem?
What about if you use a proxy in your browser, which thousands of other people use, how can google track this?
dont worry mate, they are smarter than you think. They can track from the logs, stats, etc and check the behaviour of the visitors. if you know what i mean.