Forum Moderators: martinibuster
However, some cheating-sob-users are able to enter short javascripts in the their pages, which creates an error and stops Google Adsense from loading.
Is there anything that can be done to prevent this? How to make it harder to "hack" the advertisements?
Or is there a way to write a spider script that can visit each hosted page and verify that the AdSense ad is successfully loaded?
thanks.
Run-time check is difficult, but as a webhost you could run a daily cron script to check all pages for this script code and then disable these accounts. It is free hosting, so it won't cost you money to do this, only save some bandwith. It is also a warning to other users on your system.
<to consider>
You are not in total control of the pages of each individual user, which might be a huge problem in the long run. If I were a user on your system it would be far more easy to remove the Adsense ads. I would just add "Please click on the ads to support me!" in bold typeface to my page and then send an anonymous e-mail to Google to look at that page.
</to consider>
the only other problem is that you may want to check with google about whether this is against their ToS since you are placing adsense on a page that you don't control the content on.
Wing
i was wondering if there was some trick that could be used to prevent javascript from braking. Or to find out find out when an ad didn't load.
for example, if you run a spider, it will just look at the content of the page, and will see the adsense code and will think that the ad got loaded. But it reality, it might have loaded.
i was wondering if there was some way of loading into IFRAMES (maybe that will help stop cheaters).... but then i don't know how will Google findout the referrer and page's content.
If they block the ads I would just suspend their site until they fix it, spank them and they'll either get the hint or move on.
The first writes "Please visit our sponsors"
The next puts some nice porn photos
The last creates a racist hate page
Remember, everytime you see an ad on one of your pages, someone is paying for it and if they don't get results they are going to go elsewhere.