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

Intenta probar PHP-JavaScript
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){ 
die(
"
<script>  
if (parent.frames.length > 0) parent.location.href = self.document.location  
</script>
"
); 
}      
?>
lo arme rapido no te lo probe pero deberia de funcional.-

Saludos.-
__________________
Maracay Edo Aragua - Venezuela :
Mi Favorita :
http://www.MySQL.Com