Protecting Adsense from false clicks?

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
User avatar
Sindarin
Forum Regular
Posts: 521
Joined: Tue Sep 25, 2007 8:36 am
Location: Greece

Protecting Adsense from false clicks?

Post by Sindarin »

I consider using Google adsense ads for a site, but I don't know what I have to do in order to prevent false continuous clicks. I tried Googling but came up with no solution so far. I can't find any scripts for the job or any info on what exactly I have to do.

By the way, if they detect adsense fraud, do they ban your site from their search engine as well?
And I can't believe a big company like Google went lazy and did not include built-in protection for their scripts. :x
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Re: Protecting Adsense from false clicks?

Post by Maugrim_The_Reaper »

Adsense create HTML links, right? So if a current user clicks one - use some javascript to disable the link completely. You can probably apply some wrapping around the adsense block rather than try connecting to the adsense content directly which you detect clicks on. Once the count passes a safe level - disable the whole wrapped block (remove it from DOM, and maybe replace it with something else).

Sure it means the user can just reload the page - but if the cost of clicking repetively is high enough it will discourage misuse. Maybe you could throw in a session counter as well so they have to reload the page, and delete a cookie.
User avatar
Sindarin
Forum Regular
Posts: 521
Joined: Tue Sep 25, 2007 8:36 am
Location: Greece

Re: Protecting Adsense from false clicks?

Post by Sindarin »

Can't we use PHP to interfere and count user clicks in some way? That'd be much more secure.
And what stops bad people from making a bot that clicks on your ads indirectly?
User avatar
arjan.top
Forum Contributor
Posts: 305
Joined: Sun Oct 14, 2007 4:36 am
Location: Hoče, Slovenia

Re: Protecting Adsense from false clicks?

Post by arjan.top »

bots can't see the adds (javascript)
User avatar
Sindarin
Forum Regular
Posts: 521
Joined: Tue Sep 25, 2007 8:36 am
Location: Greece

Re: Protecting Adsense from false clicks?

Post by Sindarin »

bots can't see the adds (javascript)
Are you sure about it?

I present you 2 cases,
1. one bot that simulates clicks at x,y location and then simulates a vk_backspace press to go back and click again.
2. A spider bot that scans the page html/javascript and clicks on the links. As far as I know there are bots for scanning javascript as well.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Protecting Adsense from false clicks?

Post by onion2k »

arjan.top wrote:bots can't see the adds (javascript)
I know of at least one bot, albeit only an experimental one, that can parse javascript. A friend of mine is working on it for a search engine for AJAX websites. It wouldn't surprise me at all to find out someone has written one to attack AdSense adverts.
User avatar
VirtuosiMedia
Forum Contributor
Posts: 133
Joined: Thu Jun 12, 2008 6:16 pm

Re: Protecting Adsense from false clicks?

Post by VirtuosiMedia »

You may want to be careful about trying to build something that "protects" AdSense. From what I understand, most of what has been suggested here would modify their code in some way, which is strictly against the TOS. In all honesty, I wouldn't worry about it all that much.
User avatar
Sindarin
Forum Regular
Posts: 521
Joined: Tue Sep 25, 2007 8:36 am
Location: Greece

Re: Protecting Adsense from false clicks?

Post by Sindarin »

So it seems that analytics can help you solve any problems?

Also can someone verify me if banned from Adsense also means from Google search?
Post Reply