Page 1 of 1

HTTPS to HTTP, Header Location, Remove Referer, IE ok, But F

Posted: Thu Oct 10, 2013 7:08 am
by eurusd
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....

Re: HTTPS to HTTP, Header Location, Remove Referer, IE ok, B

Posted: Thu Oct 10, 2013 12:26 pm
by twinedev
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:

Code: Select all

<a href="http://domain.com/next_page.php?referrer=<?php echo urlencode($strCurPage); ?>">Link Text</a>
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.