Ver Mensaje Individual
  #7 (permalink)  
Antiguo 10/03/2007, 21:56
Avatar de xyyy7
xyyy7
 
Fecha de Ingreso: enero-2004
Ubicación: Maracay.-
Mensajes: 637
Antigüedad: 22 años, 9 meses
Puntos: 5
Re: Ayudenme con este Script para bloquear iframe

Tenias razon hermano, habia un error en la condicion.-
Intenta con este.. ya esta solucionado y testiado.-

Código PHP:
<?php 
$URL 
= $_SERVER['HTTP_REFERER']; 
$URL_IN = array("$URL"); 
$URLsAmigas = array( 
'http://www.amigo1.com/', 
'http://www.amigo2.com/', 
'http://www.amigo3.com/', 
'http://www.amigo4.com/', 
);
foreach(
$URL_IN as $value) 
foreach(
$URLsAmigas as $proceso) 
if(
substr_count($value, $proceso) > 0){$aprovar=1;}
if(
$aprovar!=1){ 
die(
" 
<script>   
if (parent.frames.length > 0) parent.location.href = self.document.location   
</script> 
"
); 
}
?>
Saludos.-
__________________
Maracay Edo Aragua - Venezuela :
Mi Favorita :
http://www.MySQL.Com