Avoid showing ads on certain IP

Discussion in 'Guidelines / Compliance' started by vlerian, Jul 12, 2006.

  1. #1
    Hello,
    I'm sorry if this question has been asked before.
    Is it possible for us to avoid showing adsense on our page on certain IP address?
    ie, I know my friends IP address and i don't want to display ads if he visit my site(s). I don't want to block his address from accessing my website(s), I just don't want to show him any adsense ads (i.e to avoid his "help clicks"). of course, it's just an example, not the real case. :)
    is it possible?
    thank you very much.
     
    vlerian, Jul 12, 2006 IP
  2. Tearabite

    Tearabite Prominent Member

    Messages:
    4,628
    Likes Received:
    429
    Best Answers:
    0
    Trophy Points:
    300
    #2
    I have a couple sites:
    1 site i just ban the IP's i dont trust
    1 site dont display ads to "members" (via PHP)
    1 site i use Adlogger (very easy to block ads by IP, but not 100% reliable)
     
    Tearabite, Jul 12, 2006 IP
  3. vlerian

    vlerian Well-Known Member

    Messages:
    467
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    108
    #3
    Ok, thanks for your information Tearabite.
    I'll search for adlogger first.
     
    vlerian, Jul 12, 2006 IP
  4. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #4
    Yes it's doable. Is your site php based? you can do something like store the ip in a variable and call upon it on a check. something like

    $getIP = $_SERVER['REMOTE_ADDR'];
    if ($getIP != '123.456.789.123'){
    show your ads here
    }
     
    an0n, Jul 13, 2006 IP
  5. Mido

    Mido Well-Known Member

    Messages:
    1,438
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    158
    #5
    i need to know how to disable javascript on my pc so i cant see the ads,i am tired of mistakes :)
     
    Mido, Jul 13, 2006 IP