Re: [PHP] Re: http_referer. what's wrong with that?

2012-01-12 Thread Stuart Dallas
On 12 Jan 2012, at 14:10, Jonesy wrote:

> On Thu, 12 Jan 2012 17:11:25 +1100, Ross McKay wrote:
>> On Wed, 11 Jan 2012 21:27:58 -0800, Haluk Karamete wrote:
>> 
>>> [...]
>>> Notice: Undefined index: HTTP_REFERER in
>>> D:\Hosting\5291100\html\blueprint\bp_library.php on line 16
>>> die;
>>> [...]
>>> But I'm still curious, what configuration am I missing so that
>>> http_referer is treated like that?
>> 
>> You only get an HTTP_REFERER when you link to a page from another page.
>> If you go directly to the page, e.g. by typing / pasting the URL into
>> the location bar, ...
> 
>> ... or linking from an email, then there is no HTTP_REFERER.
> 
> Not so.It depends. A number of email programs of the 
> HTML-email-abomination ilk send referrers.  I just completed
> some log scans to verify an 'issue' with AOL sessions, and their 
> email contraption _does_ send a referrer.  I've seen others, as well.
> 
> "74.93.226.126" - - [14/Oct/2011:21:08:50 +] "GET /UBSC/ HTTP/1.1" 
>   200 4502 "http://mail.aol.com/34188-111/aol-6/en-us/Suite.aspx"; 
>  "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; 

One point of clarity... the browser sends the referrer header, not the page 
that contains the link, whether it's a simple website or an application. 
Websites have absolutely no control over it.

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: http_referer. what's wrong with that?

2012-01-12 Thread Jonesy
On Thu, 12 Jan 2012 17:11:25 +1100, Ross McKay wrote:
> On Wed, 11 Jan 2012 21:27:58 -0800, Haluk Karamete wrote:
>
>>[...]
>>Notice: Undefined index: HTTP_REFERER in
>>D:\Hosting\5291100\html\blueprint\bp_library.php on line 16
>>die;
>>[...]
>>But I'm still curious, what configuration am I missing so that
>>http_referer is treated like that?
>
> You only get an HTTP_REFERER when you link to a page from another page.
> If you go directly to the page, e.g. by typing / pasting the URL into
> the location bar, ...

> ... or linking from an email, then there is no HTTP_REFERER.

Not so.It depends. A number of email programs of the 
HTML-email-abomination ilk send referrers.  I just completed
some log scans to verify an 'issue' with AOL sessions, and their 
email contraption _does_ send a referrer.  I've seen others, as well.

"74.93.226.126" - - [14/Oct/2011:21:08:50 +] "GET /UBSC/ HTTP/1.1" 
   200 4502 "http://mail.aol.com/34188-111/aol-6/en-us/Suite.aspx"; 
  "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; 

Jonesy
-- 
  Marvin L Jones| jonz  | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
* Killfiling google & banter.com: jonz.net/ng.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: http_referer. what's wrong with that?

2012-01-11 Thread Matt Neimeyer
While perhaps unlikely in "common users" it is also possible to
prevent your browser from sending the referrer. IIRC, the referrer can
also get mangled when passing through HTTPS (although I don't remember
on which side, HTTP->HTTPS or HTTPS->HTTP or both)

Matt

On Thu, Jan 12, 2012 at 1:11 AM, Ross McKay  wrote:
> On Wed, 11 Jan 2012 21:27:58 -0800, Haluk Karamete wrote:
>
>>[...]
>>Notice: Undefined index: HTTP_REFERER in
>>D:\Hosting\5291100\html\blueprint\bp_library.php on line 16
>>die;
>>[...]
>>But I'm still curious, what configuration am I missing so that
>>http_referer is treated like that?
>
> You only get an HTTP_REFERER when you link to a page from another page.
> If you go directly to the page, e.g. by typing / pasting the URL into
> the location bar, or linking from an email, then there is no
> HTTP_REFERER.
> --
> Ross McKay, Toronto, NSW Australia
> "Let the laddie play wi the knife - he'll learn"
> - The Wee Book of Calvin
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: http_referer. what's wrong with that?

2012-01-11 Thread Ross McKay
On Wed, 11 Jan 2012 21:27:58 -0800, Haluk Karamete wrote:

>[...]
>Notice: Undefined index: HTTP_REFERER in
>D:\Hosting\5291100\html\blueprint\bp_library.php on line 16
>die;
>[...]
>But I'm still curious, what configuration am I missing so that
>http_referer is treated like that?

You only get an HTTP_REFERER when you link to a page from another page.
If you go directly to the page, e.g. by typing / pasting the URL into
the location bar, or linking from an email, then there is no
HTTP_REFERER.
-- 
Ross McKay, Toronto, NSW Australia
"Let the laddie play wi the knife - he'll learn"
- The Wee Book of Calvin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php