Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/11/2015, 10:18
Avatar de chronos682
chronos682
 
Fecha de Ingreso: febrero-2004
Ubicación: Tunja - Boyacá - Colombia
Mensajes: 627
Antigüedad: 20 años, 2 meses
Puntos: 69
Respuesta: black list en php no me funciona

Ponlo así mejor:

Código PHP:
Ver original
  1. <?php
  2. $ip=$_SERVER['REMOTE_ADDR']; //aqui recojo la ip
  3. $consulta="SELECT COUNT(ip) AS Total from seguridad where ip='{$ip}'";
  4. $resultado=mysqli_query($link,$consulta);
  5. $row = mysqli_fetch_assoc($resultado);
  6. if($row['Total']>=2)
  7. {
  8.     header('HTTP/1.1 403 Forbidden');
  9.     exit;
  10. }
  11. ?>
__________________
Si te gustó la respuesta dale +1

HERNÁN G. SIABATO M.
[email protected]