Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/10/2009, 00:21
HiAll
Colaborador
 
Fecha de Ingreso: julio-2008
Ubicación: Consultor SEO
Mensajes: 2.937
Antigüedad: 15 años, 9 meses
Puntos: 185
Respuesta: Como saber cada cuando me rastrean

Pues tienes 2 opciones básicas. O bien con la cache de Google que te dice la última "copia" que tiene de tu web guardada en cache, y por lo tanto cuando ha pasado... o bien puedes poner este código que te envia un mail cuando Google se está dando una vuelta...

ASP:

<%
if instr("GOOGLEBOT",Ucase(request.ServerVariables("H TTP_USER_AGENT")))>0 then
'RUTINA PARA ENVIO DE EMAIL AUTOMATICO
dim origen,destino,asunto,texto
origen = "[email protected]"
destino ="[email protected]"
asunto = "Google ha visitado la web"
texto = "Google ha estado en: " & request.ServerVariables("URL") & " a las " & Date() & " " & Time()
Set objEmail = CreateObject("CDO.Message")
objEmail.From = origen
objEmail.To = destino
objEmail.Subject = asunto
objEmail.HTMLbody = texto
objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1
objEmail.configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory")="C:\inetpub\mailroot\p ickup"
objEmail.Configuration.Fields.Update
objEmail.Send
end if
%>

PHP:

if (strpos($_SERVER["HTTP_USER_AGENT"], "Googlebot") !== false) {
$email = "[email protected]";
mail($email,"Visita de Googlebot", "Googlebot ha visitado tu página: " . $_SERVER["REQUEST_URI"]);
}
__________________
Consultor SEO - Manual SEO
Sigueme en twitter @VictorHdez