Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/01/2012, 15:04
meuca
 
Fecha de Ingreso: marzo-2011
Mensajes: 12
Antigüedad: 13 años
Puntos: 1
problemas con los robots/boots

Hola,

He realizado un me gusta en la página:

http://www.allyearchess.com/cast/ultimos-torneos-de-ajedrez-registrados.php


Problema que me encuentro es que los robots siguen el link y marcan el me gusta en todas las páginas.

como puedo hacer para distinguir un usuario físico con un robot?


aquí les dejo el código:


link:

echo "<div id='gustaI'>".$imp['si']."<a href='gusta.php?titol=".urlencode($tit)."'><img src='../imag/megusta.jpg' alt='me gusta el torneo de Ajedrez'/></a>&nbsp;&nbsp;".$imp['no']."<a href='gustano.php?titol=".urlencode($tit)."'><img src='../imag/nomegusta.jpg' alt='no me gusta el torneo de Ajedrez'/></a><br/>";


página donde va:


$titol=$_REQUEST["titol"];
$ip = $_SERVER['REMOTE_ADDR'];


function funcion_gusta($titol){
$registro_gusta = "select * from eventos where nombre='".addslashes($titol)."'";
$gusta = mysql_query($registro_gusta);
while($imp=mysql_fetch_array($gusta)){
$i=$imp['si'];
$i=$i+1;
$sSQL="Update eventos Set si='$i' where nombre='$titol'";
if (mysql_query($sSQL)) {
}else{ }
}
}

function funcion_ip ($ip,$torneo){
$hay_torneo= "select * from ipusuarios where torneo='$torneo' and ip='$ip'";
$hay_torneoI = mysql_query($hay_torneo);
$hay_torneoII = mysql_num_rows($hay_torneoI);
if ($hay_torneoII==0){
funcion_gusta ($torneo);
$sSQL="insert into ip (ip,torneo) values ('$ip','$torneo')";
if (mysql_query($sSQL)) {
header("location: torneo-de-ajedrez.php?titol=".urlencode($torneo)."");

}

}else {
header("location: torneo-de-ajedrez.php?titol=".urlencode($torneo)."&ya=si");
}
}


funcion_ip ($ip,$titol);


?>



gracias de antemano la ayuda prestada