Forum Moderators: martinibuster

Message Too Old, No Replies

Prevent clicking my own ads

         

Vis3R

6:01 pm on May 5, 2006 (gmt 0)

10+ Year Member



Hi, do you think that making a php script that would prevent to show ads on my page if the ip is mine would be agains the google tos? ... the reason i would do it is not to prevent me from clicking them, cause i'm aware i shouldn't, but to prevent other members of my family to do it.

hal12b

6:16 pm on May 5, 2006 (gmt 0)

10+ Year Member



I am sure this is fine. You are not altering the code itself. I would even do this to prevent certain IP addresses besides myself from seeing them.

Although, I can tell you it is fine and your account could be disabled. It is better to ask Adsense Support.

ann

6:18 pm on May 5, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do it through your hosts file.

Jafo

6:25 pm on May 5, 2006 (gmt 0)

10+ Year Member



Do a search for the "Adsense Tester" on Google.. The second result should help you.

fredw

7:04 pm on May 5, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is there any way to get that script without being subscribed to a mailing list?

Mohamed

7:14 pm on May 5, 2006 (gmt 0)

10+ Year Member



Do it through your hosts file.

and here is how to do it

1. locate hosts in C:\WINDOWS\system32\drivers\etc
2. open it in your favourite text editor
3 add following lines

127.0.0.1 pagead.googlesyndication.com
127.0.0.1 pagead2.googlesyndication.com
127.0.0.1 adservices.google.com

4. and click save.

Mohamed

security56

7:25 pm on May 5, 2006 (gmt 0)

10+ Year Member



Mohamed, thanks a lot man, I didn't know it was that easy I was wondering the same thing.

ps: can this be use in yahoo ads too somehow

Thanks again :)

Mohamed

7:50 pm on May 5, 2006 (gmt 0)

10+ Year Member



I didn't know it was that easy I was wondering the same thing

I found it in this forum, but I could not remember which forum I read it.

add this line to hosts file

127.0.0.1 ypn-js.overture.com

I am long reader.

Mohamed

security56

10:41 pm on May 5, 2006 (gmt 0)

10+ Year Member



just perfect:)

now I can edit my templates with more ease

Thanks

pldaniels

11:54 pm on May 5, 2006 (gmt 0)

10+ Year Member



While the localhost IP change for the google adsense is a good 'hack', I would still like to be able to see the Adsense adverts on my site as they appear to the client, without this is makes it a little harder to make appropriate site changes and confirmations.

I wish Google could provide an "opt-out" IP range or similar allowing you to specify that "any clicks from this IP (or range) can be ignored".

Paul.

security56

12:26 am on May 6, 2006 (gmt 0)

10+ Year Member



pldaniels, that idea is a great idea, I don't know why google don't do something like that,cause not everybody clicks on their ads with bad intent, and some do get ban specially if they just started.

pldaniels

1:00 am on May 6, 2006 (gmt 0)

10+ Year Member



*a few sips of coffee*

Come to think of it - since Google probably already has a list of your IP's that you've logged into your AdSense account from -and- you're likely to have a cookie already in your browser for AdSense, surely they can just ignore any clicks coming from such?

What is rather amusing at times is when you're checking your own site and find that there are actually adverts -you- would like to visit because you're interested in the item being offered, one has to be very careful in that situation.

Paul.