LESSWRONG
LW

Personal Blog

9

Links passing through api.viglink.com?

by Document
27th Apr 2013
1 min read
20

9

Personal Blog

9

Links passing through api.viglink.com?
7RHollerith
2Document
4sixes_and_sevens
1RHollerith
0CWG
5gwern
-2Document
3gwern
-2Document
3gwern
-2Document
3gwern
0Document
5Kaj_Sotala
3Kawoomba
1David_Gerard
4Eugine_Nier
0Pfft
1Document
0Document
New Comment
20 comments, sorted by
top scoring
Click to highlight new comments since: Today at 12:40 PM
[-]RHollerith12y70

The Adblock Plus add-on for Firefox and Chrome will hide viglinks.

So will adding the line

0.0.0.0 api.viglink.com

to the /etc/hosts file according to at least a couple of writings on the web.

Reply
[-]Document12y20

Thanks. Where should I look for that file, on a Windows XP or Vista PC or on an Android 4 tablet?

Reply
[-]sixes_and_sevens12y40

You'll have probably found it by now, but for anyone else, on Windows it's typically under your Windows install directory in .\System32\drivers\etc\hosts. On Android it's under /system/etc/hosts, but you need root access to edit it.

Edit: just remembered, you'll probably need elevated access on Windows boxes as well, and this can get a bit tricky on Vista. Right-click on your notepad icon and select "run as administrator" (which you'll only have if your account has admin privileges). Then open the hosts file from the above path inside notepad and edit it there.

Reply
[-]RHollerith12y10

Am going to refer you to google since I do not run Windows or Android.

Unless what I have read is unusually misinformative, though, it is possible on both. (On Android you need access to root.)

Reply
[-]CWG11y00

Another option: Saving to "Pocket" (getpocket.com) and reading there works on Android, and presumably on other platforms.

Reply
[-]gwern12y50

See http://lesswrong.com/lw/40p/proposal_all_amazon_hyperlinks_get_less_wrongs/

(Second hit in Google for "viglink site:lesswrong.com".)

Reply
[-]Document12y-20

Yes; I use that code on Amazon myself. Is there a point in particular you want to make about it?

Reply
[-]gwern12y30

Um... it explains why the Viglink stuff is there? Which is what you made a post to ask?

Recently, though, I've noticed that LW is replacing off-site links with indirect links, passed through the domain api.viglink.com. This means I can't just glance at the URL to see where it points; I have to either open it or paste it into the address bar and scroll through it looking for the embedded URL of the actual link. Is it important for it to do that?

Reply
[-]Document12y-20

Could you quote the particular passage that explains why all links to any external site are being intercepted and passed through api.viglink.com? Or did you mean to link a different Google hit? I thought I searched the site before asking the question, but I may have neglected to.

Reply
[-]gwern12y30

??? That page is exactly on point, as is the very first comment. What exactly don't you understand here?

Reply
[-]Document12y-20

Everything I see relates to appending a Viglink code, and only to links to Amazon. Again, could you quote the part I'm overlooking?

Reply
[-]gwern12y30

Er, from the first comment, the one I mentioned:

Back in August 2010, I helped install an even more universal solution in the form of VigLink to experiment and see if it would work well for us.

What, exactly, did you think 'even more universal' than an Amazon referral code meant?

Reply
[-]Document12y00

I thought it meant more universal than lukeprog's proposed pseudocode; i.e., something guaranteed to work for all Amazon links (though as the replies point out, not when you open them in a new tab or window). Thanks for providing the quote.

(Also, to be pedantic: that's the most recent top-level comment, not the first. You might have LW set to sort by New or another setting on your browser.)

Reply
[-]Kaj_Sotala12y50

(It's also the top one if you sort comments by "Best".)

Reply
[-]Kawoomba12y30

What's the purpose of the indirect linkage, why is foreign substance introduced into our precious bodily fluids, erm links?

Reply
[-]David_Gerard12y10

"1. Sign Up Simply add a snippet of code to your site. 2. Get Clicked Link as you always have (or let us help). 3. Get Paid When a reader buys, you get a cut." Alternative to ads, presumably.

Reply
[-]Eugine_Nier12y40

This doesn't explain why this happens to all links, not just the ones to amazon.com.

Reply
[-]Pfft11y00

It's not just for Amazon, it's also eBay etc. "VigLink covers more than 90% of the top 500 Internet retailers with affiliate programs".

Reply
[-]Document12y10

It even intercepts links to appliedrationality.org. Don't they own LW in the first place?

Reply
[-]Document12y00

It looks like the problem was fixed in the last day or so. (Either that, or Chrome for Android updated so that clicking and holding a link now shows what the site wants it to (the destination URL) rather than the actual link target (the viglink URL).)

Edit: Nope, it's back, or still happens for some links and not others.

Reply
Moderation Log
More from Document
View more
Curated and popular this week
20Comments

Visiting Less Wrong after being absent for a while can be a major time sink. The sidebar recent-posts and recent-comments links (which I usually have blocked, but not always; I haven't installed the relevant extensions on the system I'm on yet) draw me into interesting discussions, which frequently link back to other discussions, and so on.

To limit how deep I get drawn in, I try to hold back from reflexively clicking links in comments and posts. Instead I just hover over them (or press and hold on a touchscreen) to view the address, hoping to get a general idea of what they're about and whether I'm familiar with them (and occasionally saving them to a folder if I think I might want them later).

Recently, though, I've noticed that LW is replacing off-site links with indirect links, passed through the domain api.viglink.com. This means I can't just glance at the URL to see where it points; I have to either open it or paste it into the address bar and scroll through it looking for the embedded URL of the actual link. Is it important for it to do that? Is there a way to turn that function off, or a browser extension (preferrably Android-compatible) to reverse it?

(Initially posted about here in the current open thread, but I decided I wanted it to be more visible.)