Use target=_blank to build links to commercial pages

#DrITServices #laptoprepair

Use target=_blank to build links to commercial pages

I’m not suggesting that you should do this….just that you could if you wanted to.

What is target=”_blank”?

Adding the target attribute to a link specifies where to open the linked document; adding target=”_blank” to a link is the most popular method of ensuring a link is opened in a new window.

There are other target attribute values; target=”_self” will open the link in the same window as the link was clicked from. This is default and therefore isn’t usually added, much like rel=”follow” for links intended to pass PageRank.

Alex JumaĊĦev has pointed out that target=”_blank” is the source of a peculiar vulnerability on his blog:

The page we’re linking to gains partial access to the linking page via the window.opener object.

So the recipient of the link can change the window.opener.location to another page if he or she desires. Alex points out that this has implications for phishing attacks. His example is as follows:

Example attack: create a fake “viral” page with cute cat pictures, jokes or whatever, get it shared on Facebook (which is known for opening links via _blank) and every time someone clicks the link – execute

window.opener.location = ‘https://fakewebsite/’;

…redirecting to a page that asks the user to re-enter her Facebook password.

The attribute could also be used to open (non-malicious) commercial pages. Next time you’re looking through your backlink profile look out for links using target=”blank” (there will probably be quite a few); instead of asking the site owner to redirect the link you can do it yourself, to any page you want, with 100% success. Although there’s absolutely no guarantee that this will pass PageRank.

Alex ALSO points out that Google knows that this can be done via links with the target=”_blank” attribute and doesn’t seem to care, saying:

Unfortunately, we believe that this class of attacks is inherent to the current design of web browsers and can’t be meaningfully mitigated by any single website; in particular, clobbering the window.opener property limits one of the vectors, but still makes it easy to exploit the remaining ones.

It’s ironic that Google says it thinks the web can’t be policed by any single website.

1452472211_29_Get-Fit-Kwik-be-polite-and-the-UK-spends-a-day-watching-a-puddle Use target=_blank to build links to commercial pages 1452472211_278_Get-Fit-Kwik-be-polite-and-the-UK-spends-a-day-watching-a-puddle Use target=_blank to build links to commercial pages 1452472211_863_Get-Fit-Kwik-be-polite-and-the-UK-spends-a-day-watching-a-puddle Use target=_blank to build links to commercial pages

Source link

Dr. IT - Data recovery,it support,computer & laptop repair in Kingston upon Thames
If You Enjoyed This, Take 5 Seconds To Share It