Can i block my ip ,at the office ,to not show adds if its from the office

Discussion in 'Guidelines / Compliance' started by luvkycool, Jul 24, 2006.

  1. #1
    Hi ,

    I was wondering if its fine by google guidelines,
    it really should be i guess
    is to exclude my office ip/home ip from seeing the adds.

    specially for the office.

    like
    
    <?php
    $ips = array('127.7.7.1','255.68.0.1');
    
    $showadds = isset($_SERVER['REMOTE_ADDR']) 
     &&
    !in_array($_SERVER['REMOTE_ADDR'],$ips) ? : true : false;
    
    if ($showadds !== false)
    {
    <!-- adds
    -->
    }
    ?>
    
    PHP:
     
    luvkycool, Jul 24, 2006 IP
  2. eXe

    eXe Notable Member

    Messages:
    4,643
    Likes Received:
    248
    Best Answers:
    0
    Trophy Points:
    285
    #2
    It's fine.
     
    eXe, Jul 24, 2006 IP
  3. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes you can and it's a very good idea as well.

    But it looks like you have your internal IPs there, not your WAN ips.
     
    T0PS3O, Jul 24, 2006 IP
  4. luvkycool

    luvkycool Guest

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yes it was just used as an example.


    thanks for the headsup.
     
    luvkycool, Jul 24, 2006 IP
  5. utunes

    utunes Peon

    Messages:
    482
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    so if i add my ownip at the top and add this to my stie, google ads will not show on that ip and is google ok with this?
     
    utunes, Jan 10, 2007 IP