IE do not send HTTP_REFERER.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
volodimir
Forum Newbie
Posts: 2
Joined: Sat Nov 18, 2006 10:28 am

IE do not send HTTP_REFERER.

Post by volodimir »

from some site IE do not send HTTP_REFERER. And i can not get refferal for my site.
how i can fix that?
are is any others way to get REFERER parameter?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Don't rely on the referrer information. There's no guarantee that any request will have it, ever.
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

From the manual:
'HTTP_REFERER'

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.
It can't be trusted. Harvest it if you care to, but don't depend on it being there.
volodimir
Forum Newbie
Posts: 2
Joined: Sat Nov 18, 2006 10:28 am

Post by volodimir »

neophyte wrote:From the manual:
'HTTP_REFERER'

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.
It can't be trusted. Harvest it if you care to, but don't depend on it being there.
how i can collect the refferer or that is not possible ?
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

Ain't 100% possible -- and even if you collect it there are some browsers that let you specify a referer manually.
Post Reply