Como regresar a google

  • Autor Autor yagami
  • Fecha de inicio Fecha de inicio
yagami

yagami

Épsilon
Verificado
Verificación en dos pasos activada
Hola

mi sitio ha sido baneado por Google
ya no aparece con site:midominio

La razon es que tenia la publicidad de redirecionamiento mobil de PLUGRUSH

si quito el redireccionamiento, y vuelvo a pedir reconsideracion a google, volvere??
o tendria que hacer algo + que me ayude a volver a Google
 
Encontre un codigo para evitar q google bot, se de cuenta de las redireciones mobiles...
Alguien sabe si funciona esto???

Insertar CODE, HTML o PHP:
if(isset($_GET['pr_rdrct'])){
    $settings = get_option('plugrush-settings');
    $plugrush = new Plugrush();
    $plugrush->init($settings);
    $url = "http://adblock.plugrush.com/".$plugrush->domain."/".$settings['adblock_id']."/";
    if(!empty($_SERVER['HTTP_REFERER'])){
        $url .= "?redirect=".urlencode($_SERVER["HTTP_REFERER"]);    
    }
    header("Location: ".$url);
    exit();
}


y


Código:
Insertar CODE, HTML o PHP:
function redirect($widget_id){
        header("Location: http://adblock.plugrush.com/".$this->domain."/".$widget_id."/?redirect=".urlencode($_SERVER["HTTP_REFERER"]));
    }

podríamos usar este if para que sólo redireccione si el user agent no contenga Googlebot

Código:
Insertar CODE, HTML o PHP:
if ( ! preg_match('/Googlebot/i',$_SERVER['HTTP_USER_AGENT']))


Insertar CODE, HTML o PHP:
if( preg_match( '/Googlebot/i', $_SERVER['HTTP_USER_AGENT'] ) ) {
    $hostname = gethostbyaddr( $_SERVER['REMOTE_ADDR'] );
    if( preg_match( '/googlebot\.com$/', $hostname ) && gethostbyname( $hostname ) === $_SERVER['REMOTE_ADDR'] ) {
        #It's Googlebot, do something! 
    }
}

y como es para insertarlo en la web :/
 
Atrás
Arriba