Urgente.

J

Javier

Necesito limitar el acceso a una página web de forma que sólo se pueda
hacer desde otra página web concreta que redirecciona a esta. Osea:
Si el navegador quiere ver la página http://xxx.xx.xx/contenido.html,
es necesario que haya entrado por http://xxx.xx.xx/entrada.html que le
redirecciona a esta. Si se pusiese en el navegador directamente
http://xxx.xx.xx/contenido.html se le deniega el acceso.
No se si se puede hacer esto por la configuración de Apache. Si es así
estaría interesado en saber como configurar el Apache para ello. Si
no, en saber como hacer la verificación en perl para que cuando se
habra la página saber de donde viene y por ello tomar las medidas
oportunas.
Muchas gracias por adelantado. Es muy urgente.
Gracias
Javier
 
J

Joe Smith

Javier wrote: (en Espanol)

I need to limit the access a page Web so that Web can only be done from
another page makes specific that it redirects to this. Osea: If the navigator
wants to see the page http://xxx.xx.xx/contenido.html, is necessary that he
has entered by http://xxx.xx.xx/entrada.html that redirects to him to this. If
http://xxx.xx.xx/contenido.html were put directly in the navigator it denies
the access to him. Not if this by the configuration can be done of Apache. If
he is thus he would be interested in knowing like forming the Apache for it.
If no, in knowing like making the verification in Perl so that when habra the
page to know themselves of where it comes and for that reason to take the
opportune measures. Thank you very much in advance. He is very urgent. Thanks
Javier


My reply:
You can't rely on $ENV{HTTP_REFERER} since it is trivial to forge.
Cookies are not always enabled on the user's browser.
You may have to use a session-id, such as
http://xxx.xx.xx/session-as873jlsd7fejtsmflksdful/contenido.html

-Joe

P.S. Do not post here; go to comp.lang.perl.misc instead.
 
N

nobull

Joe Smith said:
Javier wrote: (en Espanol)

[ Question about web programming not really related to Perl ]
P.S. Do not post here; go to comp.lang.perl.misc instead.

Questions about web programming in general (not related to Perl) are
unwellcome in comp.lang.perl.misc. They are better posted in
comp.infosystems.www.authoring.cgi.

However in both groups the primary language is English and if at all
possible you should translate your question into English before
posting.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top