html - How can I hide a link's origin from the linked-to site's analytics? -


i've been googling while now, wasn't able find answer this.

what want accomplish following:

let's have website hide search engines etc. , pretty accessible through direct url. want people whom send link see site.

on site talk favourite pizza , link joe's pizza store.

when 1 of visitor clicks link, joe's pizza store see url referrer in analytics.

is there can link tags (or otherwise) obscure origin?

use rel="noreferrer"

something this:

<a href="signin.php" rel="noreferrer">sign in</a> 

the noreferrer keyword may used , area elements. keyword not create hyperlink, annotates other hyperlinks created element (the implied hyperlink, if no other keywords create one).

it indicates no referrer information leaked when following link.

if user agent follows link defined or area element has noreferrer keyword, user agent must not include referer (sic) http header (or equivalent other protocols) in request.

this keyword causes opener attribute remain null if hyperlink creates new browsing context.

more info here


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -