Re: [PHP-WIN] http referer

2003-07-22 Thread Luis Ferro
You can't trust the referer info... It may not exist at all, it may be tampered... It isn't reliable... (both the servers and the browsers can ruin it). Cheers, Luis Ferro Jon Phipps wrote: I am having no end of bad luck getting the refering page returned, the issue may be that I am doing redir

RE: [PHP-WIN] http referer

2003-07-21 Thread Igor Portnoy
Jon, Try this: if (($_SERVER[HTTP_REFERER] == "") || ($_SERVER[HTTP_REFERER] != "http://your_domain/your_file_name";)){ echo "You came from different page or tried to open this file directly!"; }else { echo "You came from my page"; } Take care, Igor P. -Original Message- From: Jon Phipp

Re: [PHP-WIN] HTTP Referer

2001-12-28 Thread Steve Yates
> From: "Mihail Bota" <[EMAIL PROTECTED]> > > I am trying to use the HTTP_Referer (or any of its variants: SERVER_VARS, > > ENV_VARS) to keep track of the URL of pages that are passed through forms. One thing you might want to consider is that unless I am mistaken, HTTP_REFERER is dependent o

Re: [PHP-WIN] HTTP Referer

2001-12-27 Thread Mihail Bota
]" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Thursday, December 27, 2001 11:26 AM > Subject: Re: [PHP-WIN] HTTP Referer > > > > Yes, I think those are on, because when I use the phpinfo, the > > HTTP_REFERER givces the URL of the previous link... e

Re: [PHP-WIN] HTTP Referer

2001-12-27 Thread Jim Lucas [php]
it still does that even though you are saying $GLOBALS[HTTP_REFERER] ?? - Original Message - From: "Mihail Bota" <[EMAIL PROTECTED]> To: "Jim Lucas [php]" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, December 27, 2001 11:26 AM Subje

Re: [PHP-WIN] HTTP Referer

2001-12-27 Thread Mihail Bota
Yes, I think those are on, because when I use the phpinfo, the HTTP_REFERER givces the URL of the previous link... even though I passed through the form. Anyway, now I am scrambling to adjust all forms in such a way that the scripts will run only when I am moving forward, and not backward... Than

Re: [PHP-WIN] HTTP Referer

2001-12-27 Thread Jim Lucas [php]
you might want to see if track_vars is on? I know that I don't have problems with those _VARS when I use a form. Are you sure the they are in the right scope? Jim Lucas - Original Message - From: "Mihail Bota" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 27, 2001