Re: Get referer with PHP
| From: | Bradley Stahl | Date: | Tue, 12 Jun 2007 14:02:37 +0000 |
| Subject: | Re: Get referer with PHP | ||
| References: | 1 2 3 4 5 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-28074@lists.php.net to get a copy of this message | ||
No problem. Thanks.
On 6/12/07, Stut <stuttle@gmail.com> wrote:
Bradley Stahl wrote: I did not know that. Do you have any documentation on this? I would really like to read more about this issue. Thanks for the heads up. There is no documentation on this beyond the HTTP spec not requiring that this header is set, so I'm not really sure where I can point you. -Stut On 6/12/07, * Stut* <stuttle@gmail.com <mailto:stuttle@gmail.com>> wrote:same :Bradley Stahl wrote:Try using the "$_SERVER['HTTP_REFERER']" server variable to getthe URL ofthe page that referred the current user to your page. Let meknow if thishelps.Note that this cannot be relied upon. A fair number of proxies andevensome browsers have the option to remove or not supply this header.-StutOn 6/12/07, Luis Moreira (ESI-GSQP) <luis.moreira@esi.pt<mailto:luis.moreira@esi.pt>> wrote:HiThis is possibly way too simple, but let me ask just the
checkI want to add some code (may be PHP) on an HTML page, to
should notthe referrer.It has to be web-server independent. If the page is invoked by URL X, ok, if not, the page
be shown.Can this be done ?Thanks Luis -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php