michelle111
Registered Member
- Jun 3, 2011
- 61
- 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?
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?