Ver Mensaje Individual
  #3 (permalink)  
Antiguo 29/10/2012, 21:45
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: Restringir Acceso a solo una URL

Podés vañlerte de la propedad refere con javascript

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <title>titulo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6.  
  7. <script type="text/javascript">
  8. //<![CDATA[
  9. var r = document.referrer;
  10. if(r != 'http://emprear.dnsd.com/jqm/3.html'){
  11. alert('error');
  12. }
  13.  
  14. //]]>
  15. </head>
  16. </body>
  17. </html>

Pero siempre es más seguro hacerlo con php. Si dependés de un loguin, entonces usá sesiones de php
Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.