1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

how to avoid clicking on your ads

Discussion in 'Guidelines / Compliance' started by siraxi, Aug 1, 2006.

  1. #1
    There is an easy way to avoid getting kicked from Adsense.
    Use a few php lines to determine visitors IP address, if it's your own then set Adsense to show ads for another account (such as one of your friends' or a random id number). Thsi way even if you click on the ad unit while performing webmastering duties, your account will not register this click.

    PHP:
    1.  
    2. <?php
    3. $userip=$_SERVER['REMOTE_ADDR'];
    4. if ($userip=="0.0.0.0") { ?>
    5. //somebody else's or random Adsense code
    6. <?php
    7. } else {
    8. ?>
    9. //your Adsense code
    10. <?php
    11. }
    12. ?>
    13.  
    Replace 0.0.0.0 with your own IP address.
     
    siraxi, Aug 1, 2006 IP
    shamess likes this.
  2. kevinn

    kevinn Active Member

    Messages:
    1,338
    Likes Received:
    84
    Best Answers:
    0
    Trophy Points:
    90
    #2
    How about just not clicking your own ads at all?
     
    kevinn, Aug 1, 2006 IP
  3. shamess

    shamess Peon

    Messages:
    1,127
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Because sometimes I've done it on accident too.

    Good idea, thanks ^^;;
     
    shamess, Aug 1, 2006 IP
  4. urbanstereotype

    urbanstereotype Peon

    Messages:
    596
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks, looks good :)
     
    urbanstereotype, Aug 1, 2006 IP
  5. aaron_nimocks

    aaron_nimocks Im kind of a big deal Staff

    Messages:
    5,547
    Likes Received:
    620
    Best Answers:
    0
    Trophy Points:
    370
    #5
    Ive ran a script like this before and they work well but I removed it because I really dont like to not see what ads are being displayed. On a site thats content is changing daily sometimes you get crappy ads so you have to revise the content. Thats why I like to see what ads are being displayed always. :)
     
    aaron_nimocks, Aug 1, 2006 IP
  6. siraxi

    siraxi Peon

    Messages:
    333
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Just change the google_ad_client number to whatever else - somebody else's number or random, such as 000000000. You will still see the ads being displayed, just that your account won't get credited for that click.
     
    siraxi, Aug 1, 2006 IP
  7. Icheb

    Icheb Peon

    Messages:
    1,092
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Just send them a mail telling them what happened. It's not click fraud when you tell them to remove the click. :)

    siraxi: You should use

    PHP:
    1. if ($_SERVER['REMOTE_ADDR'] == '0.0.0.0')
     
    Icheb, Aug 1, 2006 IP
  8. shamess

    shamess Peon

    Messages:
    1,127
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I'd rather just not have to worry about it.
     
    shamess, Aug 1, 2006 IP
  9. AdsenseAddict

    AdsenseAddict Peon

    Messages:
    826
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    0
    #9
    You can always block ads using FF's Adblocker or disabling javascript from your browser.
     
    AdsenseAddict, Aug 1, 2006 IP
  10. chachacallis

    chachacallis Active Member

    Messages:
    1,087
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    78
    #10
    it would be much better if you disable javascript.
     
    chachacallis, Aug 2, 2006 IP
  11. Critters

    Critters Guest

    Messages:
    754
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Was there not an article on here about editing your host file to remap the adSense domain (not adSense.com the domain the ads use) to a local IP, thus blocking all ads on your PC?

    TBH, it's not hard to avoid clicking your own ads.
     
    Critters, Aug 2, 2006 IP
  12. cormac

    cormac Peon

    Messages:
    3,662
    Likes Received:
    222
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Somehow people have a problem with this :confused:

    Personally I never have clicked my own :rolleyes:
     
    cormac, Aug 2, 2006 IP
  13. qwestcommunications

    qwestcommunications Peon

    Messages:
    8,870
    Likes Received:
    173
    Best Answers:
    0
    Trophy Points:
    0
    #13
    What if it stops working and you click your ads without that knowledge, wouldn't they be regarded as click fraud? Is it a risk worth taking?
     
    qwestcommunications, Aug 2, 2006 IP
  14. shamess

    shamess Peon

    Messages:
    1,127
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Why wouldn't it work? If you use that code, then you should be fine, unless your IP is rotated.
     
    shamess, Aug 2, 2006 IP
  15. Avatar7

    Avatar7 Peon

    Messages:
    275
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Siraxi is not saying: use this script and then click the ads.

    No it's just another line of defense against clicking your ads. Don't click your ads, but if you accidently do it, there is a very good chance nothing will be wrong because of the script.

    Don't tell me you will click an ad by accident at the very moment that this script won't be working. That would be EXTREME bad luck.

    Plus. why wouldn't it work?
     
    Avatar7, Aug 2, 2006 IP
  16. Any

    Any Peon

    Messages:
    78
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    I have a dynamic IP at home and move a lot so such a solution won't be viable... on the other hand the javascript helps a lot. Thanks guys.
    Ah, and yes it has happened to me too to click on my own ads... depends on where you place them :) Lucrative places tend to be sometimes dangerous for their masters too.
     
    Any, Aug 2, 2006 IP
  17. mike323

    mike323 Active Member

    Messages:
    1,554
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    80
    #17
    some laptops are automatically set to click when the cursor is just held over a link. i wasn't aware of this feature one time and it generated an invalid click.
     
    mike323, Aug 2, 2006 IP
  18. Mr.Rock

    Mr.Rock Peon

    Messages:
    239
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #18
    thanks alot....
     
    Mr.Rock, Aug 2, 2006 IP
  19. cormac

    cormac Peon

    Messages:
    3,662
    Likes Received:
    222
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Actually that is a very good point there Mike and I didnt even consider it :eek:
     
    cormac, Aug 3, 2006 IP
  20. "rl2043

    "rl2043 Well-Known Member

    Messages:
    346
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    108
    #20
    good idea. there's been a couple of times I clicked on an ad on my site because I was genuinely interested in the ad. Fortunately, all I got was a warning from Google.
     
    "rl2043, Aug 3, 2006 IP