Re: how gmail hide http referrer?
- From: "Álvaro G. Vicario" <webmasterNOSPAMTHANKS@xxxxxxxxxxxxxx>
- Date: Fri, 28 Mar 2008 17:33:42 +0100
*** nokiamobile escribió/wrote (Fri, 28 Mar 2008 07:12:51 -0700 (PDT)):
anyone know how gmail hide http referrer when a link in email is[...]
clicked?
Is it possible in php?
The referrer information is sent automatically by the browser and as far as I know nothing you can do in a server-side language like PHP can change that.
As about Google, it seems the JavaScript code they use to open links has the side effect (on purpose or not, who knows) of making browser believe that it's not appropriate to send the referrer header.
A very quick look at the code shows that they create a document in a new Window and insert a META tag in it to force redirection:
OpenExtLink = function(a,b,c){
try{
var d=BR(c.href);
if(d.toLowerCase().indexOf("mailto:")==0){
Tv(d);
return false
}
if(Gl){
Wb(a,d);
return false
}else{
if(Gw){
c.blur();
if(b.ctrlKey){
return true
}
}
var e=Wb(a,"");
e.document.write('<META HTTP-EQUIV="refresh" content="0; url='+B8(d)+'">');
e.document.close();
return false
}
}catch(f){
Gd(f)
}
}
But of course, now it's off-topic :)
--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor en cubitos: http://www.demogracia.com
--
.
- References:
- how gmail hide http referrer?
- From: nokiamobile
- how gmail hide http referrer?
- Prev by Date: Re: PHP AND OR
- Next by Date: Re: PDF generation from HTML
- Previous by thread: Re: how gmail hide http referrer?
- Next by thread: Shake hip Orgasm Woman
- Index(es):
Relevant Pages
|