Ver Mensaje Individual
  #8 (permalink)  
Antiguo 30/07/2009, 13:28
horape
 
Fecha de Ingreso: mayo-2009
Mensajes: 210
Antigüedad: 15 años
Puntos: 0
Respuesta: Un simple IF: Quien podra resolver esto??

Cita:
Iniciado por GatorV Ver Mensaje
Puedes usar este código para prevenir el Prefetch:
Código php:
Ver original
  1. if ((isset($_SERVER['HTTP_X_MOZ'])) && ($_SERVER['HTTP_X_MOZ'] == 'prefetch')) {
  2.        // This is a prefetch request. Block it.
  3.        header('HTTP/1.0 403 Forbidden');
  4.        echo '403: Forbidden<br><br>Prefetching not allowed here.';
  5.        die();
  6. }

Saludos.
ya probe, no me detiene el programa.

me voy a volver loco, aun con prefetch, supongamos q anda mal y cuenta 3 visualizaciones la primera vez.. pero por qué sigue contando mas visualizaciones si ahi ya definitivamente le asignó 1 a su variable de sesion?!?!

puede estar mal el IF?? ya probé mostrar la variable y está bien, y vale 1. Probe cambiar la condición del IF por un !isset, pero sigue ignorándola.