Comunidad de diseño web y desarrollo en internet online

Hallar URL Referente

Citar            
MensajeEscrito el 03 Abr 2008 09:36 pm
una preguntilla... como %%&$#)?¡ hallo la url referente a una pagina.?

me explico, como se desde que pagina enlazan hacia mi pagina

ej:

desde pag1 hago click en un link que me lleva a la pag2

como haria lo siguiente.?

echo pag2->url_referente(); //pag1

Por mauril26

161 de clabLevel



 

firefox
Citar            
MensajeEscrito el 03 Abr 2008 09:58 pm
Depende el lenguaje
PHP: echo $_SERVER['HTTP_REFERER'];
JS: document.referrer
...
..
.

Por Morgoth

13 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 04 Abr 2008 01:42 pm
vale... un millón.!

Por mauril26

161 de clabLevel



 

firefox
Citar            
MensajeEscrito el 05 Abr 2008 09:48 pm

Morgoth escribió:

Depende el lenguaje
PHP: echo $_SERVER['HTTP_REFERER'];
JS: document.referrer
...
..
.

yo he tenido problemas con FireFox, de hecho, php dice que no siempre el navegador va a devolver la página de donde se viene, por lo que no se convierte en una práctica no confiable

php.net escribió:

The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.

Por master_of_puppetz

Claber

2483 de clabLevel

7 tutoriales
3 articulos

Genero:Masculino   Premio_Secretos

WebDev (Flex + PHP + JS)

firefox
Citar            
MensajeEscrito el 06 Abr 2008 03:59 am
a mi hasta ahora me ha funcionado... no sabrias cuales son esas excepciones.? :?

Por mauril26

161 de clabLevel



 

firefox
Citar            
MensajeEscrito el 06 Abr 2008 02:57 pm
Puedes escribir un referrer manualmente, como cualquier otro encabezado HTTP. Es una medida de seguridad débil, pero suficiente para los forms habituales. Cuando la seguridad es más prioritaria, pues ya hay que pasar a temas de keys o hash que se incluyen en el formulario

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.