Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do target=_blank URIs still pass on referrer data?

I'm interested in using target=_blanks for links but as I don't want to do parameterized URIs I am worried about losing request-based data such as the referrer. Is that fear misplaced?

like image 267
buley Avatar asked Dec 10 '10 20:12

buley


People also ask

Why target =_ blank is deprecated?

There's A Security Reason For Not Using _BlankThe target=”_blank” link attribute is risky and opens a website to security and performance issues. Google's Web. dev page on the risks of using the _blank link attribute is summarized as such: “The other page may run on the same process as your page.

What does target =_ blank mean?

target="_blank" is a special keyword that will open links in a new tab every time. target="blank" will open the first-clicked link in a new tab, but any future links that share target="blank" will open in that same newly-opened tab.

Does target _blank affect SEO?

We have a news site where many articles have "Read more" links. These internal links are often set with the attribute target="_blank" , links opens in a new tab. Does it have any affect on Google Analytics and SEO? No.

Can referer headers be empty?

There might be several reasons why the referer URL would be blank. It will/may be empty when the enduser: entered the site URL in browser address bar itself. visited the site by a browser-maintained bookmark.


2 Answers

No. You can try this in the latest chrome by pasting the following into the address bar:

data:text/html, <a href="http://darwinandsierra.com" target="_blank">text</a>

Then click the link, open the Chrome console and type:

document.referer

It returns a blank string.

like image 137
Tim Fletcher Avatar answered Oct 04 '22 18:10

Tim Fletcher


All links pass referrer data, unless you manually configure your browser to not send that info.

like image 27
Ish Avatar answered Oct 04 '22 19:10

Ish