16714

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

Question:

I've been googling for a while now, but wasn't able to find an answer to this.

What I want to accomplish is the following:

Let's say I have a website that I hide from search engines etc. and that is pretty much only accessible through the direct URL. I want only people whom I send the link to see the site.

On my site I talk about my favourite pizza and link to <em>Joe's Pizza Store</em>.

When one of my visitor clicks the link, <em>Joe's Pizza Store</em> will see my URL as a referrer in their analytics.

Is there anything I can do to my link tags (or otherwise) to obscure the origin?

Answer1:

use rel="noreferrer"

something like this:

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

The noreferrer keyword may be used with a and area elements. This keyword does not create a hyperlink, but annotates any other hyperlinks created by the element (the implied hyperlink, if no other keywords create one).

It indicates that no referrer information is to be leaked when following the link.

If a user agent follows a link defined by an a or area element that has the noreferrer keyword, the user agent must not include a Referer (sic) HTTP header (or equivalent for other protocols) in the request.

This keyword also causes the opener attribute to remain null if the hyperlink creates a new browsing context.

</blockquote>

More info <a href="https://www.w3.org/TR/html5/links.html#link-type-noreferrer" rel="nofollow">here</a>

Recommend

  • pizza project thick or thin
  • jquery FullCalendar using MVC and JSON
  • Passing props to Higher-Order Component
  • R Rvest for() and Error server error: (503) Service Unavailable
  • How to create an immutable builder of an immutable class that contains a set?
  • Passing data from Props to data in vue.js
  • Get previous page phonegap javascript
  • $_SERVER['HTTP_REFERER'] not working with Header
  • Nested resource with Atom Feed Helper
  • Reload screen when data change - react native app
  • HTML: prevent url-encoding of POST form
  • Training None Intent in LUIS
  • Strip protocol and subdomain from a URL
  • trim url query string with .htaccess
  • Is it possible to post windows form Hit info to Google analytics(track id) using Gdata API C#
  • How to Unit Test GetNewValues() which contains EntityFunctions.AddDays function
  • use parameter from method argument inside linq contains
  • Calculating Unique events in Google-Bigquery
  • How can I debug errors in a map function on Spark workers?
  • Using XPath to access comments a flat hierachy
  • Send parameters to a web service
  • How is firebase able to detect “app_remove”
  • Google Analytics with jQuery - show pathname in label
  • youtube analytics api rows empty
  • Permit array in params
  • Flush google analytics events manually with Google Play Services
  • JAXB: How to bind element with namespace
  • JQM (jQueryMobile) Problem with AJAX content and focus()
  • getFinancials (quantmod) and tq_get (tidy quant) not working?
  • Entity Framework ObjectContext: Concurrency
  • Using MouseListener to select a range of cells in a grid
  • Dart - Isolate Cross Window Communication
  • How do I change content of ComboFieldEditor?
  • Weird JavaScript statement, what does it mean?
  • Do I've to free mysql result after storing it?
  • SQL merge duplicate rows and join values that are different
  • costura.fody for a dll that references another dll
  • Observable and ngFor in Angular 2
  • UserPrincipal.Current returns apppool on IIS
  • java string with new operator and a literal