in IE case when I move from https to http via Header Location then referer erased
in Firefox case when I move from https to http via Header Location FF does not erase referer.
Maybe there is a special trick or command in PHP to make FF erase referer or some other trick?
Or headers like privacy policy, they are complicated....
HTTPS to HTTP, Header Location, Remove Referer, IE ok, But F
Moderator: General Moderators
Re: HTTPS to HTTP, Header Location, Remove Referer, IE ok, B
Referrers are out of your control. It is up to the User Agent (Browser) if it wants to send these or not (or sometimes, the person's AV software will strip them for "privacy", a few years ago Norton did this by default), nothing you can do in PHP code other then somehow embedding the page they were at into the URL of the links:
I believe this is what all the uproar is about with google switching to all search result pages being secured, browsers that do not pass along referrer from a secured page, the site will loose the ability to track that they came from SERP and know the keywords being searched for. (not, I'm not a SEO guy, just try to keep up as much as possible)
PS, you could also look at tracking the pages via a session.
Code: Select all
<a href="http://domain.com/next_page.php?referrer=<?php echo urlencode($strCurPage); ?>">Link Text</a>PS, you could also look at tracking the pages via a session.