Is it possible to write a script that will do the following. When the same ip address commits click fraud on someones adsense the script shoul check for duplicated clicks in a 15 min or so time period from the same ip. Then it should remove the ad from the adsenseblock. And the put it back after a period of time. The script must be added to adsense script in your header connecting to a member datadase so one can log in and see if adsense fraud is committed on your website . And getting alerts when it happens so you csn block the spesific ip. Can this be done?
Most ads are kept inside iframes. The questions would then be : Can you bind a click event inside an iframe using javascript? The next question is how do you select which ads to show and not show. To answer the first question : http://stackoverflow.com/questions/2381336/detect-click-into-iframe-using-javascript The second questions answers depend on your ad network.