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

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
eurusd
Forum Newbie
Posts: 8
Joined: Sat May 02, 2009 5:56 pm

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

Post 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....
User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

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

Post 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.
Post Reply