Blocking your own adsense ads

Discussion in 'AdSense' started by UndiesHosting, Oct 5, 2005.

  1. #1
    I seem to recall a thread where someone came up with a good way to make it so adsense ads weren't displayed on their browsers. I can't remember if it was IP based, or cookie based or what. I know better than to click on our ads, but we share one IP address in our office between about 20 computers and users. I'd rather block them than not.

    I was hoping the functionality was in phpAdsNew but I can't seem to find it there either.

    Thanks

    UH
     
    UndiesHosting, Oct 5, 2005 IP
  2. Forcefield

    Forcefield Peon

    Messages:
    314
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There are several ways of doing this:

    1. In your HOSTS file, add the following entry:

    127.0.0.1 googlesyndication.com

    2. If using IE, add the following entry to your restricted sites zone:

    *.googlesyndication.com

    (Just make sure everything is disabled for this zone, especially JavaScript)
     
    Forcefield, Oct 5, 2005 IP
  3. alang

    alang Notable Member

    Messages:
    2,021
    Likes Received:
    220
    Best Answers:
    0
    Trophy Points:
    235
    #3
    if you use firefox, there is a plugin for it
     
    alang, Oct 5, 2005 IP
  4. UndiesHosting

    UndiesHosting Active Member

    Messages:
    219
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    78
    #4
    I was hoping for a server side solution, because I don't want to have to make changes to all the computers in our office
     
    UndiesHosting, Oct 5, 2005 IP
  5. alext

    alext Active Member

    Messages:
    406
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    68
    #5
    I wrote a simple php script that places a table of the same dimensions as the ad with border turned on. I do this by checking to see if the client IP address matches either my home or work IP address.

    If you know something about php this is very easy to do. I would assume you could do the same with javascript, but then you would be potentially letting the world know your IP addresses...
     
    alext, Oct 5, 2005 IP
  6. Forcefield

    Forcefield Peon

    Messages:
    314
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0