1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

is this considered cloaking?

Discussion in 'Cloaking and Content Generators' started by michelle111, Jul 20, 2012.

  1. michelle111

    michelle111 Registered Member

    Joined:
    Jun 3, 2011
    Messages:
    61
    Likes Received:
    20
    Hi Guys,


    Just wondering is this considered as cloaking?
    When a user clicks on a certain category in my ecommerce store they go to pageswitch.php


    <?php
    if ($_SERVER["HTTP_X_FORWARDED"])
    {
    $ip = $_SERVER["HTTP_X_FORWARDED"];
    }
    elseif ($_SERVER["HTTP_FORWARDED_FOR"])
    {
    $ip = $_SERVER["HTTP_FORWARDED_FOR"];
    }
    elseif ($_SERVER["HTTP_FORWARDED"])
    {
    $ip = $_SERVER["HTTP_FORWARDED"];
    }
    elseif ($_SERVER["HTTP_X_FORWARDED"])
    {
    $ip = $_SERVER["HTTP_X_FORWARDED"];
    }
    else
    {
    $ip = $_SERVER["REMOTE_ADDR"];
    }
    $geo = unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip='.$ip));
    $region = $geo['geoplugin_region'];
    $countryCode = $geo['geoplugin_countryCode'];
    switch($region)
    {
    case "Victoria": header('Location: ww.domain.com/victoria');
    break;
    default: header('');
    break;
    }
    switch($countryCode)
    {
    case "US": header('Location: ww.domain.com/USA');
    break;
    case "GB": header('Location: ww.domain.com/GreatBritan');
    break;
    default: header('');
    break;
    }
    ?>


    this then pushes them to a certain page based on IP address
    Is this cloaking in the eyes of G, or is it ok because im NOT specifying a search engine bot in the code?
     
  2. michelle111

    michelle111 Registered Member

    Joined:
    Jun 3, 2011
    Messages:
    61
    Likes Received:
    20
    oh and forgot to add that there is another case


    case "Tasmania": header('Location: ww.domain.com/secretfolder/Tasmania');
    break;
    default: header('');
    break;


    Secret folder is blocked in htaccess from being crawled by
    useragent *
    disallow /secretfolder

    does that make a difference?

    I have sensitive designs that i only want certain states in australia to see
     
  3. Namun

    Namun Junior Member

    Joined:
    Sep 13, 2008
    Messages:
    136
    Likes Received:
    175
    In this scenario is not considered cloaking by the search engines.

    "Geolocation: Serving targeted/different content to users based on their location. As a webmaster, you may be able to determine a user's location from preferences you've stored in their cookie, information pertaining to their login, or their IP address. For example, if your site is about baseball, you may use geolocation techniques to highlight the Yankees to your users in New York.

    The key is to treat Googlebot as you would a typical user from a similar location, IP range, etc. (i.e. don't treat Googlebot as if it came from its own separate country?that's cloaking).

    IP delivery: Serving targeted/different content to users based on their IP address, often because the IP address provides geographic information. Because IP delivery can be viewed as a specific type of geolocation, similar rules apply. Googlebot should see the same content a typical user from the same IP address would see."

    For more info see googlewebmastercentral.blogspot.com/2008/06/how-google-defines-ip-delivery.html
     
    • Thanks Thanks x 1